LaunchInstance
/20160918/instances
When you launch an instance, the instance is automatically attached to a virtual network interface card (VNIC), called the primary VNIC. The VNIC has a private IP address from the subnet's CIDR. A public IP address is also assigned by default if you specify a public subnet. You can also specify private and public IP addresses for this instance. To list public IP addresses that could be assigned, use the ListVnicAttachments operation to get the VNIC OCID for the instance, and then use GetVnic with the VNIC OCID. You can later add secondary VNICs to an instance.
Provide the following LaunchInstanceDetails:
To launch an instance using an instance configuration, see CreateInstanceConfiguration. When you use an instance configuration to create an instance, you can specify blockVolumes and secondaryVnics.
Request
- application/json
-
opc-boot-volume-type: string
Boot volume type. Only PARAVIRTUALIZED is supported.
-
opc-host-serial: string
For Oracle internal use only.
-
opc-instance-pool-id: string
The OCID of the instance pool.
-
opc-mac-address: string
MacAddress provided for Exadata launches.
-
opc-pool-name: string
Name of the pool in which to launch an instance.
-
opc-time-maintenance-reboot-due: string(date-time)
Minimum Length:
1
Maximum Length:255
Allows callers of /instances/post to control the value of the timeMaintenanceRebootDue instance attribute (date-time is in [RFC3339](https://tools.ietf.org/html/rfc3339) format). -
opc-vlan-tag: string
VlanTag specified for Exadata launches.
-
opc-vnic-id: string
For Oracle internal use only.
-
opc-vnic-shape: string
VNIC shape specified for Exadata launches.
-
opc-retry-token: string
Minimum Length:
1
Maximum Length:64
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
object
-
agentConfig:
object LaunchInstanceAgentConfigDetails
Configuration options for the Oracle Cloud Agent software running on the instance.
-
availabilityConfig:
object LaunchInstanceAvailabilityConfigDetails
Options for VM migration during infrastructure maintenance events and for defining the availability of a VM instance after a maintenance event that impacts the underlying hardware.
-
availabilityDomain(required):
string
Minimum Length:
1
Maximum Length:255
The availability domain of the instance. Oracle Private Cloud Appliance has one availability domain: AD-1 -
capacityReservationId:
string
Minimum Length:
0
Maximum Length:255
The OCID of the compute capacity reservation this instance is launched under. You can opt out of all default reservations by specifying an empty string as input for this field. -
compartmentId(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the compartment. -
computeClusterId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the compute cluster that the instance will be created in. -
createVnicDetails:
object CreateVnicDetails
Properties for a VNIC. Use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC.
-
dedicatedVmHostId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the dedicated VM host. -
definedTags:
object definedTags
Additional Properties Allowed: additionalPropertiesDefined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations": {"CostCenter": "42"}}
-
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
extendedMetadata:
object extendedMetadata
Additional Properties Allowed: additionalPropertiesAdditional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadata object. They are distinguished from metadata fields in that these can be nested JSON objects, whereas metadata fields are string/string maps only. The combined size of the metadata and extendedMetadata objects can be a maximum of 32,000 bytes.
-
faultDomain:
string
Minimum Length:
1
Maximum Length:255
A fault domain is a grouping of hardware and infrastructure within an availability domain. Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware. A hardware failure or Compute node maintenance that affects one fault domain does not affect instances in other fault domains. If you do not specify the fault domain, the system selects one for you. To get a list of fault domains, use the ListFaultDomains operation. Example: FAULT-DOMAIN-1 -
freeformTags:
object freeformTags
Additional Properties Allowed: additionalPropertiesFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
-
hostnameLabel:
string
Minimum Length:
1
Maximum Length:63
Deprecated. Instead use hostnameLabel in CreateVnicDetails. If you provide both, the values must match. -
hostReservationId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the host reservation that reserves a set of hosts on which a bare metal instance will be launched. -
imageId:
string
Minimum Length:
1
Maximum Length:255
Deprecated. Use sourceDetails with InstanceSourceViaImageDetails source type instead. If you specify values for both, the values must match. -
instanceOptions:
object InstanceOptions
Optional mutable instance options
-
ipxeScript:
string
Minimum Length:
1
Maximum Length:10240
This is an advanced option. When a bare metal or virtual machine instance boots, the iPXE firmware that runs on the instance is configured to run an iPXE script to continue the boot process. For more control over the boot process, you can provide your own custom iPXE script that runs when the instance boots. Note: The same iPXE script will run every time an instance boots, not only after the initial LaunchInstance call. For more information about iPXE, see http://ipxe.org. -
isPvEncryptionInTransitEnabled:
boolean
Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false.
-
launchMode:
string
Allowed Values:
[ "NATIVE", "EMULATED", "PARAVIRTUALIZED", "CUSTOM" ]
Specifies the configuration mode for launching virtual machine (VM) instances. See the description of LaunchInstance for descriptions of each configuration mode. -
launchOptions:
object LaunchOptions
Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
-
metadata:
object metadata
Additional Properties Allowed: additionalPropertiesCustom metadata key/value pairs that you provide, such as the SSH public key required to connect to the instance.
-
platformConfig:
object LaunchInstancePlatformConfig
Discriminator:
type
The platform configuration requested for the instance. If you provide the parameter, the instance is created with the platform configuration that you specify. For any values that you omit, the instance uses the default configuration values for the shape that you specify. If you don't provide the parameter, the default values for the shape are used. Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned. -
preemptibleInstanceConfig:
object PreemptibleInstanceConfigDetails
Configuration options for preemptible instances.
-
preferredMaintenanceAction:
string
Allowed Values:
[ "LIVE_MIGRATE", "REBOOT" ]
The preferred maintenance action for an instance. The default is LIVE_MIGRATE, if live migration is supported. -
secondaryVnicAttachments:
array secondaryVnicAttachments
Secondary VNICS to create and attach as part of the launch instance operation.
-
shape(required):
string
Minimum Length:
1
Maximum Length:255
The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. Use the ListShapes operation to enumerate all available shapes. -
shapeConfig:
object LaunchInstanceShapeConfigDetails
The shape configuration requested for the instance. If the parameter is provided, the instance is created with the resources that you specify. If some properties are missing or the entire parameter is not provided, the instance is created with the default configuration values for the shape that you specify. Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned.
-
sourceDetails:
object InstanceSourceDetails
Discriminator:
sourceType
-
subnetId:
string
Minimum Length:
1
Maximum Length:255
Deprecated. Instead use subnetId in CreateVnicDetails. At least one of them is required. If you provide both, the values must match. -
volumeAttachments:
array volumeAttachments
Volume attachments to create as part of the launch instance operation.
object
-
areAllPluginsDisabled:
boolean
Default Value:
false
Whether Oracle Cloud Agent can run all the available plugins. This includes the management and monitoring plugins. To get a list of available plugins, use the ListInstanceagentAvailablePlugins operation in the Oracle Cloud Agent API. -
isManagementDisabled:
boolean
Default Value:
false
Whether Oracle Cloud Agent can run all the available management plugins. Default value is false (management plugins are enabled). These are the management plugins: OS Management Service Agent and Compute Instance Run Command. The management plugins are controlled by this parameter and by the per-plugin configuration in the pluginsConfig object. - If isManagementDisabled is true, all of the management plugins are disabled, regardless of the per-plugin configuration. - If isManagementDisabled is false, all of the management plugins are enabled. You can optionally disable individual management plugins by providing a value in the pluginsConfig object. -
isMonitoringDisabled:
boolean
Default Value:
false
Whether Oracle Cloud Agent can gather performance metrics and monitor the instance using the monitoring plugins. Default value is false (monitoring plugins are enabled). These are the monitoring plugins: Compute Instance Monitoring and Custom Logs Monitoring. The monitoring plugins are controlled by this parameter and by the per-plugin configuration in the pluginsConfig object. - If isMonitoringDisabled is true, all of the monitoring plugins are disabled, regardless of the per-plugin configuration. - If isMonitoringDisabled is false, all of the monitoring plugins are enabled. You can optionally disable individual monitoring plugins by providing a value in the pluginsConfig object. -
pluginsConfig:
array pluginsConfig
The configuration of plugins associated with this instance.
object
-
isLiveMigrationPreferred:
boolean
Whether to live migrate supported VM instances to a healthy physical VM host without disrupting running instances during infrastructure maintenance events. If null, Oracle chooses the best option for migrating the VM during infrastructure maintenance events.
-
recoveryAction:
string
Default Value:
RESTORE_INSTANCE
Allowed Values:[ "RESTORE_INSTANCE", "STOP_INSTANCE" ]
The lifecycle state for an instance when it is recovered after infrastructure maintenance. RESTORE_INSTANCE - The instance is restored to the lifecycle state it was in before the maintenance event. If the instance was running, it is automatically rebooted. This is the default action when a value is not set. STOP_INSTANCE - The instance is recovered in the stopped state.
object
-
assignPrivateDnsRecord:
boolean
Whether the VNIC should be assigned a DNS record. If assignPrivateDnsRecord is set to false, there will be no DNS record registration for the VNIC. If assignPrivateDnsRecord is set to true, the DNS record will be registered. The default value is true. If you specify a hostnameLabel, then assignPrivateDnsRecord must be set to true.
-
assignPublicIp:
boolean
Whether the VNIC should be assigned a public IP address (true) or a private IP address (false). If assignPublicIp is not set and prohibitPublicIpOnVnic is true in the Subnet where the VNIC is being created, then no public IP address is assigned. If assignPublicIp is not set and prohibitPublicIpOnVnic is false, then a public IP address is assigned. This public IP address is associated with the primary private IP on the VNIC. If you specify a vlanId, then assignPublicIp must be set to false.
-
definedTags:
object definedTags
Additional Properties Allowed: additionalPropertiesDefined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"Operations": {"CostCenter": "42"}}
-
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. -
freeformTags:
object freeformTags
Additional Properties Allowed: additionalPropertiesFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
-
hostnameLabel:
string
Minimum Length:
1
Maximum Length:63
The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example, myinstance-1 in FQDN myinstance-1.subnet123.vcn1.example.com). Must be unique across all VNICs in the subnet and comply with [RFC 952](https://tools.ietf.org/html/rfc952) and [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the Vnic object and also the PrivateIp object returned by ListPrivateIps and GetPrivateIp. When launching an instance, use this hostnameLabel instead of the deprecated hostnameLabel in LaunchInstanceDetails. If you provide both, the values must match. If you specify a vlanId, the hostnameLabel cannot be specified. VNICs on a VLAN cannot be assigned a hostname. -
nsgIds:
array nsgIds
Maximum Number of Items:
5
Unique Items Required:true
A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. If a vlanId is specified, the nsgIds cannot be specified. The vlanId indicates that the VNIC will belong to a VLAN instead of a subnet. With VLANs, all VNICs in the VLAN belong to the NSGs that are associated with the VLAN. -
privateIp:
string
Minimum Length:
1
Maximum Length:46
A private IP address of your choice to assign to the VNIC. Must be an available IP address within the subnet's CIDR. If you don't specify a value, a private IP address is automatically assigned from the subnet. This is the VNIC's primary private IP address. The value appears in the Vnic object and also the PrivateIp object returned by ListPrivateIps and GetPrivateIp. If you specify a vlanId, the privateIp cannot be specified. Example: 10.0.3.3 -
skipSourceDestCheck:
boolean
Whether the source/destination check is disabled on the VNIC. Defaults to false, which means the check is performed. If you specify a vlanId, the skipSourceDestCheck cannot be specified because the source/destination check is always disabled for VNICs in a VLAN. Example: true
-
subnetId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the subnet to create the VNIC in. When launching an instance, use this subnetId instead of the deprecated subnetId in LaunchInstanceDetails. At least one of them is required; if you provide both, the values must match. If you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN instead of a subnet, provide a vlanId instead of a subnetId. If you provide both a vlanId and subnetId, the request fails. -
vlanId:
string
Minimum Length:
1
Maximum Length:255
Provide this attribute only if you are an Oracle Cloud VMware Solution customer and creating a secondary VNIC in a VLAN. The value is the OCID of the VLAN. Provide a vlanId instead of a subnetId. If you provide both a vlanId and subnetId, the request fails.
object
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace. Example: {"CostCenter": "42"}
object
object
object
-
areLegacyImdsEndpointsDisabled:
boolean
Whether to disable the legacy (/v1) instance metadata service endpoints. Customers who have migrated to /v2 should set this to true for added security. Default is false.
object
-
bootVolumeType:
string
Allowed Values:
[ "ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED", "NVME" ]
Emulation type for the boot volume. See the description of LaunchInstance for descriptions of each possible value. -
firmware:
string
Allowed Values:
[ "BIOS", "UEFI_64" ]
Firmware used to boot VM. Select the option that matches your operating system. BIOS - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating systems that boot using MBR style bootloaders. UEFI_64 - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the default for platform images. -
isConsistentVolumeNamingEnabled:
boolean
Whether to enable consistent volume naming feature. Defaults to false.
-
isPvEncryptionInTransitEnabled:
boolean
Deprecated. Instead use isPvEncryptionInTransitEnabled in LaunchInstanceDetails.
-
networkType:
string
Allowed Values:
[ "E1000", "VFIO", "PARAVIRTUALIZED" ]
Emulation type for the physical network interface card (NIC). E1000 - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. VFIO - Direct attached Virtual Function network controller. This is the networking type when you launch an instance using hardware-assisted (SR-IOV) networking. PARAVIRTUALIZED - VM instances launch with paravirtualized devices using VirtIO drivers. -
remoteDataVolumeType:
string
Allowed Values:
[ "ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED", "NVME" ]
Emulation type for volume.- ISCSI - ISCSI attached block storage device.
- SCSI - Emulated SCSI disk.
- IDE - Emulated IDE disk.
- VFIO - Direct attached Virtual Function storage. This is the default option for local data volumes on platform images.
- PARAVIRTUALIZED - Paravirtualized disk. This is the default for boot volumes and remote block storage volumes on platform images.
- NVME - NVMe disk.
object
object
type
-
isMeasuredBootEnabled:
boolean
Default Value:
false
Whether the Measured Boot feature is enabled on the instance. -
isMemoryEncryptionEnabled:
boolean
Default Value:
false
Whether the instance is a confidential instance. If this value is true, the instance is a confidential instance. The default value is false. -
isSecureBootEnabled:
boolean
Default Value:
false
Whether Secure Boot is enabled on the instance. -
isTrustedPlatformModuleEnabled:
boolean
Default Value:
false
Whether the Trusted Platform Module (TPM) is enabled on the instance. -
type(required):
string
Allowed Values:
[ "AMD_MILAN_BM", "AMD_MILAN_BM_GPU", "AMD_ROME_BM", "AMD_ROME_BM_GPU", "INTEL_ICELAKE_BM", "INTEL_SKYLAKE_BM", "AMD_VM", "INTEL_VM" ]
The type of platform being configured.
object
-
preemptionAction(required):
object PreemptionAction
Discriminator:
type
The action to run when the preemptible node is interrupted for eviction.
array
object
-
baselineOcpuUtilization:
string
Allowed Values:
[ "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1" ]
The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a non-burstable instance, or explicitly specify non-burstable with BASELINE_1_1. The following values are supported: - BASELINE_1_8 - baseline usage is 1/8 of an OCPU. - BASELINE_1_2 - baseline usage is 1/2 of an OCPU. - BASELINE_1_1 - baseline usage is an entire OCPU. This represents a non-burstable instance. -
memoryInGBs:
number(float)
Minimum Value:
0
The total amount of memory available to the instance, in gigabytes. -
nvmes:
integer(int32)
Minimum Value:
1
Maximum Value:4
The number of NVMe drives to be used for storage. A single drive has 6.8 TB available. -
ocpus:
number(float)
Minimum Value:
0
The total number of OCPUs available to the instance.
object
sourceType
-
sourceType(required):
string
The source type for the instance. Use image when specifying the image OCID. Use bootVolume when specifying the boot volume OCID.
array
-
Array of:
object AttachVolumeDetails
Discriminator:
type
array
128
-
Array of:
object InstanceAgentPluginConfigDetails
The configuration of plugins associated with this instance.
object
-
desiredState(required):
string
Allowed Values:
[ "ENABLED", "DISABLED" ]
Whether the plugin should be enabled or disabled. To enable the monitoring and management plugins, the isMonitoringDisabled and isManagementDisabled attributes must also be set to false. -
name(required):
string
Minimum Length:
1
Maximum Length:255
The plugin name. To get a list of available plugins, use the ListInstanceagentAvailablePlugins operation in the Oracle Cloud Agent API.
object
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace. Example: {"CostCenter": "42"}
object
array
5
true
-
Array of:
string
Minimum Length:
1
Maximum Length:255
object
-
object additionalProperties
The value of the tag. Only the String type is supported.
object
object
-
object additionalProperties
The value of the tag. Only the String type is supported.
object
object
object
type
-
type(required):
string
Allowed Values:
[ "TERMINATE" ]
The type of action to run when the instance is interrupted for eviction.
object
-
createVnicDetails(required):
object CreateVnicDetails
Properties for a VNIC. Use this object when creating the primary VNIC during instance launch or when creating a secondary VNIC.
-
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. -
instanceId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the instance. For the AttachVnic operation, this is a required field for the request. -
nicIndex:
integer(int32)
Minimum Value:
0
Maximum Value:31
Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use.
object
type
-
createVolumeDetails:
object CreateVolumeDetails
The details of the volume to create. For the CreateVolume operation, this field is required in the request.
-
device:
string
Minimum Length:
3
Maximum Length:100
The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. -
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
instanceId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the instance. For AttachVolume operation, this is a required field for the request. -
isReadOnly:
boolean
Whether the attachment was created in read-only mode.
- isShareable: boolean
-
type(required):
string
Minimum Length:
1
Maximum Length:255
The type of volume. The only supported values are "iscsi", "paravirtualized", "service_determined" and "nvme". -
volumeId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the volume. If CreateVolumeDetails is specified, this field must be omitted from the request.
object
-
autotunePolicies:
array autotunePolicies
Unique Items Required:
true
The list of autotune policies to be enabled for this volume. -
availabilityDomain:
string
Minimum Length:
1
Maximum Length:255
The availability domain of the volume, which is AD-1. This parameter is not needed to clone a volume. -
backupPolicyId:
string
Minimum Length:
1
Maximum Length:255
If provided, specifies the OCID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned. -
blockVolumeReplicas:
array blockVolumeReplicas
Maximum Number of Items:
1
Unique Items Required:true
The list of block volume replicas to be enabled for this volume in the specified destination availability domains. -
compartmentId(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the compartment that contains the volume. -
definedTags:
object definedTags
Additional Properties Allowed: additionalPropertiesDefined tags for this resource. Each key is predefined and scoped to a namespace.
-
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
freeformTags:
object freeformTags
Additional Properties Allowed: additionalProperties. Each tag is a simple key-value pair with no predefined name, type, or namespace. The volume block size can be set by using the PCA_blocksize free-form tag. The default block size is 8192 bytes. To specify a different block size, specify a value in bytes for the PCA_blocksize tag. Supported values are a power of 2 between 512 bytes and 1 megabyte. The block size cannot be modified once the volume has been created.
-
isAutoTuneEnabled:
boolean
Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
-
kmsKeyId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the Key Management key to assign as the master encryption key for the volume. -
sizeInGBs:
integer(int64)
The size of the volume in GBs.
-
sizeInMBs:
integer(int64)
The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use sizeInGBs instead.
-
sourceDetails:
object VolumeSourceDetails
Discriminator:
type
Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup or a disk image in Object Storage. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup. -
volumeBackupId:
string
Minimum Length:
1
Maximum Length:255
The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume. -
volumeScope:
string
This is an optional field. This value indicates whether the volume is AD-local or Regional. Oracle Private Cloud Appliance has one region, named pca_name.domain (for example, mypca.example.com), and one availability domain, named AD-1.
-
volumeType:
string
The flag indicating the given source volumes will be used for producing a thin clone or full clone.
-
vpusPerGB:
integer(int64)
The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. Allowed values: 10 - Balanced option, 20 - Higher Performance option. For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB.
array
true
-
Array of:
object AutotunePolicy
Discriminator:
autotuneType
An autotune policy automatically tunes the volume's performace based on the type of the policy.
array
1
true
-
Array of:
object BlockVolumeReplicaDetails
Contains the details for the block volume replica
object
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace.
object
object
type
object
autotuneType
-
autotuneType(required):
string
Allowed Values:
[ "DETACHED_VOLUME", "PERFORMANCE_BASED" ]
This specifies the type of autotunes supported by OCI.
object
-
availabilityDomain(required):
string
Minimum Length:
1
Maximum Length:255
The availability domain of the block volume replica. Example: AD-1 -
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information.
object
-
object additionalProperties
The value of the tag. Only the String type is supported.
object
Response
- application/json
200 Response
-
etag: string
For optimistic concurrency control. See if-match.
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
-
opc-work-request-id: string
The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request.
object
-
agentConfig:
object InstanceAgentConfig
Configuration options for the Oracle Cloud Agent software running on the instance.
-
availabilityConfig:
object InstanceAvailabilityConfig
Options for defining the availabiity of a VM instance after a maintenance event that impacts the underlying hardware.
-
availabilityDomain(required):
string
Minimum Length:
1
Maximum Length:255
The availability domain the instance is running in. Oracle Private Cloud Appliance has one availability domain: AD-1 -
capacityReservationId:
string
Minimum Length:
0
Maximum Length:255
The OCID of the compute capacity reservation this instance is launched under. When this field contains an empty string or is null, the instance is not currently in a capacity reservation. -
compartmentId(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the compartment that contains the instance. -
dedicatedVmHostId:
string
Minimum Length:
1
Maximum Length:255
The OCID of dedicated VM host. -
definedTags:
object definedTags
Additional Properties Allowed: additionalPropertiesDefined tags for this resource. Each key is predefined and scoped to a namespace.
-
displayName:
string
Minimum Length:
1
Maximum Length:255
A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information. -
extendedMetadata:
object extendedMetadata
Additional Properties Allowed: additionalPropertiesAdditional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadata object. They are distinguished from metadata fields in that these can be nested JSON objects (whereas metadata fields are string/string maps only).
-
faultDomain:
string
Minimum Length:
1
Maximum Length:255
The name of the fault domain the instance is running in. A fault domain is a grouping of hardware and infrastructure within an availability domain. Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or Compute hardware maintenance that affects one fault domain does not affect instances in other fault domains. If you do not specify the fault domain, the system selects one for you. Example: FAULT-DOMAIN-1 -
freeformTags:
object freeformTags
Additional Properties Allowed: additionalPropertiesFree-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Example: {"Department": "Finance"}
-
id(required):
string
Minimum Length:
1
Maximum Length:255
The OCID of the instance. -
imageId:
string
Minimum Length:
1
Maximum Length:255
Deprecated. Use sourceDetails instead. -
instanceOptions:
object InstanceOptions
Optional mutable instance options
-
ipxeScript:
string
Minimum Length:
1
Maximum Length:10240
When a bare metal or virtual machine instance boots, the iPXE firmware that runs on the instance is configured to run an iPXE script to continue the boot process. If you want more control over the boot process, you can provide your own custom iPXE script that will run when the instance boots.Note: The same iPXE script will run every time an instance boots, not only after the initial LaunchInstance call.
The default iPXE script connects to the instance's local boot volume over iSCSI and performs a network boot. If you use a custom iPXE script and want to network-boot from the instance's local boot volume over iSCSI the same way as the default iPXE script, use the following iSCSI IP address: 169.254.0.2, and boot volume IQN: iqn.2015-02.oracle.boot. If your instance boot volume type is paravirtualized, the boot volume is attached to the instance through virtio-scsi and no iPXE script is used. If your instance boot volume type is paravirtualized and you use custom iPXE to network boot into your instance, the primary boot volume is attached as a data volume through virtio-scsi drive. For more information about iPXE, see http://ipxe.org.
-
launchMode:
string
Allowed Values:
[ "NATIVE", "EMULATED", "PARAVIRTUALIZED", "CUSTOM" ]
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:- NATIVE - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images.
- EMULATED - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
- PARAVIRTUALIZED - VM instances launch with paravirtualized devices using VirtIO drivers.
- CUSTOM - VM instances launch with custom configuration settings specified in the LaunchOptions parameter.
-
launchOptions:
object LaunchOptions
Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
-
lifecycleState(required):
string
Allowed Values:
[ "MOVING", "PROVISIONING", "RUNNING", "STARTING", "STOPPING", "STOPPED", "SUSPENDING", "SUSPENDED", "CREATING_IMAGE", "TERMINATING", "TERMINATED" ]
The current state of the instance. -
metadata:
object metadata
Additional Properties Allowed: additionalPropertiesCustom metadata that you provide.
-
platformConfig:
object PlatformConfig
Discriminator:
type
The platform configuration for the instance. -
preemptibleInstanceConfig:
object PreemptibleInstanceConfigDetails
Configuration options for preemptible instances.
-
preferredMaintenanceAction:
string
Allowed Values:
[ "LIVE_MIGRATE", "REBOOT" ]
The preferred maintenance action for an instance. LIVE_MIGRATE - Run maintenance using a live migration. REBOOT - Run maintenance using a reboot. -
region(required):
string
Minimum Length:
1
Maximum Length:255
The region that contains the availability domain the instance is running in. For Oracle Private Cloud Appliance, the region name is pca_name.domain. Example: mypca.example.com. The region contains one availability domain, which is named AD-1. -
shape(required):
string
Minimum Length:
1
Maximum Length:255
The shape of the instance. The shape determines the number of CPUs and the amount of memory allocated to the instance. You can enumerate all available shapes by calling ListShapes. -
shapeConfig:
object InstanceShapeConfig
The shape configuration for an instance. The shape configuration determines the resources allocated to an instance.
-
sourceDetails:
object InstanceSourceDetails
Discriminator:
sourceType
-
systemTags:
object systemTags
Additional Properties Allowed: additionalPropertiesSystem tags for this resource. Each key is predefined and scoped to a namespace.
-
timeCreated(required):
string(date-time)
The date and time the instance was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
-
timeMaintenanceRebootDue:
string(date-time)
The date and time the instance is expected to be stopped / started, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). After that time if instance hasn't been rebooted, Oracle will reboot the instance within 24 hours of the due time. Regardless of how the instance was stopped, the flag will be reset to empty as soon as instance reaches Stopped state. Example: 2018-05-25T21:10:29.600Z
-
timeStopScheduled:
string(date-time)
The date and time the instance is scheduled to be stopped. After that time if instance hasn't been stopped or terminated, Oracle will stop the instance automatically. Regardless of how the instance was stopped, the flag will be reset to empty as soon as instance reaches Stopped state. Example: 2018-05-25T21:10:29.600Z
object
-
areAllPluginsDisabled:
boolean
Default Value:
false
Whether Oracle Cloud Agent can run all of the available plugins. This includes the management and monitoring plugins. -
isManagementDisabled:
boolean
Default Value:
false
Whether Oracle Cloud Agent can run all the available management plugins. These are the management plugins: OS Management Service Agent and Compute Instance Run Command. The management plugins are controlled by this parameter and by the per-plugin configuration in the pluginsConfig object. - If isManagementDisabled is true, all of the management plugins are disabled, regardless of the per-plugin configuration. - If isManagementDisabled is false, all of the management plugins are enabled. You can optionally disable individual management plugins by providing a value in the pluginsConfig object. -
isMonitoringDisabled:
boolean
Default Value:
false
Whether Oracle Cloud Agent can gather performance metrics and monitor the instance using the monitoring plugins. These are the monitoring plugins: Compute Instance Monitoring and Custom Logs Monitoring. The monitoring plugins are controlled by this parameter and by the per-plugin configuration in the pluginsConfig object. - If isMonitoringDisabled is true, all of the monitoring plugins are disabled, regardless of the per-plugin configuration. - If isMonitoringDisabled is false, all of the monitoring plugins are enabled. You can optionally disable individual monitoring plugins by providing a value in the pluginsConfig object. -
pluginsConfig:
array pluginsConfig
The configuration of plugins associated with this instance.
object
-
isLiveMigrationPreferred:
boolean
Whether to live migrate supported VM instances to a healthy physical VM host without disrupting running instances during infrastructure maintenance events. If null, Oracle chooses the best option for migrating the VM during infrastructure maintenance events.
-
recoveryAction:
string
Default Value:
RESTORE_INSTANCE
Allowed Values:[ "RESTORE_INSTANCE", "STOP_INSTANCE" ]
The lifecycle state for an instance when it is recovered after infrastructure maintenance. RESTORE_INSTANCE - The instance is restored to the lifecycle state it was in before the maintenance event. If the instance was running, it is automatically rebooted. This is the default action when a value is not set. STOP_INSTANCE - The instance is recovered in the stopped state.
object
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace.
object
object
object
-
areLegacyImdsEndpointsDisabled:
boolean
Whether to disable the legacy (/v1) instance metadata service endpoints. Customers who have migrated to /v2 should set this to true for added security. Default is false.
object
-
bootVolumeType:
string
Allowed Values:
[ "ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED", "NVME" ]
Emulation type for the boot volume. See the description of LaunchInstance for descriptions of each possible value. -
firmware:
string
Allowed Values:
[ "BIOS", "UEFI_64" ]
Firmware used to boot VM. Select the option that matches your operating system. BIOS - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating systems that boot using MBR style bootloaders. UEFI_64 - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the default for platform images. -
isConsistentVolumeNamingEnabled:
boolean
Whether to enable consistent volume naming feature. Defaults to false.
-
isPvEncryptionInTransitEnabled:
boolean
Deprecated. Instead use isPvEncryptionInTransitEnabled in LaunchInstanceDetails.
-
networkType:
string
Allowed Values:
[ "E1000", "VFIO", "PARAVIRTUALIZED" ]
Emulation type for the physical network interface card (NIC). E1000 - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. VFIO - Direct attached Virtual Function network controller. This is the networking type when you launch an instance using hardware-assisted (SR-IOV) networking. PARAVIRTUALIZED - VM instances launch with paravirtualized devices using VirtIO drivers. -
remoteDataVolumeType:
string
Allowed Values:
[ "ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED", "NVME" ]
Emulation type for volume.- ISCSI - ISCSI attached block storage device.
- SCSI - Emulated SCSI disk.
- IDE - Emulated IDE disk.
- VFIO - Direct attached Virtual Function storage. This is the default option for local data volumes on platform images.
- PARAVIRTUALIZED - Paravirtualized disk. This is the default for boot volumes and remote block storage volumes on platform images.
- NVME - NVMe disk.
object
object
type
-
isMeasuredBootEnabled:
boolean
Default Value:
false
Whether the Measured Boot feature is enabled on the instance. -
isMemoryEncryptionEnabled:
boolean
Default Value:
false
Whether the instance is a confidential instance. If this value is true, the instance is a confidential instance. The default value is false. -
isSecureBootEnabled:
boolean
Default Value:
false
Whether Secure Boot is enabled on the instance. -
isTrustedPlatformModuleEnabled:
boolean
Default Value:
false
Whether the Trusted Platform Module (TPM) is enabled on the instance. -
type(required):
string
Allowed Values:
[ "AMD_MILAN_BM", "AMD_MILAN_BM_GPU", "AMD_ROME_BM", "AMD_ROME_BM_GPU", "INTEL_ICELAKE_BM", "INTEL_SKYLAKE_BM", "AMD_VM", "INTEL_VM" ]
The type of platform being configured.
object
-
preemptionAction(required):
object PreemptionAction
Discriminator:
type
The action to run when the preemptible node is interrupted for eviction.
object
-
baselineOcpuUtilization:
string
Allowed Values:
[ "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1" ]
The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a non-burstable instance, or explicitly specify non-burstable with BASELINE_1_1. The following values are supported: - BASELINE_1_8 - baseline usage is 1/8 of an OCPU. - BASELINE_1_2 - baseline usage is 1/2 of an OCPU. - BASELINE_1_1 - baseline usage is the entire OCPU. This represents a non-burstable instance. -
gpuDescription:
string
A short description of the instance's graphics processing unit (GPU). If the instance does not have any GPUs, this field is null.
-
gpus:
integer
Minimum Value:
0
The number of GPUs available to the instance. -
localDiskDescription:
string
Minimum Length:
1
Maximum Length:255
A short description of the local disks available to this instance. If the instance does not have any local disks, this field is null. -
localDisks:
integer
Minimum Value:
0
The number of local disks available to the instance. -
localDisksTotalSizeInGBs:
number(float)
Minimum Value:
0
The aggregate size of all local disks, in gigabytes. If the instance does not have any local disks, this field is null. -
maxVnicAttachments:
integer
Minimum Value:
0
The maximum number of VNIC attachments for the instance. -
memoryInGBs:
number(float)
Minimum Value:
0
The total amount of memory available to the instance, in gigabytes. -
networkingBandwidthInGbps:
number(float)
Minimum Value:
0
The networking bandwidth available to the instance, in gigabits per second. -
ocpus:
number(float)
Minimum Value:
0
The total number of OCPUs available to the instance. -
processorDescription:
string
Minimum Length:
1
Maximum Length:255
A short description of the instance's processor (CPU).
object
sourceType
-
sourceType(required):
string
The source type for the instance. Use image when specifying the image OCID. Use bootVolume when specifying the boot volume OCID.
object
-
object additionalProperties
Additional Properties Allowed: additionalPropertiesKey-value pair representing a defined tag key and value, scoped to a namespace.
array
128
-
Array of:
object InstanceAgentPluginConfigDetails
The configuration of plugins associated with this instance.
object
-
desiredState(required):
string
Allowed Values:
[ "ENABLED", "DISABLED" ]
Whether the plugin should be enabled or disabled. To enable the monitoring and management plugins, the isMonitoringDisabled and isManagementDisabled attributes must also be set to false. -
name(required):
string
Minimum Length:
1
Maximum Length:255
The plugin name. To get a list of available plugins, use the ListInstanceagentAvailablePlugins operation in the Oracle Cloud Agent API.
object
-
object additionalProperties
The value of the tag. Only the String type is supported.
object
object
object
type
-
type(required):
string
Allowed Values:
[ "TERMINATE" ]
The type of action to run when the instance is interrupted for eviction.
object
-
object additionalProperties
The value of the tag. Only the String type is supported.
object
400 Response
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing..Example:
UnknownError
-
message(required):
string
A human-readable error string.Example:
error validating payload
401 Response
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing..Example:
UnknownError
-
message(required):
string
A human-readable error string.Example:
error validating payload
404 Response
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing..Example:
UnknownError
-
message(required):
string
A human-readable error string.Example:
error validating payload
409 Response
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing..Example:
UnknownError
-
message(required):
string
A human-readable error string.Example:
error validating payload
500 Response
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing..Example:
UnknownError
-
message(required):
string
A human-readable error string.Example:
error validating payload
Default Response
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
object
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing..Example:
UnknownError
-
message(required):
string
A human-readable error string.Example:
error validating payload