Instance
Create a Instance Resource
new Instance(name: string, args?: InstanceArgs, opts?: CustomResourceOptions);def Instance(resource_name, opts=None, access_ip_v4=None, access_ip_v6=None, admin_pass=None, availability_zone=None, availability_zone_hints=None, block_devices=None, config_drive=None, flavor_id=None, flavor_name=None, force_delete=None, image_id=None, image_name=None, key_pair=None, metadata=None, name=None, networks=None, personalities=None, power_state=None, region=None, scheduler_hints=None, security_groups=None, stop_before_destroy=None, tags=None, user_data=None, vendor_options=None, __props__=None);func NewInstance(ctx *Context, name string, args *InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
- Access
Ip stringV4 The first detected Fixed IPv4 address.
- Access
Ip stringV6 The first detected Fixed IPv6 address.
- Admin
Pass string The administrative password to assign to the server. Changing this changes the root password on the existing server.
- Availability
Zone string The availability zone in which to create the server. Conflicts with
availability_zone_hints. Changing this creates a new server.- Availability
Zone stringHints The availability zone in which to create the server. This argument is preferred to
availability_zone, when scheduling the server on a particular host or node. Conflicts withavailability_zone. Changing this creates a new server.- Block
Devices List<Pulumi.Open Stack. Compute. Inputs. Instance Block Device Args> Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following reference for more information.
- Config
Drive bool Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
- Flavor
Id string The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
- Flavor
Name string The name of the desired flavor for the server. Changing this resizes the existing server.
- Force
Delete bool Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
- Image
Id string (Optional; Required if
image_nameis empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this creates a new server.- Image
Name string (Optional; Required if
image_idis empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this creates a new server.- Key
Pair string The name of a key pair to put on the server. The key pair must already be created and associated with the tenant’s account. Changing this creates a new server.
- Metadata Dictionary<string, object>
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
- Name string
The human-readable name of the network. Changing this creates a new server.
- Networks
List<Pulumi.
Open Stack. Compute. Inputs. Instance Network Args> An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
- Personalities
List<Pulumi.
Open Stack. Compute. Inputs. Instance Personality Args> Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- Power
State string Provide the VM state. Only ‘active’ and ‘shutoff’ are supported values. Note: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
- Region string
The region in which to create the server instance. If omitted, the
regionargument of the provider is used. Changing this creates a new server.- Scheduler
Hints List<Pulumi.Open Stack. Compute. Inputs. Instance Scheduler Hint Args> Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
- Security
Groups List<string> An array of one or more security group names or ids to associate with the server. Changing this results in adding/removing security groups from the existing server. Note: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance.
- Stop
Before boolDestroy Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn’t stop within timeout, it will be destroyed anyway.
- List<string>
A set of string tags for the instance. Changing this updates the existing instance tags.
- User
Data string The user data to provide when launching the instance. Changing this creates a new server.
- Vendor
Options Pulumi.Open Stack. Compute. Inputs. Instance Vendor Options Args Map of additional vendor-specific options. Supported options are described below.
- Access
Ip stringV4 The first detected Fixed IPv4 address.
- Access
Ip stringV6 The first detected Fixed IPv6 address.
- Admin
Pass string The administrative password to assign to the server. Changing this changes the root password on the existing server.
- Availability
Zone string The availability zone in which to create the server. Conflicts with
availability_zone_hints. Changing this creates a new server.- Availability
Zone stringHints The availability zone in which to create the server. This argument is preferred to
availability_zone, when scheduling the server on a particular host or node. Conflicts withavailability_zone. Changing this creates a new server.- Block
Devices []InstanceBlock Device Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following reference for more information.
- Config
Drive bool Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
- Flavor
Id string The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
- Flavor
Name string The name of the desired flavor for the server. Changing this resizes the existing server.
- Force
Delete bool Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
- Image
Id string (Optional; Required if
image_nameis empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this creates a new server.- Image
Name string (Optional; Required if
image_idis empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this creates a new server.- Key
Pair string The name of a key pair to put on the server. The key pair must already be created and associated with the tenant’s account. Changing this creates a new server.
- Metadata map[string]interface{}
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
- Name string
The human-readable name of the network. Changing this creates a new server.
- Networks
[]Instance
Network An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
- Personalities
[]Instance
Personality Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- Power
State string Provide the VM state. Only ‘active’ and ‘shutoff’ are supported values. Note: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
- Region string
The region in which to create the server instance. If omitted, the
regionargument of the provider is used. Changing this creates a new server.- Scheduler
Hints []InstanceScheduler Hint Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
- Security
Groups []string An array of one or more security group names or ids to associate with the server. Changing this results in adding/removing security groups from the existing server. Note: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance.
- Stop
Before boolDestroy Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn’t stop within timeout, it will be destroyed anyway.
- []string
A set of string tags for the instance. Changing this updates the existing instance tags.
- User
Data string The user data to provide when launching the instance. Changing this creates a new server.
- Vendor
Options InstanceVendor Options Map of additional vendor-specific options. Supported options are described below.
- access
Ip stringV4 The first detected Fixed IPv4 address.
- access
Ip stringV6 The first detected Fixed IPv6 address.
- admin
Pass string The administrative password to assign to the server. Changing this changes the root password on the existing server.
- availability
Zone string The availability zone in which to create the server. Conflicts with
availability_zone_hints. Changing this creates a new server.- availability
Zone stringHints The availability zone in which to create the server. This argument is preferred to
availability_zone, when scheduling the server on a particular host or node. Conflicts withavailability_zone. Changing this creates a new server.- block
Devices InstanceBlock Device[] Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following reference for more information.
- config
Drive boolean Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
- flavor
Id string The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
- flavor
Name string The name of the desired flavor for the server. Changing this resizes the existing server.
- force
Delete boolean Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
- image
Id string (Optional; Required if
image_nameis empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this creates a new server.- image
Name string (Optional; Required if
image_idis empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this creates a new server.- key
Pair string The name of a key pair to put on the server. The key pair must already be created and associated with the tenant’s account. Changing this creates a new server.
- metadata {[key: string]: any}
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
- name string
The human-readable name of the network. Changing this creates a new server.
- networks
Instance
Network[] An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
- personalities
Instance
Personality[] Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- power
State string Provide the VM state. Only ‘active’ and ‘shutoff’ are supported values. Note: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
- region string
The region in which to create the server instance. If omitted, the
regionargument of the provider is used. Changing this creates a new server.- scheduler
Hints InstanceScheduler Hint[] Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
- security
Groups string[] An array of one or more security group names or ids to associate with the server. Changing this results in adding/removing security groups from the existing server. Note: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance.
- stop
Before booleanDestroy Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn’t stop within timeout, it will be destroyed anyway.
- string[]
A set of string tags for the instance. Changing this updates the existing instance tags.
- user
Data string The user data to provide when launching the instance. Changing this creates a new server.
- vendor
Options InstanceVendor Options Map of additional vendor-specific options. Supported options are described below.
- access_
ip_ strv4 The first detected Fixed IPv4 address.
- access_
ip_ strv6 The first detected Fixed IPv6 address.
- admin_
pass str The administrative password to assign to the server. Changing this changes the root password on the existing server.
- availability_
zone str The availability zone in which to create the server. Conflicts with
availability_zone_hints. Changing this creates a new server.- availability_
zone_ strhints The availability zone in which to create the server. This argument is preferred to
availability_zone, when scheduling the server on a particular host or node. Conflicts withavailability_zone. Changing this creates a new server.- block_
devices List[InstanceBlock Device] Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following reference for more information.
- config_
drive bool Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
- flavor_
id str The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
- flavor_
name str The name of the desired flavor for the server. Changing this resizes the existing server.
- force_
delete bool Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
- image_
id str (Optional; Required if
image_nameis empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this creates a new server.- image_
name str (Optional; Required if
image_idis empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this creates a new server.- key_
pair str The name of a key pair to put on the server. The key pair must already be created and associated with the tenant’s account. Changing this creates a new server.
- metadata Dict[str, Any]
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
- name str
The human-readable name of the network. Changing this creates a new server.
- networks
List[Instance
Network] An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
- personalities
List[Instance
Personality] Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- power_
state str Provide the VM state. Only ‘active’ and ‘shutoff’ are supported values. Note: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
- region str
The region in which to create the server instance. If omitted, the
regionargument of the provider is used. Changing this creates a new server.- scheduler_
hints List[InstanceScheduler Hint] Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
- security_
groups List[str] An array of one or more security group names or ids to associate with the server. Changing this results in adding/removing security groups from the existing server. Note: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance.
- stop_
before_ booldestroy Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn’t stop within timeout, it will be destroyed anyway.
- List[str]
A set of string tags for the instance. Changing this updates the existing instance tags.
- user_
data str The user data to provide when launching the instance. Changing this creates a new server.
- vendor_
options Dict[InstanceVendor Options] Map of additional vendor-specific options. Supported options are described below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- All
Metadata Dictionary<string, object> - List<string>
The collection of tags assigned on the instance, which have been explicitly and implicitly added.
- Id string
- The provider-assigned unique ID for this managed resource.
- All
Metadata map[string]interface{} - []string
The collection of tags assigned on the instance, which have been explicitly and implicitly added.
- Id string
- The provider-assigned unique ID for this managed resource.
- all
Metadata {[key: string]: any} - string[]
The collection of tags assigned on the instance, which have been explicitly and implicitly added.
- id string
- The provider-assigned unique ID for this managed resource.
- all_
metadata Dict[str, Any] - List[str]
The collection of tags assigned on the instance, which have been explicitly and implicitly added.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instancestatic get(resource_name, id, opts=None, access_ip_v4=None, access_ip_v6=None, admin_pass=None, all_metadata=None, all_tags=None, availability_zone=None, availability_zone_hints=None, block_devices=None, config_drive=None, flavor_id=None, flavor_name=None, force_delete=None, image_id=None, image_name=None, key_pair=None, metadata=None, name=None, networks=None, personalities=None, power_state=None, region=None, scheduler_hints=None, security_groups=None, stop_before_destroy=None, tags=None, user_data=None, vendor_options=None, __props__=None);func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? 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:
- Access
Ip stringV4 The first detected Fixed IPv4 address.
- Access
Ip stringV6 The first detected Fixed IPv6 address.
- Admin
Pass string The administrative password to assign to the server. Changing this changes the root password on the existing server.
- All
Metadata Dictionary<string, object> - List<string>
The collection of tags assigned on the instance, which have been explicitly and implicitly added.
- Availability
Zone string The availability zone in which to create the server. Conflicts with
availability_zone_hints. Changing this creates a new server.- Availability
Zone stringHints The availability zone in which to create the server. This argument is preferred to
availability_zone, when scheduling the server on a particular host or node. Conflicts withavailability_zone. Changing this creates a new server.- Block
Devices List<Pulumi.Open Stack. Compute. Inputs. Instance Block Device Args> Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following reference for more information.
- Config
Drive bool Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
- Flavor
Id string The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
- Flavor
Name string The name of the desired flavor for the server. Changing this resizes the existing server.
- Force
Delete bool Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
- Image
Id string (Optional; Required if
image_nameis empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this creates a new server.- Image
Name string (Optional; Required if
image_idis empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this creates a new server.- Key
Pair string The name of a key pair to put on the server. The key pair must already be created and associated with the tenant’s account. Changing this creates a new server.
- Metadata Dictionary<string, object>
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
- Name string
The human-readable name of the network. Changing this creates a new server.
- Networks
List<Pulumi.
Open Stack. Compute. Inputs. Instance Network Args> An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
- Personalities
List<Pulumi.
Open Stack. Compute. Inputs. Instance Personality Args> Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- Power
State string Provide the VM state. Only ‘active’ and ‘shutoff’ are supported values. Note: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
- Region string
The region in which to create the server instance. If omitted, the
regionargument of the provider is used. Changing this creates a new server.- Scheduler
Hints List<Pulumi.Open Stack. Compute. Inputs. Instance Scheduler Hint Args> Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
- Security
Groups List<string> An array of one or more security group names or ids to associate with the server. Changing this results in adding/removing security groups from the existing server. Note: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance.
- Stop
Before boolDestroy Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn’t stop within timeout, it will be destroyed anyway.
- List<string>
A set of string tags for the instance. Changing this updates the existing instance tags.
- User
Data string The user data to provide when launching the instance. Changing this creates a new server.
- Vendor
Options Pulumi.Open Stack. Compute. Inputs. Instance Vendor Options Args Map of additional vendor-specific options. Supported options are described below.
- Access
Ip stringV4 The first detected Fixed IPv4 address.
- Access
Ip stringV6 The first detected Fixed IPv6 address.
- Admin
Pass string The administrative password to assign to the server. Changing this changes the root password on the existing server.
- All
Metadata map[string]interface{} - []string
The collection of tags assigned on the instance, which have been explicitly and implicitly added.
- Availability
Zone string The availability zone in which to create the server. Conflicts with
availability_zone_hints. Changing this creates a new server.- Availability
Zone stringHints The availability zone in which to create the server. This argument is preferred to
availability_zone, when scheduling the server on a particular host or node. Conflicts withavailability_zone. Changing this creates a new server.- Block
Devices []InstanceBlock Device Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following reference for more information.
- Config
Drive bool Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
- Flavor
Id string The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
- Flavor
Name string The name of the desired flavor for the server. Changing this resizes the existing server.
- Force
Delete bool Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
- Image
Id string (Optional; Required if
image_nameis empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this creates a new server.- Image
Name string (Optional; Required if
image_idis empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this creates a new server.- Key
Pair string The name of a key pair to put on the server. The key pair must already be created and associated with the tenant’s account. Changing this creates a new server.
- Metadata map[string]interface{}
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
- Name string
The human-readable name of the network. Changing this creates a new server.
- Networks
[]Instance
Network An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
- Personalities
[]Instance
Personality Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- Power
State string Provide the VM state. Only ‘active’ and ‘shutoff’ are supported values. Note: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
- Region string
The region in which to create the server instance. If omitted, the
regionargument of the provider is used. Changing this creates a new server.- Scheduler
Hints []InstanceScheduler Hint Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
- Security
Groups []string An array of one or more security group names or ids to associate with the server. Changing this results in adding/removing security groups from the existing server. Note: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance.
- Stop
Before boolDestroy Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn’t stop within timeout, it will be destroyed anyway.
- []string
A set of string tags for the instance. Changing this updates the existing instance tags.
- User
Data string The user data to provide when launching the instance. Changing this creates a new server.
- Vendor
Options InstanceVendor Options Map of additional vendor-specific options. Supported options are described below.
- access
Ip stringV4 The first detected Fixed IPv4 address.
- access
Ip stringV6 The first detected Fixed IPv6 address.
- admin
Pass string The administrative password to assign to the server. Changing this changes the root password on the existing server.
- all
Metadata {[key: string]: any} - string[]
The collection of tags assigned on the instance, which have been explicitly and implicitly added.
- availability
Zone string The availability zone in which to create the server. Conflicts with
availability_zone_hints. Changing this creates a new server.- availability
Zone stringHints The availability zone in which to create the server. This argument is preferred to
availability_zone, when scheduling the server on a particular host or node. Conflicts withavailability_zone. Changing this creates a new server.- block
Devices InstanceBlock Device[] Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following reference for more information.
- config
Drive boolean Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
- flavor
Id string The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
- flavor
Name string The name of the desired flavor for the server. Changing this resizes the existing server.
- force
Delete boolean Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
- image
Id string (Optional; Required if
image_nameis empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this creates a new server.- image
Name string (Optional; Required if
image_idis empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this creates a new server.- key
Pair string The name of a key pair to put on the server. The key pair must already be created and associated with the tenant’s account. Changing this creates a new server.
- metadata {[key: string]: any}
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
- name string
The human-readable name of the network. Changing this creates a new server.
- networks
Instance
Network[] An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
- personalities
Instance
Personality[] Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- power
State string Provide the VM state. Only ‘active’ and ‘shutoff’ are supported values. Note: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
- region string
The region in which to create the server instance. If omitted, the
regionargument of the provider is used. Changing this creates a new server.- scheduler
Hints InstanceScheduler Hint[] Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
- security
Groups string[] An array of one or more security group names or ids to associate with the server. Changing this results in adding/removing security groups from the existing server. Note: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance.
- stop
Before booleanDestroy Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn’t stop within timeout, it will be destroyed anyway.
- string[]
A set of string tags for the instance. Changing this updates the existing instance tags.
- user
Data string The user data to provide when launching the instance. Changing this creates a new server.
- vendor
Options InstanceVendor Options Map of additional vendor-specific options. Supported options are described below.
- access_
ip_ strv4 The first detected Fixed IPv4 address.
- access_
ip_ strv6 The first detected Fixed IPv6 address.
- admin_
pass str The administrative password to assign to the server. Changing this changes the root password on the existing server.
- all_
metadata Dict[str, Any] - List[str]
The collection of tags assigned on the instance, which have been explicitly and implicitly added.
- availability_
zone str The availability zone in which to create the server. Conflicts with
availability_zone_hints. Changing this creates a new server.- availability_
zone_ strhints The availability zone in which to create the server. This argument is preferred to
availability_zone, when scheduling the server on a particular host or node. Conflicts withavailability_zone. Changing this creates a new server.- block_
devices List[InstanceBlock Device] Configuration of block devices. The block_device structure is documented below. Changing this creates a new server. You can specify multiple block devices which will create an instance with multiple disks. This configuration is very flexible, so please see the following reference for more information.
- config_
drive bool Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
- flavor_
id str The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
- flavor_
name str The name of the desired flavor for the server. Changing this resizes the existing server.
- force_
delete bool Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
- image_
id str (Optional; Required if
image_nameis empty and not booting from a volume. Do not specify if booting from a volume.) The image ID of the desired image for the server. Changing this creates a new server.- image_
name str (Optional; Required if
image_idis empty and not booting from a volume. Do not specify if booting from a volume.) The name of the desired image for the server. Changing this creates a new server.- key_
pair str The name of a key pair to put on the server. The key pair must already be created and associated with the tenant’s account. Changing this creates a new server.
- metadata Dict[str, Any]
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
- name str
The human-readable name of the network. Changing this creates a new server.
- networks
List[Instance
Network] An array of one or more networks to attach to the instance. The network object structure is documented below. Changing this creates a new server.
- personalities
List[Instance
Personality] Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
- power_
state str Provide the VM state. Only ‘active’ and ‘shutoff’ are supported values. Note: If the initial power_state is the shutoff the VM will be stopped immediately after build and the provisioners like remote-exec or files are not supported.
- region str
The region in which to create the server instance. If omitted, the
regionargument of the provider is used. Changing this creates a new server.- scheduler_
hints List[InstanceScheduler Hint] Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
- security_
groups List[str] An array of one or more security group names or ids to associate with the server. Changing this results in adding/removing security groups from the existing server. Note: When attaching the instance to networks using Ports, place the security groups on the Port and not the instance.
- stop_
before_ booldestroy Whether to try stop instance gracefully before destroying it, thus giving chance for guest OS daemons to stop correctly. If instance doesn’t stop within timeout, it will be destroyed anyway.
- List[str]
A set of string tags for the instance. Changing this updates the existing instance tags.
- user_
data str The user data to provide when launching the instance. Changing this creates a new server.
- vendor_
options Dict[InstanceVendor Options] Map of additional vendor-specific options. Supported options are described below.
Supporting Types
InstanceBlockDevice
- Source
Type string The source type of the device. Must be one of “blank”, “image”, “volume”, or “snapshot”. Changing this creates a new server.
- Boot
Index int The boot index of the volume. It defaults to 0. Changing this creates a new server.
- Delete
On boolTermination Delete the volume / block device upon termination of the instance. Defaults to false. Changing this creates a new server.
- Destination
Type string The type that gets created. Possible values are “volume” and “local”. Changing this creates a new server.
- Device
Type string The low-level device type that will be used. Most common thing is to leave this empty. Changing this creates a new server.
- Disk
Bus string The low-level disk bus that will be used. Most common thing is to leave this empty. Changing this creates a new server.
- Guest
Format string - Uuid string
The UUID of the image, volume, or snapshot. Changing this creates a new server.
- Volume
Size int The size of the volume to create (in gigabytes). Required in the following combinations: source=image and destination=volume, source=blank and destination=local, and source=blank and destination=volume. Changing this creates a new server.
- Volume
Type string The volume type that will be used, for example SSD or HDD storage. The available options depend on how your specific OpenStack cloud is configured and what classes of storage are provided. Changing this creates a new server.
- Source
Type string The source type of the device. Must be one of “blank”, “image”, “volume”, or “snapshot”. Changing this creates a new server.
- Boot
Index int The boot index of the volume. It defaults to 0. Changing this creates a new server.
- Delete
On boolTermination Delete the volume / block device upon termination of the instance. Defaults to false. Changing this creates a new server.
- Destination
Type string The type that gets created. Possible values are “volume” and “local”. Changing this creates a new server.
- Device
Type string The low-level device type that will be used. Most common thing is to leave this empty. Changing this creates a new server.
- Disk
Bus string The low-level disk bus that will be used. Most common thing is to leave this empty. Changing this creates a new server.
- Guest
Format string - Uuid string
The UUID of the image, volume, or snapshot. Changing this creates a new server.
- Volume
Size int The size of the volume to create (in gigabytes). Required in the following combinations: source=image and destination=volume, source=blank and destination=local, and source=blank and destination=volume. Changing this creates a new server.
- Volume
Type string The volume type that will be used, for example SSD or HDD storage. The available options depend on how your specific OpenStack cloud is configured and what classes of storage are provided. Changing this creates a new server.
- source
Type string The source type of the device. Must be one of “blank”, “image”, “volume”, or “snapshot”. Changing this creates a new server.
- boot
Index number The boot index of the volume. It defaults to 0. Changing this creates a new server.
- delete
On booleanTermination Delete the volume / block device upon termination of the instance. Defaults to false. Changing this creates a new server.
- destination
Type string The type that gets created. Possible values are “volume” and “local”. Changing this creates a new server.
- device
Type string The low-level device type that will be used. Most common thing is to leave this empty. Changing this creates a new server.
- disk
Bus string The low-level disk bus that will be used. Most common thing is to leave this empty. Changing this creates a new server.
- guest
Format string - uuid string
The UUID of the image, volume, or snapshot. Changing this creates a new server.
- volume
Size number The size of the volume to create (in gigabytes). Required in the following combinations: source=image and destination=volume, source=blank and destination=local, and source=blank and destination=volume. Changing this creates a new server.
- volume
Type string The volume type that will be used, for example SSD or HDD storage. The available options depend on how your specific OpenStack cloud is configured and what classes of storage are provided. Changing this creates a new server.
- source
Type str The source type of the device. Must be one of “blank”, “image”, “volume”, or “snapshot”. Changing this creates a new server.
- boot
Index float The boot index of the volume. It defaults to 0. Changing this creates a new server.
- delete
On boolTermination Delete the volume / block device upon termination of the instance. Defaults to false. Changing this creates a new server.
- destination
Type str The type that gets created. Possible values are “volume” and “local”. Changing this creates a new server.
- device
Type str The low-level device type that will be used. Most common thing is to leave this empty. Changing this creates a new server.
- disk
Bus str The low-level disk bus that will be used. Most common thing is to leave this empty. Changing this creates a new server.
- guest
Format str - uuid str
The UUID of the image, volume, or snapshot. Changing this creates a new server.
- volume
Size float The size of the volume to create (in gigabytes). Required in the following combinations: source=image and destination=volume, source=blank and destination=local, and source=blank and destination=volume. Changing this creates a new server.
- volume_
type str The volume type that will be used, for example SSD or HDD storage. The available options depend on how your specific OpenStack cloud is configured and what classes of storage are provided. Changing this creates a new server.
InstanceNetwork
- Access
Network bool Specifies if this network should be used for provisioning access. Accepts true or false. Defaults to false.
- Fixed
Ip stringV4 Specifies a fixed IPv4 address to be used on this network. Changing this creates a new server.
- Fixed
Ip stringV6 - Mac string
- Name string
The human-readable name of the network. Changing this creates a new server.
- Port string
The port UUID of a network to attach to the server. Changing this creates a new server.
- Uuid string
The UUID of the image, volume, or snapshot. Changing this creates a new server.
- Access
Network bool Specifies if this network should be used for provisioning access. Accepts true or false. Defaults to false.
- Fixed
Ip stringV4 Specifies a fixed IPv4 address to be used on this network. Changing this creates a new server.
- Fixed
Ip stringV6 - Mac string
- Name string
The human-readable name of the network. Changing this creates a new server.
- Port string
The port UUID of a network to attach to the server. Changing this creates a new server.
- Uuid string
The UUID of the image, volume, or snapshot. Changing this creates a new server.
- access
Network boolean Specifies if this network should be used for provisioning access. Accepts true or false. Defaults to false.
- fixed
Ip stringV4 Specifies a fixed IPv4 address to be used on this network. Changing this creates a new server.
- fixed
Ip stringV6 - mac string
- name string
The human-readable name of the network. Changing this creates a new server.
- port string
The port UUID of a network to attach to the server. Changing this creates a new server.
- uuid string
The UUID of the image, volume, or snapshot. Changing this creates a new server.
- access
Network bool Specifies if this network should be used for provisioning access. Accepts true or false. Defaults to false.
- fixed
Ip strV4 Specifies a fixed IPv4 address to be used on this network. Changing this creates a new server.
- fixed
Ip strV6 - mac str
- name str
The human-readable name of the network. Changing this creates a new server.
- port str
The port UUID of a network to attach to the server. Changing this creates a new server.
- uuid str
The UUID of the image, volume, or snapshot. Changing this creates a new server.
InstancePersonality
InstanceSchedulerHint
- Additional
Properties Dictionary<string, object> Arbitrary key/value pairs of additional properties to pass to the scheduler.
- Build
Near stringHost Ip An IP Address in CIDR form. The instance will be placed on a compute node that is in the same subnet.
- Different
Hosts List<string> A list of instance UUIDs. The instance will be scheduled on a different host than all other instances.
- Group string
A UUID of a Server Group. The instance will be placed into that group.
- Queries List<string>
A conditional query that a compute node must pass in order to host an instance. The query must use the
JsonFiltersyntax which is described here. At this time, only simple queries are supported. Compound queries usingand,or, ornotare not supported. An example of a simple query is:- Same
Hosts List<string> A list of instance UUIDs. The instance will be scheduled on the same host of those specified.
- Target
Cell string The name of a cell to host the instance.
- Additional
Properties map[string]interface{} Arbitrary key/value pairs of additional properties to pass to the scheduler.
- Build
Near stringHost Ip An IP Address in CIDR form. The instance will be placed on a compute node that is in the same subnet.
- Different
Hosts []string A list of instance UUIDs. The instance will be scheduled on a different host than all other instances.
- Group string
A UUID of a Server Group. The instance will be placed into that group.
- Queries []string
A conditional query that a compute node must pass in order to host an instance. The query must use the
JsonFiltersyntax which is described here. At this time, only simple queries are supported. Compound queries usingand,or, ornotare not supported. An example of a simple query is:- Same
Hosts []string A list of instance UUIDs. The instance will be scheduled on the same host of those specified.
- Target
Cell string The name of a cell to host the instance.
- additional
Properties {[key: string]: any} Arbitrary key/value pairs of additional properties to pass to the scheduler.
- build
Near stringHost Ip An IP Address in CIDR form. The instance will be placed on a compute node that is in the same subnet.
- different
Hosts string[] A list of instance UUIDs. The instance will be scheduled on a different host than all other instances.
- group string
A UUID of a Server Group. The instance will be placed into that group.
- queries string[]
A conditional query that a compute node must pass in order to host an instance. The query must use the
JsonFiltersyntax which is described here. At this time, only simple queries are supported. Compound queries usingand,or, ornotare not supported. An example of a simple query is:- same
Hosts string[] A list of instance UUIDs. The instance will be scheduled on the same host of those specified.
- target
Cell string The name of a cell to host the instance.
- additional
Properties Dict[str, Any] Arbitrary key/value pairs of additional properties to pass to the scheduler.
- build
Near strHost Ip An IP Address in CIDR form. The instance will be placed on a compute node that is in the same subnet.
- different
Hosts List[str] A list of instance UUIDs. The instance will be scheduled on a different host than all other instances.
- group str
A UUID of a Server Group. The instance will be placed into that group.
- queries List[str]
A conditional query that a compute node must pass in order to host an instance. The query must use the
JsonFiltersyntax which is described here. At this time, only simple queries are supported. Compound queries usingand,or, ornotare not supported. An example of a simple query is:- same
Hosts List[str] A list of instance UUIDs. The instance will be scheduled on the same host of those specified.
- target
Cell str The name of a cell to host the instance.
InstanceVendorOptions
- Detach
Ports boolBefore Destroy Whether to try to detach all attached ports to the vm before destroying it to make sure the port state is correct after the vm destruction. This is helpful when the port is not deleted.
- Ignore
Resize boolConfirmation Boolean to control whether to ignore manual confirmation of the instance resizing. This can be helpful to work with some OpenStack clouds which automatically confirm resizing of instances after some timeout.
- Detach
Ports boolBefore Destroy Whether to try to detach all attached ports to the vm before destroying it to make sure the port state is correct after the vm destruction. This is helpful when the port is not deleted.
- Ignore
Resize boolConfirmation Boolean to control whether to ignore manual confirmation of the instance resizing. This can be helpful to work with some OpenStack clouds which automatically confirm resizing of instances after some timeout.
- detach
Ports booleanBefore Destroy Whether to try to detach all attached ports to the vm before destroying it to make sure the port state is correct after the vm destruction. This is helpful when the port is not deleted.
- ignore
Resize booleanConfirmation Boolean to control whether to ignore manual confirmation of the instance resizing. This can be helpful to work with some OpenStack clouds which automatically confirm resizing of instances after some timeout.
- detach
Ports boolBefore Destroy Whether to try to detach all attached ports to the vm before destroying it to make sure the port state is correct after the vm destruction. This is helpful when the port is not deleted.
- ignore
Resize boolConfirmation Boolean to control whether to ignore manual confirmation of the instance resizing. This can be helpful to work with some OpenStack clouds which automatically confirm resizing of instances after some timeout.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.