1. Packages
  2. Openstack Provider
  3. API Docs
  4. orchestration
  5. StackV1
OpenStack v4.1.3 published on Wednesday, Aug 21, 2024 by Pulumi

openstack.orchestration.StackV1

Explore with Pulumi AI

openstack logo
OpenStack v4.1.3 published on Wednesday, Aug 21, 2024 by Pulumi

    Manages a V1 stack resource within OpenStack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const stack1 = new openstack.orchestration.StackV1("stack_1", {
        name: "stack_1",
        parameters: {
            length: "4",
        },
        templateOpts: {
            Bin: `heat_template_version: 2013-05-23
    parameters:
      length:
        type: number
    resources:
      test_res:
        type: OS::Heat::TestResource
      random:
        type: OS::Heat::RandomString
        properties:
          length: {get_param: length}
    `,
        },
        environmentOpts: {
            Bin: "\n",
        },
        disableRollback: true,
        timeout: 30,
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    stack1 = openstack.orchestration.StackV1("stack_1",
        name="stack_1",
        parameters={
            "length": "4",
        },
        template_opts={
            "Bin": """heat_template_version: 2013-05-23
    parameters:
      length:
        type: number
    resources:
      test_res:
        type: OS::Heat::TestResource
      random:
        type: OS::Heat::RandomString
        properties:
          length: {get_param: length}
    """,
        },
        environment_opts={
            "Bin": "\n",
        },
        disable_rollback=True,
        timeout=30)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/orchestration"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := orchestration.NewStackV1(ctx, "stack_1", &orchestration.StackV1Args{
    			Name: pulumi.String("stack_1"),
    			Parameters: pulumi.StringMap{
    				"length": pulumi.String("4"),
    			},
    			TemplateOpts: pulumi.StringMap{
    				"Bin": pulumi.String(`heat_template_version: 2013-05-23
    parameters:
      length:
        type: number
    resources:
      test_res:
        type: OS::Heat::TestResource
      random:
        type: OS::Heat::RandomString
        properties:
          length: {get_param: length}
    `),
    			},
    			EnvironmentOpts: pulumi.StringMap{
    				"Bin": pulumi.String("\n"),
    			},
    			DisableRollback: pulumi.Bool(true),
    			Timeout:         pulumi.Int(30),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var stack1 = new OpenStack.Orchestration.StackV1("stack_1", new()
        {
            Name = "stack_1",
            Parameters = 
            {
                { "length", "4" },
            },
            TemplateOpts = 
            {
                { "Bin", @"heat_template_version: 2013-05-23
    parameters:
      length:
        type: number
    resources:
      test_res:
        type: OS::Heat::TestResource
      random:
        type: OS::Heat::RandomString
        properties:
          length: {get_param: length}
    " },
            },
            EnvironmentOpts = 
            {
                { "Bin", @"
    " },
            },
            DisableRollback = true,
            Timeout = 30,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.orchestration.StackV1;
    import com.pulumi.openstack.orchestration.StackV1Args;
    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 stack1 = new StackV1("stack1", StackV1Args.builder()
                .name("stack_1")
                .parameters(Map.of("length", 4))
                .templateOpts(Map.of("Bin", """
    heat_template_version: 2013-05-23
    parameters:
      length:
        type: number
    resources:
      test_res:
        type: OS::Heat::TestResource
      random:
        type: OS::Heat::RandomString
        properties:
          length: {get_param: length}
                """))
                .environmentOpts(Map.of("Bin", """
    
                """))
                .disableRollback(true)
                .timeout(30)
                .build());
    
        }
    }
    
    resources:
      stack1:
        type: openstack:orchestration:StackV1
        name: stack_1
        properties:
          name: stack_1
          parameters:
            length: 4
          templateOpts:
            Bin: |
              heat_template_version: 2013-05-23
              parameters:
                length:
                  type: number
              resources:
                test_res:
                  type: OS::Heat::TestResource
                random:
                  type: OS::Heat::RandomString
                  properties:
                    length: {get_param: length}          
          environmentOpts:
            Bin: |2+
          disableRollback: true
          timeout: 30
    

    Create StackV1 Resource

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

    Constructor syntax

    new StackV1(name: string, args: StackV1Args, opts?: CustomResourceOptions);
    @overload
    def StackV1(resource_name: str,
                args: StackV1Args,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def StackV1(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                template_opts: Optional[Mapping[str, str]] = None,
                parameters: Optional[Mapping[str, str]] = None,
                notification_topics: Optional[Sequence[str]] = None,
                description: Optional[str] = None,
                disable_rollback: Optional[bool] = None,
                region: Optional[str] = None,
                name: Optional[str] = None,
                creation_time: Optional[str] = None,
                stack_outputs: Optional[Sequence[StackV1StackOutputArgs]] = None,
                environment_opts: Optional[Mapping[str, str]] = None,
                status: Optional[str] = None,
                status_reason: Optional[str] = None,
                tags: Optional[Sequence[str]] = None,
                template_description: Optional[str] = None,
                capabilities: Optional[Sequence[str]] = None,
                timeout: Optional[int] = None,
                updated_time: Optional[str] = None)
    func NewStackV1(ctx *Context, name string, args StackV1Args, opts ...ResourceOption) (*StackV1, error)
    public StackV1(string name, StackV1Args args, CustomResourceOptions? opts = null)
    public StackV1(String name, StackV1Args args)
    public StackV1(String name, StackV1Args args, CustomResourceOptions options)
    
    type: openstack:orchestration:StackV1
    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 StackV1Args
    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 StackV1Args
    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 StackV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StackV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StackV1Args
    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 stackV1Resource = new OpenStack.Orchestration.StackV1("stackV1Resource", new()
    {
        TemplateOpts = 
        {
            { "string", "string" },
        },
        Parameters = 
        {
            { "string", "string" },
        },
        NotificationTopics = new[]
        {
            "string",
        },
        Description = "string",
        DisableRollback = false,
        Region = "string",
        Name = "string",
        CreationTime = "string",
        StackOutputs = new[]
        {
            new OpenStack.Orchestration.Inputs.StackV1StackOutputArgs
            {
                OutputKey = "string",
                OutputValue = "string",
                Description = "string",
            },
        },
        EnvironmentOpts = 
        {
            { "string", "string" },
        },
        Status = "string",
        StatusReason = "string",
        Tags = new[]
        {
            "string",
        },
        TemplateDescription = "string",
        Capabilities = new[]
        {
            "string",
        },
        Timeout = 0,
        UpdatedTime = "string",
    });
    
    example, err := orchestration.NewStackV1(ctx, "stackV1Resource", &orchestration.StackV1Args{
    	TemplateOpts: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Parameters: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	NotificationTopics: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description:     pulumi.String("string"),
    	DisableRollback: pulumi.Bool(false),
    	Region:          pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	CreationTime:    pulumi.String("string"),
    	StackOutputs: orchestration.StackV1StackOutputArray{
    		orchestration.StackV1StackOutputArgs{
    			OutputKey:   pulumi.String("string"),
    			OutputValue: pulumi.String("string"),
    			Description: pulumi.String("string"),
    		},
    	},
    	EnvironmentOpts: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Status:       pulumi.String("string"),
    	StatusReason: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TemplateDescription: pulumi.String("string"),
    	Capabilities: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeout:     pulumi.Int(0),
    	UpdatedTime: pulumi.String("string"),
    })
    
    var stackV1Resource = new StackV1("stackV1Resource", StackV1Args.builder()
        .templateOpts(Map.of("string", "string"))
        .parameters(Map.of("string", "string"))
        .notificationTopics("string")
        .description("string")
        .disableRollback(false)
        .region("string")
        .name("string")
        .creationTime("string")
        .StackOutputs(StackV1StackOutputArgs.builder()
            .outputKey("string")
            .outputValue("string")
            .description("string")
            .build())
        .environmentOpts(Map.of("string", "string"))
        .status("string")
        .statusReason("string")
        .tags("string")
        .templateDescription("string")
        .capabilities("string")
        .timeout(0)
        .updatedTime("string")
        .build());
    
    stack_v1_resource = openstack.orchestration.StackV1("stackV1Resource",
        template_opts={
            "string": "string",
        },
        parameters={
            "string": "string",
        },
        notification_topics=["string"],
        description="string",
        disable_rollback=False,
        region="string",
        name="string",
        creation_time="string",
        stack_outputs=[openstack.orchestration.StackV1StackOutputArgs(
            output_key="string",
            output_value="string",
            description="string",
        )],
        environment_opts={
            "string": "string",
        },
        status="string",
        status_reason="string",
        tags=["string"],
        template_description="string",
        capabilities=["string"],
        timeout=0,
        updated_time="string")
    
    const stackV1Resource = new openstack.orchestration.StackV1("stackV1Resource", {
        templateOpts: {
            string: "string",
        },
        parameters: {
            string: "string",
        },
        notificationTopics: ["string"],
        description: "string",
        disableRollback: false,
        region: "string",
        name: "string",
        creationTime: "string",
        StackOutputs: [{
            outputKey: "string",
            outputValue: "string",
            description: "string",
        }],
        environmentOpts: {
            string: "string",
        },
        status: "string",
        statusReason: "string",
        tags: ["string"],
        templateDescription: "string",
        capabilities: ["string"],
        timeout: 0,
        updatedTime: "string",
    });
    
    type: openstack:orchestration:StackV1
    properties:
        StackOutputs:
            - description: string
              outputKey: string
              outputValue: string
        capabilities:
            - string
        creationTime: string
        description: string
        disableRollback: false
        environmentOpts:
            string: string
        name: string
        notificationTopics:
            - string
        parameters:
            string: string
        region: string
        status: string
        statusReason: string
        tags:
            - string
        templateDescription: string
        templateOpts:
            string: string
        timeout: 0
        updatedTime: string
    

    StackV1 Resource Properties

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

    Inputs

    The StackV1 resource accepts the following input properties:

    TemplateOpts Dictionary<string, string>
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    Capabilities List<string>
    List of stack capabilities for stack.
    CreationTime string
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    Description string
    The description of the stack resource.
    DisableRollback bool
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    EnvironmentOpts Dictionary<string, string>
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    Name string
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    NotificationTopics List<string>
    List of notification topics for stack.
    Parameters Dictionary<string, string>
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    Region string
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    StackOutputs List<Pulumi.OpenStack.Orchestration.Inputs.StackV1StackOutput>
    A list of stack outputs.
    Status string
    The status of the stack.
    StatusReason string
    The reason for the current status of the stack.
    Tags List<string>
    A list of tags to assosciate with the Stack
    TemplateDescription string
    The description of the stack template.
    Timeout int
    The timeout for stack action in minutes.
    UpdatedTime string
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    TemplateOpts map[string]string
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    Capabilities []string
    List of stack capabilities for stack.
    CreationTime string
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    Description string
    The description of the stack resource.
    DisableRollback bool
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    EnvironmentOpts map[string]string
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    Name string
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    NotificationTopics []string
    List of notification topics for stack.
    Parameters map[string]string
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    Region string
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    StackOutputs []StackV1StackOutputArgs
    A list of stack outputs.
    Status string
    The status of the stack.
    StatusReason string
    The reason for the current status of the stack.
    Tags []string
    A list of tags to assosciate with the Stack
    TemplateDescription string
    The description of the stack template.
    Timeout int
    The timeout for stack action in minutes.
    UpdatedTime string
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    templateOpts Map<String,String>
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    StackOutputs List<StackV1StackOutput>
    A list of stack outputs.
    capabilities List<String>
    List of stack capabilities for stack.
    creationTime String
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    description String
    The description of the stack resource.
    disableRollback Boolean
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    environmentOpts Map<String,String>
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    name String
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    notificationTopics List<String>
    List of notification topics for stack.
    parameters Map<String,String>
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    region String
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    status String
    The status of the stack.
    statusReason String
    The reason for the current status of the stack.
    tags List<String>
    A list of tags to assosciate with the Stack
    templateDescription String
    The description of the stack template.
    timeout Integer
    The timeout for stack action in minutes.
    updatedTime String
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    templateOpts {[key: string]: string}
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    StackOutputs StackV1StackOutput[]
    A list of stack outputs.
    capabilities string[]
    List of stack capabilities for stack.
    creationTime string
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    description string
    The description of the stack resource.
    disableRollback boolean
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    environmentOpts {[key: string]: string}
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    name string
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    notificationTopics string[]
    List of notification topics for stack.
    parameters {[key: string]: string}
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    region string
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    status string
    The status of the stack.
    statusReason string
    The reason for the current status of the stack.
    tags string[]
    A list of tags to assosciate with the Stack
    templateDescription string
    The description of the stack template.
    timeout number
    The timeout for stack action in minutes.
    updatedTime string
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    template_opts Mapping[str, str]
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    capabilities Sequence[str]
    List of stack capabilities for stack.
    creation_time str
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    description str
    The description of the stack resource.
    disable_rollback bool
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    environment_opts Mapping[str, str]
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    name str
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    notification_topics Sequence[str]
    List of notification topics for stack.
    parameters Mapping[str, str]
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    region str
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    stack_outputs Sequence[StackV1StackOutputArgs]
    A list of stack outputs.
    status str
    The status of the stack.
    status_reason str
    The reason for the current status of the stack.
    tags Sequence[str]
    A list of tags to assosciate with the Stack
    template_description str
    The description of the stack template.
    timeout int
    The timeout for stack action in minutes.
    updated_time str
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    templateOpts Map<String>
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    StackOutputs List<Property Map>
    A list of stack outputs.
    capabilities List<String>
    List of stack capabilities for stack.
    creationTime String
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    description String
    The description of the stack resource.
    disableRollback Boolean
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    environmentOpts Map<String>
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    name String
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    notificationTopics List<String>
    List of notification topics for stack.
    parameters Map<String>
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    region String
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    status String
    The status of the stack.
    statusReason String
    The reason for the current status of the stack.
    tags List<String>
    A list of tags to assosciate with the Stack
    templateDescription String
    The description of the stack template.
    timeout Number
    The timeout for stack action in minutes.
    updatedTime String
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StackV1 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing StackV1 Resource

    Get an existing StackV1 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?: StackV1State, opts?: CustomResourceOptions): StackV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            stack_outputs: Optional[Sequence[StackV1StackOutputArgs]] = None,
            capabilities: Optional[Sequence[str]] = None,
            creation_time: Optional[str] = None,
            description: Optional[str] = None,
            disable_rollback: Optional[bool] = None,
            environment_opts: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            notification_topics: Optional[Sequence[str]] = None,
            parameters: Optional[Mapping[str, str]] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            status_reason: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            template_description: Optional[str] = None,
            template_opts: Optional[Mapping[str, str]] = None,
            timeout: Optional[int] = None,
            updated_time: Optional[str] = None) -> StackV1
    func GetStackV1(ctx *Context, name string, id IDInput, state *StackV1State, opts ...ResourceOption) (*StackV1, error)
    public static StackV1 Get(string name, Input<string> id, StackV1State? state, CustomResourceOptions? opts = null)
    public static StackV1 get(String name, Output<String> id, StackV1State state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Capabilities List<string>
    List of stack capabilities for stack.
    CreationTime string
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    Description string
    The description of the stack resource.
    DisableRollback bool
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    EnvironmentOpts Dictionary<string, string>
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    Name string
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    NotificationTopics List<string>
    List of notification topics for stack.
    Parameters Dictionary<string, string>
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    Region string
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    StackOutputs List<Pulumi.OpenStack.Orchestration.Inputs.StackV1StackOutput>
    A list of stack outputs.
    Status string
    The status of the stack.
    StatusReason string
    The reason for the current status of the stack.
    Tags List<string>
    A list of tags to assosciate with the Stack
    TemplateDescription string
    The description of the stack template.
    TemplateOpts Dictionary<string, string>
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    Timeout int
    The timeout for stack action in minutes.
    UpdatedTime string
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    Capabilities []string
    List of stack capabilities for stack.
    CreationTime string
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    Description string
    The description of the stack resource.
    DisableRollback bool
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    EnvironmentOpts map[string]string
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    Name string
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    NotificationTopics []string
    List of notification topics for stack.
    Parameters map[string]string
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    Region string
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    StackOutputs []StackV1StackOutputArgs
    A list of stack outputs.
    Status string
    The status of the stack.
    StatusReason string
    The reason for the current status of the stack.
    Tags []string
    A list of tags to assosciate with the Stack
    TemplateDescription string
    The description of the stack template.
    TemplateOpts map[string]string
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    Timeout int
    The timeout for stack action in minutes.
    UpdatedTime string
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    StackOutputs List<StackV1StackOutput>
    A list of stack outputs.
    capabilities List<String>
    List of stack capabilities for stack.
    creationTime String
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    description String
    The description of the stack resource.
    disableRollback Boolean
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    environmentOpts Map<String,String>
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    name String
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    notificationTopics List<String>
    List of notification topics for stack.
    parameters Map<String,String>
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    region String
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    status String
    The status of the stack.
    statusReason String
    The reason for the current status of the stack.
    tags List<String>
    A list of tags to assosciate with the Stack
    templateDescription String
    The description of the stack template.
    templateOpts Map<String,String>
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    timeout Integer
    The timeout for stack action in minutes.
    updatedTime String
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    StackOutputs StackV1StackOutput[]
    A list of stack outputs.
    capabilities string[]
    List of stack capabilities for stack.
    creationTime string
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    description string
    The description of the stack resource.
    disableRollback boolean
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    environmentOpts {[key: string]: string}
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    name string
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    notificationTopics string[]
    List of notification topics for stack.
    parameters {[key: string]: string}
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    region string
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    status string
    The status of the stack.
    statusReason string
    The reason for the current status of the stack.
    tags string[]
    A list of tags to assosciate with the Stack
    templateDescription string
    The description of the stack template.
    templateOpts {[key: string]: string}
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    timeout number
    The timeout for stack action in minutes.
    updatedTime string
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    capabilities Sequence[str]
    List of stack capabilities for stack.
    creation_time str
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    description str
    The description of the stack resource.
    disable_rollback bool
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    environment_opts Mapping[str, str]
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    name str
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    notification_topics Sequence[str]
    List of notification topics for stack.
    parameters Mapping[str, str]
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    region str
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    stack_outputs Sequence[StackV1StackOutputArgs]
    A list of stack outputs.
    status str
    The status of the stack.
    status_reason str
    The reason for the current status of the stack.
    tags Sequence[str]
    A list of tags to assosciate with the Stack
    template_description str
    The description of the stack template.
    template_opts Mapping[str, str]
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    timeout int
    The timeout for stack action in minutes.
    updated_time str
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    StackOutputs List<Property Map>
    A list of stack outputs.
    capabilities List<String>
    List of stack capabilities for stack.
    creationTime String
    The date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.
    description String
    The description of the stack resource.
    disableRollback Boolean
    Enables or disables deletion of all stack resources when a stack creation fails. Default is true, meaning all resources are not deleted when stack creation fails.
    environmentOpts Map<String>
    Environment key/value pairs to associate with the stack which contains details for the environment of the stack. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Environment Opts.
    name String
    A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.
    notificationTopics List<String>
    List of notification topics for stack.
    parameters Map<String>
    User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.
    region String
    The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.
    status String
    The status of the stack.
    statusReason String
    The reason for the current status of the stack.
    tags List<String>
    A list of tags to assosciate with the Stack
    templateDescription String
    The description of the stack template.
    templateOpts Map<String>
    Template key/value pairs to associate with the stack which contains either the template file or url. Allowed keys: Bin, URL, Files. Changing this updates the existing stack Template Opts.
    timeout Number
    The timeout for stack action in minutes.
    updatedTime String
    The date and time when the resource was updated. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC.

    Supporting Types

    StackV1StackOutput, StackV1StackOutputArgs

    OutputKey string
    OutputValue string
    Description string
    The description of the stack resource.
    OutputKey string
    OutputValue string
    Description string
    The description of the stack resource.
    outputKey String
    outputValue String
    description String
    The description of the stack resource.
    outputKey string
    outputValue string
    description string
    The description of the stack resource.
    output_key str
    output_value str
    description str
    The description of the stack resource.
    outputKey String
    outputValue String
    description String
    The description of the stack resource.

    Import

    stacks can be imported using the id, e.g.

    $ pulumi import openstack:orchestration/stackV1:StackV1 stack_1 ea257959-eeb1-4c10-8d33-26f0409a755d
    

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

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v4.1.3 published on Wednesday, Aug 21, 2024 by Pulumi