1. Registry
  2. Packages
  3. Dokploy
  4. API Docs
  5. Environment
Viewing docs for Dokploy v0.4.4
published on Thursday, Nov 5, 2026 by dimeskigj
dokploy logo Dokploy
Viewing docs for Dokploy v0.4.4
published on Thursday, Nov 5, 2026 by dimeskigj

    A Dokploy environment.

    Create Environment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Environment(name: string, args: EnvironmentArgs, opts?: CustomResourceOptions);
    @overload
    def Environment(resource_name: str,
                    args: EnvironmentArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Environment(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    name: Optional[str] = None,
                    project_id: Optional[str] = None,
                    description: Optional[str] = None)
    func NewEnvironment(ctx *Context, name string, args EnvironmentArgs, opts ...ResourceOption) (*Environment, error)
    public Environment(string name, EnvironmentArgs args, CustomResourceOptions? opts = null)
    public Environment(String name, EnvironmentArgs args)
    public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
    
    type: dokploy:Environment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dokploy_environment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EnvironmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EnvironmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var environmentResource = new Dokploy.Environment("environmentResource", new()
    {
        Name = "string",
        ProjectId = "string",
        Description = "string",
    });
    
    example, err := dokploy.NewEnvironment(ctx, "environmentResource", &dokploy.EnvironmentArgs{
    	Name:        pulumi.String("string"),
    	ProjectId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    resource "dokploy_environment" "environmentResource" {
      lifecycle {
        create_before_destroy = true
      }
      name        = "string"
      project_id  = "string"
      description = "string"
    }
    
    var environmentResource = new Environment("environmentResource", EnvironmentArgs.builder()
        .name("string")
        .projectId("string")
        .description("string")
        .build());
    
    environment_resource = dokploy.Environment("environmentResource",
        name="string",
        project_id="string",
        description="string")
    
    const environmentResource = new dokploy.Environment("environmentResource", {
        name: "string",
        projectId: "string",
        description: "string",
    });
    
    type: dokploy:Environment
    properties:
        description: string
        name: string
        projectId: string
    

    Environment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Environment resource accepts the following input properties:

    Name string
    The environment name.
    ProjectId string
    The parent project ID.
    Description string
    An optional environment description.
    Name string
    The environment name.
    ProjectId string
    The parent project ID.
    Description string
    An optional environment description.
    name string
    The environment name.
    project_id string
    The parent project ID.
    description string
    An optional environment description.
    name String
    The environment name.
    projectId String
    The parent project ID.
    description String
    An optional environment description.
    name string
    The environment name.
    projectId string
    The parent project ID.
    description string
    An optional environment description.
    name str
    The environment name.
    project_id str
    The parent project ID.
    description str
    An optional environment description.
    name String
    The environment name.
    projectId String
    The parent project ID.
    description String
    An optional environment description.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:

    EnvironmentId string
    The stable Dokploy environment ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Whether this is the default environment.
    EnvironmentId string
    The stable Dokploy environment ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Whether this is the default environment.
    environment_id string
    The stable Dokploy environment ID.
    id string
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Whether this is the default environment.
    environmentId String
    The stable Dokploy environment ID.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Whether this is the default environment.
    environmentId string
    The stable Dokploy environment ID.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Whether this is the default environment.
    environment_id str
    The stable Dokploy environment ID.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Whether this is the default environment.
    environmentId String
    The stable Dokploy environment ID.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Whether this is the default environment.

    Look up Existing Environment Resource

    Get an existing Environment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Environment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> Environment
    func GetEnvironment(ctx *Context, name string, id IDInput, state *EnvironmentState, opts ...ResourceOption) (*Environment, error)
    public static Environment Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static Environment get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingEnvironment:    type: dokploy:Environment    get:      id: ${id}
    import {
      to = dokploy_environment.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state EnvironmentState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Package Details

    Repository
    dokploy dimeskigj/pulumi-dokploy
    License
    Apache-2.0
    dokploy logo Dokploy
    Viewing docs for Dokploy v0.4.4
    published on Thursday, Nov 5, 2026 by dimeskigj

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial