StackV1

Manages a V1 stack resource within OpenStack.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var stack1 = new OpenStack.Orchestration.StackV1("stack1", new OpenStack.Orchestration.StackV1Args
        {
            DisableRollback = true,
            EnvironmentOpts = 
            {
                { "Bin", @"

" },
            },
            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}

" },
            },
            Timeout = 30,
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

stack1 = openstack.orchestration.StackV1("stack1",
    disable_rollback=True,
    environment_opts={
        "Bin": "\n\n",
    },
    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}

""",
    },
    timeout=30)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const stack1 = new openstack.orchestration.StackV1("stack_1", {
    disableRollback: true,
    environmentOpts: {
        Bin: "\n",
    },
    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}
`,
    },
    timeout: 30,
});

Create a StackV1 Resource

new StackV1(name: string, args: StackV1Args, opts?: CustomResourceOptions);
def StackV1(resource_name, opts=None, capabilities=None, creation_time=None, description=None, disable_rollback=None, environment_opts=None, name=None, notification_topics=None, outputs=None, parameters=None, region=None, status=None, status_reason=None, tags=None, template_description=None, template_opts=None, timeout=None, updated_time=None, __props__=None);
func NewStackV1(ctx *Context, name string, args StackV1Args, opts ...ResourceOption) (*StackV1, error)
public StackV1(string name, StackV1Args args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

StackV1 Resource Properties

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

Inputs

The StackV1 resource accepts the following input properties:

TemplateOpts Dictionary<string, object>

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, object>

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.

Outputs List<Pulumi.OpenStack.Orchestration.Inputs.StackV1OutputArgs>

A list of stack outputs.

Parameters Dictionary<string, object>

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 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]interface{}

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]interface{}

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.

Outputs []StackV1Output

A list of stack outputs.

Parameters map[string]interface{}

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 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 {[key: string]: any}

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 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]: any}

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.

outputs StackV1Output[]

A list of stack outputs.

parameters {[key: string]: any}

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 Dict[str, Any]

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[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 Dict[str, Any]

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 List[str]

List of notification topics for stack.

outputs List[StackV1Output]

A list of stack outputs.

parameters Dict[str, Any]

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.

status str

The status of the stack.

status_reason str

The reason for the current status of the stack.

tags List[str]

A list of tags to assosciate with the Stack

template_description str

The description of the stack template.

timeout float

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.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, capabilities=None, creation_time=None, description=None, disable_rollback=None, environment_opts=None, name=None, notification_topics=None, outputs=None, parameters=None, region=None, status=None, status_reason=None, tags=None, template_description=None, template_opts=None, timeout=None, updated_time=None, __props__=None);
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)
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.

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, object>

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.

Outputs List<Pulumi.OpenStack.Orchestration.Inputs.StackV1OutputArgs>

A list of stack outputs.

Parameters Dictionary<string, object>

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 Dictionary<string, object>

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]interface{}

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.

Outputs []StackV1Output

A list of stack outputs.

Parameters map[string]interface{}

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 map[string]interface{}

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 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]: any}

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.

outputs StackV1Output[]

A list of stack outputs.

parameters {[key: string]: any}

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]: any}

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 List[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 Dict[str, Any]

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 List[str]

List of notification topics for stack.

outputs List[StackV1Output]

A list of stack outputs.

parameters Dict[str, Any]

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.

status str

The status of the stack.

status_reason str

The reason for the current status of the stack.

tags List[str]

A list of tags to assosciate with the Stack

template_description str

The description of the stack template.

template_opts Dict[str, Any]

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 float

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.

Supporting Types

StackV1Output

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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 str
outputValue str
description str

The description of the stack resource.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.