Show / Hide Table of Contents

Class 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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
StackV1
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Orchestration
Assembly: Pulumi.OpenStack.dll
Syntax
public class StackV1 : CustomResource

Constructors

View Source

StackV1(String, StackV1Args, CustomResourceOptions)

Create a StackV1 resource with the given unique name, arguments, and options.

Declaration
public StackV1(string name, StackV1Args args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

StackV1Args args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Capabilities

List of stack capabilities for stack.

Declaration
public Output<ImmutableArray<string>> Capabilities { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

CreationTime

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.

Declaration
public Output<string> CreationTime { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

The description of the stack resource.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

DisableRollback

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.

Declaration
public Output<bool> DisableRollback { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

EnvironmentOpts

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.

Declaration
public Output<ImmutableDictionary<string, object>> EnvironmentOpts { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

Name

A unique name for the stack. It must start with an alphabetic character. Changing this updates the stack's name.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

NotificationTopics

List of notification topics for stack.

Declaration
public Output<ImmutableArray<string>> NotificationTopics { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Outputs

A list of stack outputs.

Declaration
public Output<ImmutableArray<StackV1Output>> Outputs { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<StackV1Output>>
View Source

Parameters

User-defined key/value pairs as parameters to pass to the template. Changing this updates the existing stack parameters.

Declaration
public Output<ImmutableDictionary<string, object>> Parameters { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

Region

The region in which to create the stack. If omitted, the region argument of the provider is used. Changing this creates a new stack.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

Status

The status of the stack.

Declaration
public Output<string> Status { get; }
Property Value
Type Description
Output<System.String>
View Source

StatusReason

The reason for the current status of the stack.

Declaration
public Output<string> StatusReason { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A list of tags to assosciate with the Stack

Declaration
public Output<ImmutableArray<string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

TemplateDescription

The description of the stack template.

Declaration
public Output<string> TemplateDescription { get; }
Property Value
Type Description
Output<System.String>
View Source

TemplateOpts

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.

Declaration
public Output<ImmutableDictionary<string, object>> TemplateOpts { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

Timeout

The timeout for stack action in minutes.

Declaration
public Output<int> Timeout { get; }
Property Value
Type Description
Output<System.Int32>
View Source

UpdatedTime

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.

Declaration
public Output<string> UpdatedTime { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, StackV1State, CustomResourceOptions)

Get an existing StackV1 resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static StackV1 Get(string name, Input<string> id, StackV1State state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

StackV1State state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
StackV1
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.