1. Packages
  2. Ibm Provider
  3. API Docs
  4. ProjectEnvironment
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.ProjectEnvironment

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, and delete project_environments with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const projectEnvironment = new ibm.ProjectEnvironment("projectEnvironment", {
        definition: {
            name: "environment-stage",
            description: "environment for stage project",
            authorizations: {
                method: "api_key",
                apiKey: "<your_apikey_here>",
            },
        },
        projectId: ibm_project.project_instance.id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    project_environment = ibm.ProjectEnvironment("projectEnvironment",
        definition={
            "name": "environment-stage",
            "description": "environment for stage project",
            "authorizations": {
                "method": "api_key",
                "api_key": "<your_apikey_here>",
            },
        },
        project_id=ibm_project["project_instance"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewProjectEnvironment(ctx, "projectEnvironment", &ibm.ProjectEnvironmentArgs{
    			Definition: &ibm.ProjectEnvironmentDefinitionArgs{
    				Name:        pulumi.String("environment-stage"),
    				Description: pulumi.String("environment for stage project"),
    				Authorizations: &ibm.ProjectEnvironmentDefinitionAuthorizationsArgs{
    					Method: pulumi.String("api_key"),
    					ApiKey: pulumi.String("<your_apikey_here>"),
    				},
    			},
    			ProjectId: pulumi.Any(ibm_project.Project_instance.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var projectEnvironment = new Ibm.ProjectEnvironment("projectEnvironment", new()
        {
            Definition = new Ibm.Inputs.ProjectEnvironmentDefinitionArgs
            {
                Name = "environment-stage",
                Description = "environment for stage project",
                Authorizations = new Ibm.Inputs.ProjectEnvironmentDefinitionAuthorizationsArgs
                {
                    Method = "api_key",
                    ApiKey = "<your_apikey_here>",
                },
            },
            ProjectId = ibm_project.Project_instance.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.ProjectEnvironment;
    import com.pulumi.ibm.ProjectEnvironmentArgs;
    import com.pulumi.ibm.inputs.ProjectEnvironmentDefinitionArgs;
    import com.pulumi.ibm.inputs.ProjectEnvironmentDefinitionAuthorizationsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var projectEnvironment = new ProjectEnvironment("projectEnvironment", ProjectEnvironmentArgs.builder()
                .definition(ProjectEnvironmentDefinitionArgs.builder()
                    .name("environment-stage")
                    .description("environment for stage project")
                    .authorizations(ProjectEnvironmentDefinitionAuthorizationsArgs.builder()
                        .method("api_key")
                        .apiKey("<your_apikey_here>")
                        .build())
                    .build())
                .projectId(ibm_project.project_instance().id())
                .build());
    
        }
    }
    
    resources:
      projectEnvironment:
        type: ibm:ProjectEnvironment
        properties:
          definition:
            name: environment-stage
            description: environment for stage project
            authorizations:
              method: api_key
              apiKey: <your_apikey_here>
          projectId: ${ibm_project.project_instance.id}
    

    Create ProjectEnvironment Resource

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

    Constructor syntax

    new ProjectEnvironment(name: string, args: ProjectEnvironmentArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectEnvironment(resource_name: str,
                           args: ProjectEnvironmentInitArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectEnvironment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           definition: Optional[ProjectEnvironmentDefinitionArgs] = None,
                           project_id: Optional[str] = None,
                           ibm_project_environment_id: Optional[str] = None)
    func NewProjectEnvironment(ctx *Context, name string, args ProjectEnvironmentArgs, opts ...ResourceOption) (*ProjectEnvironment, error)
    public ProjectEnvironment(string name, ProjectEnvironmentArgs args, CustomResourceOptions? opts = null)
    public ProjectEnvironment(String name, ProjectEnvironmentArgs args)
    public ProjectEnvironment(String name, ProjectEnvironmentArgs args, CustomResourceOptions options)
    
    type: ibm:ProjectEnvironment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ProjectEnvironmentArgs
    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 ProjectEnvironmentInitArgs
    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 ProjectEnvironmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectEnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectEnvironmentArgs
    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 projectEnvironmentResource = new Ibm.ProjectEnvironment("projectEnvironmentResource", new()
    {
        Definition = new Ibm.Inputs.ProjectEnvironmentDefinitionArgs
        {
            Name = "string",
            Authorizations = new Ibm.Inputs.ProjectEnvironmentDefinitionAuthorizationsArgs
            {
                ApiKey = "string",
                Method = "string",
                TrustedProfileId = "string",
            },
            ComplianceProfile = new Ibm.Inputs.ProjectEnvironmentDefinitionComplianceProfileArgs
            {
                AttachmentId = "string",
                Id = "string",
                InstanceId = "string",
                InstanceLocation = "string",
                ProfileName = "string",
            },
            Description = "string",
            Inputs = 
            {
                { "string", "string" },
            },
        },
        ProjectId = "string",
        IbmProjectEnvironmentId = "string",
    });
    
    example, err := ibm.NewProjectEnvironment(ctx, "projectEnvironmentResource", &ibm.ProjectEnvironmentArgs{
    	Definition: &ibm.ProjectEnvironmentDefinitionArgs{
    		Name: pulumi.String("string"),
    		Authorizations: &ibm.ProjectEnvironmentDefinitionAuthorizationsArgs{
    			ApiKey:           pulumi.String("string"),
    			Method:           pulumi.String("string"),
    			TrustedProfileId: pulumi.String("string"),
    		},
    		ComplianceProfile: &ibm.ProjectEnvironmentDefinitionComplianceProfileArgs{
    			AttachmentId:     pulumi.String("string"),
    			Id:               pulumi.String("string"),
    			InstanceId:       pulumi.String("string"),
    			InstanceLocation: pulumi.String("string"),
    			ProfileName:      pulumi.String("string"),
    		},
    		Description: pulumi.String("string"),
    		Inputs: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	ProjectId:               pulumi.String("string"),
    	IbmProjectEnvironmentId: pulumi.String("string"),
    })
    
    var projectEnvironmentResource = new ProjectEnvironment("projectEnvironmentResource", ProjectEnvironmentArgs.builder()
        .definition(ProjectEnvironmentDefinitionArgs.builder()
            .name("string")
            .authorizations(ProjectEnvironmentDefinitionAuthorizationsArgs.builder()
                .apiKey("string")
                .method("string")
                .trustedProfileId("string")
                .build())
            .complianceProfile(ProjectEnvironmentDefinitionComplianceProfileArgs.builder()
                .attachmentId("string")
                .id("string")
                .instanceId("string")
                .instanceLocation("string")
                .profileName("string")
                .build())
            .description("string")
            .inputs(Map.of("string", "string"))
            .build())
        .projectId("string")
        .ibmProjectEnvironmentId("string")
        .build());
    
    project_environment_resource = ibm.ProjectEnvironment("projectEnvironmentResource",
        definition={
            "name": "string",
            "authorizations": {
                "api_key": "string",
                "method": "string",
                "trusted_profile_id": "string",
            },
            "compliance_profile": {
                "attachment_id": "string",
                "id": "string",
                "instance_id": "string",
                "instance_location": "string",
                "profile_name": "string",
            },
            "description": "string",
            "inputs": {
                "string": "string",
            },
        },
        project_id="string",
        ibm_project_environment_id="string")
    
    const projectEnvironmentResource = new ibm.ProjectEnvironment("projectEnvironmentResource", {
        definition: {
            name: "string",
            authorizations: {
                apiKey: "string",
                method: "string",
                trustedProfileId: "string",
            },
            complianceProfile: {
                attachmentId: "string",
                id: "string",
                instanceId: "string",
                instanceLocation: "string",
                profileName: "string",
            },
            description: "string",
            inputs: {
                string: "string",
            },
        },
        projectId: "string",
        ibmProjectEnvironmentId: "string",
    });
    
    type: ibm:ProjectEnvironment
    properties:
        definition:
            authorizations:
                apiKey: string
                method: string
                trustedProfileId: string
            complianceProfile:
                attachmentId: string
                id: string
                instanceId: string
                instanceLocation: string
                profileName: string
            description: string
            inputs:
                string: string
            name: string
        ibmProjectEnvironmentId: string
        projectId: string
    

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

    Definition ProjectEnvironmentDefinition
    The environment definition. Nested schema for definition:
    ProjectId string
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    IbmProjectEnvironmentId string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    Definition ProjectEnvironmentDefinitionArgs
    The environment definition. Nested schema for definition:
    ProjectId string
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    IbmProjectEnvironmentId string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    definition ProjectEnvironmentDefinition
    The environment definition. Nested schema for definition:
    projectId String
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    ibmProjectEnvironmentId String
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    definition ProjectEnvironmentDefinition
    The environment definition. Nested schema for definition:
    projectId string
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    ibmProjectEnvironmentId string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    definition ProjectEnvironmentDefinitionArgs
    The environment definition. Nested schema for definition:
    project_id str
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    ibm_project_environment_id str
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    definition Property Map
    The environment definition. Nested schema for definition:
    projectId String
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    ibmProjectEnvironmentId String
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.

    Outputs

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

    CreatedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    Href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    ProjectEnvironmentId string
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    Projects List<ProjectEnvironmentProject>
    (List) The project that is referenced by this resource. Nested schema for project:
    TargetAccount string
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    CreatedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    Href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    ProjectEnvironmentId string
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    Projects []ProjectEnvironmentProject
    (List) The project that is referenced by this resource. Nested schema for project:
    TargetAccount string
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    createdAt String
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    href String
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    projectEnvironmentId String
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    projects List<ProjectEnvironmentProject>
    (List) The project that is referenced by this resource. Nested schema for project:
    targetAccount String
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    createdAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    id string
    The provider-assigned unique ID for this managed resource.
    modifiedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    projectEnvironmentId string
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    projects ProjectEnvironmentProject[]
    (List) The project that is referenced by this resource. Nested schema for project:
    targetAccount string
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    created_at str
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    href str
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    id str
    The provider-assigned unique ID for this managed resource.
    modified_at str
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    project_environment_id str
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    projects Sequence[ProjectEnvironmentProject]
    (List) The project that is referenced by this resource. Nested schema for project:
    target_account str
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    createdAt String
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    href String
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    projectEnvironmentId String
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    projects List<Property Map>
    (List) The project that is referenced by this resource. Nested schema for project:
    targetAccount String
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.

    Look up Existing ProjectEnvironment Resource

    Get an existing ProjectEnvironment 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>, state?: ProjectEnvironmentState, opts?: CustomResourceOptions): ProjectEnvironment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            definition: Optional[ProjectEnvironmentDefinitionArgs] = None,
            href: Optional[str] = None,
            ibm_project_environment_id: Optional[str] = None,
            modified_at: Optional[str] = None,
            project_environment_id: Optional[str] = None,
            project_id: Optional[str] = None,
            projects: Optional[Sequence[ProjectEnvironmentProjectArgs]] = None,
            target_account: Optional[str] = None) -> ProjectEnvironment
    func GetProjectEnvironment(ctx *Context, name string, id IDInput, state *ProjectEnvironmentState, opts ...ResourceOption) (*ProjectEnvironment, error)
    public static ProjectEnvironment Get(string name, Input<string> id, ProjectEnvironmentState? state, CustomResourceOptions? opts = null)
    public static ProjectEnvironment get(String name, Output<String> id, ProjectEnvironmentState state, CustomResourceOptions options)
    resources:  _:    type: ibm:ProjectEnvironment    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    Definition ProjectEnvironmentDefinition
    The environment definition. Nested schema for definition:
    Href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    IbmProjectEnvironmentId string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    ModifiedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    ProjectEnvironmentId string
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    ProjectId string
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    Projects List<ProjectEnvironmentProject>
    (List) The project that is referenced by this resource. Nested schema for project:
    TargetAccount string
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    CreatedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    Definition ProjectEnvironmentDefinitionArgs
    The environment definition. Nested schema for definition:
    Href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    IbmProjectEnvironmentId string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    ModifiedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    ProjectEnvironmentId string
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    ProjectId string
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    Projects []ProjectEnvironmentProjectArgs
    (List) The project that is referenced by this resource. Nested schema for project:
    TargetAccount string
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    createdAt String
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    definition ProjectEnvironmentDefinition
    The environment definition. Nested schema for definition:
    href String
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    ibmProjectEnvironmentId String
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    modifiedAt String
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    projectEnvironmentId String
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    projectId String
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    projects List<ProjectEnvironmentProject>
    (List) The project that is referenced by this resource. Nested schema for project:
    targetAccount String
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    createdAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    definition ProjectEnvironmentDefinition
    The environment definition. Nested schema for definition:
    href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    ibmProjectEnvironmentId string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    modifiedAt string
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    projectEnvironmentId string
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    projectId string
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    projects ProjectEnvironmentProject[]
    (List) The project that is referenced by this resource. Nested schema for project:
    targetAccount string
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    created_at str
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    definition ProjectEnvironmentDefinitionArgs
    The environment definition. Nested schema for definition:
    href str
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    ibm_project_environment_id str
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    modified_at str
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    project_environment_id str
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    project_id str
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    projects Sequence[ProjectEnvironmentProjectArgs]
    (List) The project that is referenced by this resource. Nested schema for project:
    target_account str
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.
    createdAt String
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    definition Property Map
    The environment definition. Nested schema for definition:
    href String
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    ibmProjectEnvironmentId String
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    modifiedAt String
    (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ to match the date and time format as specified by RFC 3339.
    projectEnvironmentId String
    (String) The environment ID as a friendly name.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$).+$/.
    projectId String
    The unique project ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    projects List<Property Map>
    (List) The project that is referenced by this resource. Nested schema for project:
    targetAccount String
    (String) The target account ID derived from the authentication block values. The target account exists only if the environment currently has an authorization block.

    • Constraints: The maximum length is 64 characters. The value must match regular expression /^[a-zA-Z0-9.-]+$/.

    Supporting Types

    ProjectEnvironmentDefinition, ProjectEnvironmentDefinitionArgs

    Name string
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    Authorizations ProjectEnvironmentDefinitionAuthorizations
    The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. Nested schema for authorizations:
    ComplianceProfile ProjectEnvironmentDefinitionComplianceProfile
    The profile that is required for compliance. Nested schema for compliance_profile:
    Description string
    The description of the environment.

    • Constraints: The default value is ''. The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/.
    Inputs Dictionary<string, string>
    The input variables that are used for configuration definition and environment.
    Name string
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    Authorizations ProjectEnvironmentDefinitionAuthorizations
    The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. Nested schema for authorizations:
    ComplianceProfile ProjectEnvironmentDefinitionComplianceProfile
    The profile that is required for compliance. Nested schema for compliance_profile:
    Description string
    The description of the environment.

    • Constraints: The default value is ''. The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/.
    Inputs map[string]string
    The input variables that are used for configuration definition and environment.
    name String
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    authorizations ProjectEnvironmentDefinitionAuthorizations
    The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. Nested schema for authorizations:
    complianceProfile ProjectEnvironmentDefinitionComplianceProfile
    The profile that is required for compliance. Nested schema for compliance_profile:
    description String
    The description of the environment.

    • Constraints: The default value is ''. The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/.
    inputs Map<String,String>
    The input variables that are used for configuration definition and environment.
    name string
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    authorizations ProjectEnvironmentDefinitionAuthorizations
    The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. Nested schema for authorizations:
    complianceProfile ProjectEnvironmentDefinitionComplianceProfile
    The profile that is required for compliance. Nested schema for compliance_profile:
    description string
    The description of the environment.

    • Constraints: The default value is ''. The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/.
    inputs {[key: string]: string}
    The input variables that are used for configuration definition and environment.
    name str
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    authorizations ProjectEnvironmentDefinitionAuthorizations
    The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. Nested schema for authorizations:
    compliance_profile ProjectEnvironmentDefinitionComplianceProfile
    The profile that is required for compliance. Nested schema for compliance_profile:
    description str
    The description of the environment.

    • Constraints: The default value is ''. The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/.
    inputs Mapping[str, str]
    The input variables that are used for configuration definition and environment.
    name String
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    authorizations Property Map
    The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager. Nested schema for authorizations:
    complianceProfile Property Map
    The profile that is required for compliance. Nested schema for compliance_profile:
    description String
    The description of the environment.

    • Constraints: The default value is ''. The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/.
    inputs Map<String>
    The input variables that are used for configuration definition and environment.

    ProjectEnvironmentDefinitionAuthorizations, ProjectEnvironmentDefinitionAuthorizationsArgs

    ApiKey string
    The IBM Cloud API Key. It can be either raw or pulled from the catalog via a CRN or JSON blob.

    • Constraints: The maximum length is 512 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    Method string
    The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.

    • Constraints: Allowable values are: api_key, trusted_profile.
    TrustedProfileId string
    The trusted profile ID.

    • Constraints: The maximum length is 512 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    ApiKey string
    The IBM Cloud API Key. It can be either raw or pulled from the catalog via a CRN or JSON blob.

    • Constraints: The maximum length is 512 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    Method string
    The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.

    • Constraints: Allowable values are: api_key, trusted_profile.
    TrustedProfileId string
    The trusted profile ID.

    • Constraints: The maximum length is 512 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    apiKey String
    The IBM Cloud API Key. It can be either raw or pulled from the catalog via a CRN or JSON blob.

    • Constraints: The maximum length is 512 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    method String
    The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.

    • Constraints: Allowable values are: api_key, trusted_profile.
    trustedProfileId String
    The trusted profile ID.

    • Constraints: The maximum length is 512 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    apiKey string
    The IBM Cloud API Key. It can be either raw or pulled from the catalog via a CRN or JSON blob.

    • Constraints: The maximum length is 512 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    method string
    The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.

    • Constraints: Allowable values are: api_key, trusted_profile.
    trustedProfileId string
    The trusted profile ID.

    • Constraints: The maximum length is 512 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    api_key str
    The IBM Cloud API Key. It can be either raw or pulled from the catalog via a CRN or JSON blob.

    • Constraints: The maximum length is 512 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    method str
    The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.

    • Constraints: Allowable values are: api_key, trusted_profile.
    trusted_profile_id str
    The trusted profile ID.

    • Constraints: The maximum length is 512 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    apiKey String
    The IBM Cloud API Key. It can be either raw or pulled from the catalog via a CRN or JSON blob.

    • Constraints: The maximum length is 512 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    method String
    The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.

    • Constraints: Allowable values are: api_key, trusted_profile.
    trustedProfileId String
    The trusted profile ID.

    • Constraints: The maximum length is 512 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.

    ProjectEnvironmentDefinitionComplianceProfile, ProjectEnvironmentDefinitionComplianceProfileArgs

    AttachmentId string
    A unique ID for the attachment to a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    Id string
    The unique ID for the compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    InstanceId string
    A unique ID for the instance of a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    InstanceLocation string
    The location of the compliance instance.

    • Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de, ca-tor.
    ProfileName string
    The name of the compliance profile.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    AttachmentId string
    A unique ID for the attachment to a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    Id string
    The unique ID for the compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    InstanceId string
    A unique ID for the instance of a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    InstanceLocation string
    The location of the compliance instance.

    • Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de, ca-tor.
    ProfileName string
    The name of the compliance profile.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    attachmentId String
    A unique ID for the attachment to a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    id String
    The unique ID for the compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    instanceId String
    A unique ID for the instance of a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    instanceLocation String
    The location of the compliance instance.

    • Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de, ca-tor.
    profileName String
    The name of the compliance profile.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    attachmentId string
    A unique ID for the attachment to a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    id string
    The unique ID for the compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    instanceId string
    A unique ID for the instance of a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    instanceLocation string
    The location of the compliance instance.

    • Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de, ca-tor.
    profileName string
    The name of the compliance profile.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    attachment_id str
    A unique ID for the attachment to a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    id str
    The unique ID for the compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    instance_id str
    A unique ID for the instance of a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    instance_location str
    The location of the compliance instance.

    • Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de, ca-tor.
    profile_name str
    The name of the compliance profile.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.
    attachmentId String
    A unique ID for the attachment to a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    id String
    The unique ID for the compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    instanceId String
    A unique ID for the instance of a compliance profile.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    instanceLocation String
    The location of the compliance instance.

    • Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de, ca-tor.
    profileName String
    The name of the compliance profile.

    • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/.

    ProjectEnvironmentProject, ProjectEnvironmentProjectArgs

    Crn string
    (String) An IBM Cloud resource name that uniquely identifies a resource.

    • Constraints: The maximum length is 512 characters. The minimum length is 4 characters. The value must match regular expression /(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/.
    Definitions List<ProjectEnvironmentProjectDefinition>
    The environment definition. Nested schema for definition:
    Href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    Id string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    Crn string
    (String) An IBM Cloud resource name that uniquely identifies a resource.

    • Constraints: The maximum length is 512 characters. The minimum length is 4 characters. The value must match regular expression /(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/.
    Definitions []ProjectEnvironmentProjectDefinition
    The environment definition. Nested schema for definition:
    Href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    Id string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    crn String
    (String) An IBM Cloud resource name that uniquely identifies a resource.

    • Constraints: The maximum length is 512 characters. The minimum length is 4 characters. The value must match regular expression /(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/.
    definitions List<ProjectEnvironmentProjectDefinition>
    The environment definition. Nested schema for definition:
    href String
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    id String
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    crn string
    (String) An IBM Cloud resource name that uniquely identifies a resource.

    • Constraints: The maximum length is 512 characters. The minimum length is 4 characters. The value must match regular expression /(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/.
    definitions ProjectEnvironmentProjectDefinition[]
    The environment definition. Nested schema for definition:
    href string
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    id string
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    crn str
    (String) An IBM Cloud resource name that uniquely identifies a resource.

    • Constraints: The maximum length is 512 characters. The minimum length is 4 characters. The value must match regular expression /(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/.
    definitions Sequence[ProjectEnvironmentProjectDefinition]
    The environment definition. Nested schema for definition:
    href str
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    id str
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.
    crn String
    (String) An IBM Cloud resource name that uniquely identifies a resource.

    • Constraints: The maximum length is 512 characters. The minimum length is 4 characters. The value must match regular expression /(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/.
    definitions List<Property Map>
    The environment definition. Nested schema for definition:
    href String
    (String) A URL.

    • Constraints: The maximum length is 256 characters. The minimum length is 1 character. The value must match regular expression /^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/.
    id String
    (String) The unique ID.

    • Constraints: The maximum length is 128 characters. The value must match regular expression /^[\\.\\-0-9a-zA-Z]+$/.

    ProjectEnvironmentProjectDefinition, ProjectEnvironmentProjectDefinitionArgs

    Name string
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    Name string
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    name String
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    name string
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    name str
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.
    name String
    The name of the environment. It's unique within the account across projects and regions.

    • Constraints: The maximum length is 128 characters. The minimum length is 1 character. The value must match regular expression /^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/.

    Import

    You can import the ibm_project_environment resource by using id.

    The id property can be formed from project_id, and project_environment_id in the following format:

    
    <project_id>/<project_environment_id>
    
    
    • project_id: A string. The unique project ID.

    • project_environment_id: A string. The environment ID as a friendly name.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/projectEnvironment:ProjectEnvironment project_environment <project_id>/<project_environment_id>
    ```
    
    

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

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud