Class InstanceArgs
Inherited Members
Namespace: Pulumi.OpenStack.Compute
Assembly: Pulumi.OpenStack.dll
Syntax
public sealed class InstanceArgs : ResourceArgs
Constructors
View SourceInstanceArgs()
Declaration
public InstanceArgs()
Properties
View SourceAccessIpV4
The first detected Fixed IPv4 address.
Declaration
public Input<string> AccessIpV4 { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
AccessIpV6
The first detected Fixed IPv6 address.
Declaration
public Input<string> AccessIpV6 { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
AdminPass
The administrative password to assign to the server. Changing this changes the root password on the existing server.
Declaration
public Input<string> AdminPass { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
AvailabilityZone
The availability zone in which to create
the server. Conflicts with availability_zone_hints. Changing this creates
a new server.
Declaration
public Input<string> AvailabilityZone { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
AvailabilityZoneHints
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 with availability_zone. Changing this creates a
new server.
Declaration
public Input<string> AvailabilityZoneHints { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
BlockDevices
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.
Declaration
public InputList<InstanceBlockDeviceArgs> BlockDevices { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<InstanceBlockDeviceArgs> |
ConfigDrive
Whether to use the config_drive feature to configure the instance. Changing this creates a new server.
Declaration
public Input<bool> ConfigDrive { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
FlavorId
The flavor ID of the desired flavor for the server. Changing this resizes the existing server.
Declaration
public Input<string> FlavorId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
FlavorName
The name of the desired flavor for the server. Changing this resizes the existing server.
Declaration
public Input<string> FlavorName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ForceDelete
Whether to force the OpenStack instance to be forcefully deleted. This is useful for environments that have reclaim / soft deletion enabled.
Declaration
public Input<bool> ForceDelete { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
ImageId
(Optional; Required if image_name is 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.
Declaration
public Input<string> ImageId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ImageName
(Optional; Required if image_id is 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.
Declaration
public Input<string> ImageName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
KeyPair
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.
Declaration
public Input<string> KeyPair { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Metadata
Metadata key/value pairs to make available from within the instance. Changing this updates the existing server metadata.
Declaration
public InputMap<object> Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
Name
The human-readable name of the network. Changing this creates a new server.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Networks
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.
Declaration
public InputList<InstanceNetworkArgs> Networks { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<InstanceNetworkArgs> |
Personalities
Customize the personality of an instance by defining one or more files and their contents. The personality structure is described below.
Declaration
public InputList<InstancePersonalityArgs> Personalities { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<InstancePersonalityArgs> |
PowerState
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.
Declaration
public Input<string> PowerState { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Region
The region in which to create the server instance. If
omitted, the region argument of the provider is used. Changing this
creates a new server.
Declaration
public Input<string> Region { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SchedulerHints
Provide the Nova scheduler with hints on how the instance should be launched. The available hints are described below.
Declaration
public InputList<InstanceSchedulerHintArgs> SchedulerHints { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<InstanceSchedulerHintArgs> |
SecurityGroups
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.
Declaration
public InputList<string> SecurityGroups { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
StopBeforeDestroy
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.
Declaration
public Input<bool> StopBeforeDestroy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Tags
A set of string tags for the instance. Changing this updates the existing instance tags.
Declaration
public InputList<string> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
UserData
The user data to provide when launching the instance. Changing this creates a new server.
Declaration
public Input<string> UserData { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
VendorOptions
Map of additional vendor-specific options. Supported options are described below.
Declaration
public Input<InstanceVendorOptionsArgs> VendorOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<InstanceVendorOptionsArgs> |