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:
- Template
Opts 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.
- Creation
Time 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.
- 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 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.
- Notification
Topics List<string> List of notification topics for stack.
- Outputs
List<Pulumi.
Open Stack. Orchestration. Inputs. Stack V1Output Args> 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
regionargument of the provider is used. Changing this creates a new stack.- Status string
The status of the stack.
- Status
Reason string The reason for the current status of the stack.
- List<string>
A list of tags to assosciate with the Stack
- Template
Description string The description of the stack template.
- Timeout int
The timeout for stack action in minutes.
- Updated
Time 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 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.
- Creation
Time 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.
- 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 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.
- Notification
Topics []string List of notification topics for stack.
- Outputs
[]Stack
V1Output 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
regionargument of the provider is used. Changing this creates a new stack.- Status string
The status of the stack.
- Status
Reason string The reason for the current status of the stack.
- []string
A list of tags to assosciate with the Stack
- Template
Description string The description of the stack template.
- Timeout int
The timeout for stack action in minutes.
- Updated
Time 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 {[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.
- creation
Time 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.
- disable
Rollback 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.
- environment
Opts {[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.
- notification
Topics string[] List of notification topics for stack.
- outputs
Stack
V1Output[] 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
regionargument of the provider is used. Changing this creates a new stack.- status string
The status of the stack.
- status
Reason string The reason for the current status of the stack.
- string[]
A list of tags to assosciate with the Stack
- template
Description string The description of the stack template.
- timeout number
The timeout for stack action in minutes.
- updated
Time 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[Stack
V1Output] 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
regionargument 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.
- 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:
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): StackV1static 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.
- Creation
Time 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.
- 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 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.
- Notification
Topics List<string> List of notification topics for stack.
- Outputs
List<Pulumi.
Open Stack. Orchestration. Inputs. Stack V1Output Args> 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
regionargument of the provider is used. Changing this creates a new stack.- Status string
The status of the stack.
- Status
Reason string The reason for the current status of the stack.
- List<string>
A list of tags to assosciate with the Stack
- Template
Description string The description of the stack template.
- Template
Opts 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.
- Updated
Time 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.
- Creation
Time 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.
- 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 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.
- Notification
Topics []string List of notification topics for stack.
- Outputs
[]Stack
V1Output 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
regionargument of the provider is used. Changing this creates a new stack.- Status string
The status of the stack.
- Status
Reason string The reason for the current status of the stack.
- []string
A list of tags to assosciate with the Stack
- Template
Description string The description of the stack template.
- Template
Opts 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.
- Updated
Time 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.
- creation
Time 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.
- disable
Rollback 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.
- environment
Opts {[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.
- notification
Topics string[] List of notification topics for stack.
- outputs
Stack
V1Output[] 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
regionargument of the provider is used. Changing this creates a new stack.- status string
The status of the stack.
- status
Reason string The reason for the current status of the stack.
- string[]
A list of tags to assosciate with the Stack
- template
Description string The description of the stack template.
- template
Opts {[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.
- updated
Time 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[Stack
V1Output] 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
regionargument 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.
- 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
- Output
Key string - Output
Value string - Description string
The description of the stack resource.
- Output
Key string - Output
Value string - Description string
The description of the stack resource.
- output
Key string - output
Value string - description string
The description of the stack resource.
- output
Key str - output
Value 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
openstackTerraform Provider.