1. Registry
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. TeamEnvironmentPermission
Viewing docs for Pulumi Cloud v1.8.0
published on Thursday, Nov 19, 2026 by Pulumi
pulumiservice logo pulumiservice logo
Viewing docs for Pulumi Cloud v1.8.0
published on Thursday, Nov 19, 2026 by Pulumi

    A permission for a team to use an environment.

    Create TeamEnvironmentPermission Resource

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

    Constructor syntax

    new TeamEnvironmentPermission(name: string, args: TeamEnvironmentPermissionArgs, opts?: CustomResourceOptions);
    @overload
    def TeamEnvironmentPermission(resource_name: str,
                                  args: TeamEnvironmentPermissionArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeamEnvironmentPermission(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  environment: Optional[str] = None,
                                  organization: Optional[str] = None,
                                  permission: Optional[EnvironmentPermission] = None,
                                  team: Optional[str] = None,
                                  max_open_duration: Optional[str] = None,
                                  project: Optional[str] = None)
    func NewTeamEnvironmentPermission(ctx *Context, name string, args TeamEnvironmentPermissionArgs, opts ...ResourceOption) (*TeamEnvironmentPermission, error)
    public TeamEnvironmentPermission(string name, TeamEnvironmentPermissionArgs args, CustomResourceOptions? opts = null)
    public TeamEnvironmentPermission(String name, TeamEnvironmentPermissionArgs args)
    public TeamEnvironmentPermission(String name, TeamEnvironmentPermissionArgs args, CustomResourceOptions options)
    
    type: pulumiservice:TeamEnvironmentPermission
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "pulumiservice_team_environment_permission" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TeamEnvironmentPermissionArgs
    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 TeamEnvironmentPermissionArgs
    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 TeamEnvironmentPermissionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeamEnvironmentPermissionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeamEnvironmentPermissionArgs
    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 teamEnvironmentPermissionResource = new PulumiService.TeamEnvironmentPermission("teamEnvironmentPermissionResource", new()
    {
        Environment = "string",
        Organization = "string",
        Permission = PulumiService.EnvironmentPermission.None,
        Team = "string",
        MaxOpenDuration = "string",
        Project = "string",
    });
    
    example, err := pulumiservice.NewTeamEnvironmentPermission(ctx, "teamEnvironmentPermissionResource", &pulumiservice.TeamEnvironmentPermissionArgs{
    	Environment:     pulumi.String("string"),
    	Organization:    pulumi.String("string"),
    	Permission:      pulumiservice.EnvironmentPermissionNone,
    	Team:            pulumi.String("string"),
    	MaxOpenDuration: pulumi.String("string"),
    	Project:         pulumi.String("string"),
    })
    
    resource "pulumiservice_team_environment_permission" "teamEnvironmentPermissionResource" {
      lifecycle {
        create_before_destroy = true
      }
      environment       = "string"
      organization      = "string"
      permission        = "none"
      team              = "string"
      max_open_duration = "string"
      project           = "string"
    }
    
    var teamEnvironmentPermissionResource = new TeamEnvironmentPermission("teamEnvironmentPermissionResource", TeamEnvironmentPermissionArgs.builder()
        .environment("string")
        .organization("string")
        .permission(com.pulumi.pulumiservice.enums.EnvironmentPermission.None)
        .team("string")
        .maxOpenDuration("string")
        .project("string")
        .build());
    
    team_environment_permission_resource = pulumiservice.TeamEnvironmentPermission("teamEnvironmentPermissionResource",
        environment="string",
        organization="string",
        permission=pulumiservice.EnvironmentPermission.NONE,
        team="string",
        max_open_duration="string",
        project="string")
    
    const teamEnvironmentPermissionResource = new pulumiservice.TeamEnvironmentPermission("teamEnvironmentPermissionResource", {
        environment: "string",
        organization: "string",
        permission: pulumiservice.EnvironmentPermission.None,
        team: "string",
        maxOpenDuration: "string",
        project: "string",
    });
    
    type: pulumiservice:TeamEnvironmentPermission
    properties:
        environment: string
        maxOpenDuration: string
        organization: string
        permission: none
        project: string
        team: string
    

    TeamEnvironmentPermission 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 TeamEnvironmentPermission resource accepts the following input properties:

    Environment string
    Environment name.
    Organization string
    Organization name.
    Permission Pulumi.PulumiService.EnvironmentPermission
    Which permission level to grant to the specified team.
    Team string
    Team name.
    MaxOpenDuration string
    The maximum duration for which members of this team may open the environment.
    Project string
    Project name.
    Environment string
    Environment name.
    Organization string
    Organization name.
    Permission EnvironmentPermission
    Which permission level to grant to the specified team.
    Team string
    Team name.
    MaxOpenDuration string
    The maximum duration for which members of this team may open the environment.
    Project string
    Project name.
    environment string
    Environment name.
    organization string
    Organization name.
    permission "none" | "read" | "open" | "write" | "admin"
    Which permission level to grant to the specified team.
    team string
    Team name.
    max_open_duration string
    The maximum duration for which members of this team may open the environment.
    project string
    Project name.
    environment String
    Environment name.
    organization String
    Organization name.
    permission EnvironmentPermission
    Which permission level to grant to the specified team.
    team String
    Team name.
    maxOpenDuration String
    The maximum duration for which members of this team may open the environment.
    project String
    Project name.
    environment string
    Environment name.
    organization string
    Organization name.
    permission EnvironmentPermission
    Which permission level to grant to the specified team.
    team string
    Team name.
    maxOpenDuration string
    The maximum duration for which members of this team may open the environment.
    project string
    Project name.
    environment str
    Environment name.
    organization str
    Organization name.
    permission EnvironmentPermission
    Which permission level to grant to the specified team.
    team str
    Team name.
    max_open_duration str
    The maximum duration for which members of this team may open the environment.
    project str
    Project name.
    environment String
    Environment name.
    organization String
    Organization name.
    permission "none" | "read" | "open" | "write" | "admin"
    Which permission level to grant to the specified team.
    team String
    Team name.
    maxOpenDuration String
    The maximum duration for which members of this team may open the environment.
    project String
    Project name.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TeamEnvironmentPermission Resource

    Get an existing TeamEnvironmentPermission 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): TeamEnvironmentPermission
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> TeamEnvironmentPermission
    func GetTeamEnvironmentPermission(ctx *Context, name string, id IDInput, state *TeamEnvironmentPermissionState, opts ...ResourceOption) (*TeamEnvironmentPermission, error)
    public static TeamEnvironmentPermission Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static TeamEnvironmentPermission get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingTeamEnvironmentPermission:    type: pulumiservice:TeamEnvironmentPermission    get:      id: ${id}
    import {
      to = pulumiservice_team_environment_permission.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 TeamEnvironmentPermissionState
    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.

    Supporting Types

    EnvironmentPermission

    NameValueDescription
    NonenoneNo permissions.
    ReadreadPermission to read environment definition only.
    OpenopenPermission to open and read the environment.
    WritewritePermission to open, read and update the environment.
    AdminadminPermission for all operations on the environment.
    NameValueDescription
    EnvironmentPermissionNonenoneNo permissions.
    EnvironmentPermissionReadreadPermission to read environment definition only.
    EnvironmentPermissionOpenopenPermission to open and read the environment.
    EnvironmentPermissionWritewritePermission to open, read and update the environment.
    EnvironmentPermissionAdminadminPermission for all operations on the environment.
    ValueDescription
    noneNo permissions.
    readPermission to read environment definition only.
    openPermission to open and read the environment.
    writePermission to open, read and update the environment.
    adminPermission for all operations on the environment.
    NameValueDescription
    NonenoneNo permissions.
    ReadreadPermission to read environment definition only.
    OpenopenPermission to open and read the environment.
    WritewritePermission to open, read and update the environment.
    AdminadminPermission for all operations on the environment.
    NameValueDescription
    NonenoneNo permissions.
    ReadreadPermission to read environment definition only.
    OpenopenPermission to open and read the environment.
    WritewritePermission to open, read and update the environment.
    AdminadminPermission for all operations on the environment.
    NameValueDescription
    NONEnoneNo permissions.
    READreadPermission to read environment definition only.
    OPENopenPermission to open and read the environment.
    WRITEwritePermission to open, read and update the environment.
    ADMINadminPermission for all operations on the environment.
    ValueDescription
    noneNo permissions.
    readPermission to read environment definition only.
    openPermission to open and read the environment.
    writePermission to open, read and update the environment.
    adminPermission for all operations on the environment.

    Import

    This resource can be imported using its id, which has the format {organization}/{team}/{project}+{environment}, e.g.,

     $ pulumi import pulumiservice:index:TeamEnvironmentPermission my-team-environment-permission my-org/my-team/my-project+my-environment
    

    The project and environment are joined with +, not /. The legacy format {organization}/{team}/{environment} is also accepted, and uses the default project.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo pulumiservice logo
    Viewing docs for Pulumi Cloud v1.8.0
    published on Thursday, Nov 19, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial