1. Packages
  2. Openstack Provider
  3. API Docs
  4. orchestration
  5. StackV1
OpenStack v5.0.3 published on Wednesday, Feb 12, 2025 by Pulumi

openstack.orchestration.StackV1

Explore with Pulumi AI

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,
});
Copy
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)
Copy
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v5/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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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
Copy

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

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

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

The StackV1 resource accepts the following input properties:

TemplateOpts This property is required. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. {[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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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)
resources:  _:    type: openstack:orchestration:StackV1    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. string
OutputValue This property is required. string
Description string
The description of the stack resource.
OutputKey This property is required. string
OutputValue This property is required. string
Description string
The description of the stack resource.
outputKey This property is required. String
outputValue This property is required. String
description String
The description of the stack resource.
outputKey This property is required. string
outputValue This property is required. string
description string
The description of the stack resource.
output_key This property is required. str
output_value This property is required. str
description str
The description of the stack resource.
outputKey This property is required. String
outputValue This property is required. 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
Copy

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.