Skip to main content

LaunchInstanceDetails

Struct LaunchInstanceDetails 

Source
pub struct LaunchInstanceDetails {
Show 33 fields pub availability_domain: String, pub compartment_id: String, pub capacity_reservation_id: Option<String>, pub create_vnic_details: Option<CreateVnicDetails>, pub dedicated_vm_host_id: Option<String>, pub defined_tags: Option<HashMap<String, HashMap<String, Value>>>, pub security_attributes: Option<HashMap<String, HashMap<String, Value>>>, pub display_name: Option<String>, pub extended_metadata: Option<HashMap<String, Value>>, pub fault_domain: Option<String>, pub cluster_placement_group_id: Option<String>, pub freeform_tags: Option<HashMap<String, String>>, pub compute_cluster_id: Option<String>, pub hostname_label: Option<String>, pub image_id: Option<String>, pub ipxe_script: Option<String>, pub launch_options: Option<LaunchOptions>, pub instance_options: Option<InstanceOptions>, pub availability_config: Option<LaunchInstanceAvailabilityConfigDetails>, pub preemptible_instance_config: Option<PreemptibleInstanceConfigDetails>, pub metadata: Option<HashMap<String, String>>, pub agent_config: Option<LaunchInstanceAgentConfigDetails>, pub shape: Option<String>, pub shape_config: Option<LaunchInstanceShapeConfigDetails>, pub source_details: Option<InstanceSourceViaImageDetails>, pub subnet_id: Option<String>, pub launch_volume_attachments: Option<Vec<LaunchAttachVolumeDetails>>, pub is_pv_encryption_in_transit_enabled: Option<bool>, pub platform_config: Option<AmdRomeBmGpuLaunchInstancePlatformConfig>, pub placement_constraint_details: Option<HostGroupPlacementConstraintDetails>, pub is_aienterprise_enabled: Option<bool>, pub instance_configuration_id: Option<String>, pub licensing_configs: Option<Vec<LaunchInstanceLicensingConfig>>,
}
Expand description

Instance launch details. Use the {@code sourceDetails} parameter to specify whether a boot volume or an image should be used to launch a new instance.

Fields§

§availability_domain: String

The availability domain of the instance.

Example: {@code Uocm:PHX-AD-1}

§compartment_id: String

The OCID of the compartment.

§capacity_reservation_id: Option<String>

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. For more information, see Capacity Reservations.

§create_vnic_details: Option<CreateVnicDetails>§dedicated_vm_host_id: Option<String>

The OCID of the dedicated virtual machine host to place the instance on.

§defined_tags: Option<HashMap<String, HashMap<String, Value>>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {@code {"Operations": {"CostCenter": "42"}}}

§security_attributes: Option<HashMap<String, HashMap<String, Value>>>

Security attributes are labels for a resource that can be referenced in a Zero Trust Packet Routing (ZPR) policy to control access to ZPR-supported resources.

Example: {@code {"Oracle-DataSecurity-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit"}}}}

§display_name: Option<String>

A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

§extended_metadata: Option<HashMap<String, Value>>

Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the {@code metadata} object.

They are distinguished from {@code metadata} fields in that these can be nested JSON objects (whereas {@code metadata} fields are string/string maps only).

The combined size of the {@code metadata} and {@code extendedMetadata} objects can be a maximum of 32,000 bytes.

§fault_domain: Option<String>

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.

To get a list of fault domains, use the {@link #listFaultDomains(ListFaultDomainsRequest) listFaultDomains} operation in the Identity and Access Management Service API.

Example: {@code FAULT-DOMAIN-1}

§cluster_placement_group_id: Option<String>

The OCID of the cluster placement group of the instance.

§freeform_tags: Option<HashMap<String, String>>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {@code {"Department": "Finance"}}

§compute_cluster_id: Option<String>

The OCID of the compute cluster that the instance will be created in.

§hostname_label: Option<String>

Deprecated. Instead use {@code hostnameLabel} in {@link CreateVnicDetails}. If you provide both, the values must match.

§image_id: Option<String>

Deprecated. Use {@code sourceDetails} with {@link #instanceSourceViaImageDetails(InstanceSourceViaImageDetailsRequest) instanceSourceViaImageDetails} source type instead. If you specify values for both, the values must match.

§ipxe_script: Option<String>

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.

If you want more control over the boot process, you can provide your own custom iPXE script that will run when the instance boots. Be aware that 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 attachment 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 attachment 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 the Bring Your Own Image feature of Oracle Cloud Infrastructure, see Bring Your Own Image.

For more information about iPXE, see http://ipxe.org.

§launch_options: Option<LaunchOptions>§instance_options: Option<InstanceOptions>§availability_config: Option<LaunchInstanceAvailabilityConfigDetails>§preemptible_instance_config: Option<PreemptibleInstanceConfigDetails>§metadata: Option<HashMap<String, String>>

Custom metadata key/value pairs that you provide, such as the SSH public key required to connect to the instance.

A metadata service runs on every launched instance. The service is an HTTP endpoint listening on 169.254.169.254. You can use the service to:

Provide information to Cloud-Init to be used for various system initialization tasks.

Get information about the instance, including the custom metadata that you provide when you launch the instance.

Providing Cloud-Init Metadata*

You can use the following metadata key names to provide information to Cloud-Init:

"ssh_authorized_keys"* - Provide one or more public SSH keys to be included in the {@code ~/.ssh/authorized_keys} file for the default user on the instance. Use a newline character to separate multiple keys. The SSH keys must be in the format necessary for the {@code authorized_keys} file, as shown in the example below.

"user_data"* - Provide your own base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation.

Metadata Example*

"metadata" : { "quake_bot_level" : "Severe", "ssh_authorized_keys" : "ssh-rsa <your_public_SSH_key>== rsa-key-20160227", "user_data" : "<your_public_SSH_key>==" } Getting Metadata on the Instance

To get information about your instance, connect to the instance using SSH and issue any of the following GET requests:

curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/ curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/ curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/

You’ll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively.

The combined size of the {@code metadata} and {@code extendedMetadata} objects can be a maximum of 32,000 bytes.

§agent_config: Option<LaunchInstanceAgentConfigDetails>§shape: Option<String>

The shape of an instance. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance.

You can enumerate all available shapes by calling {@link #listShapes(ListShapesRequest) listShapes}.

§shape_config: Option<LaunchInstanceShapeConfigDetails>§source_details: Option<InstanceSourceViaImageDetails>§subnet_id: Option<String>

Deprecated. Instead use {@code subnetId} in {@link CreateVnicDetails}. At least one of them is required; if you provide both, the values must match.

§launch_volume_attachments: Option<Vec<LaunchAttachVolumeDetails>>

Volume attachments to create as part of the launch instance operation.

§is_pv_encryption_in_transit_enabled: Option<bool>

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.

§platform_config: Option<AmdRomeBmGpuLaunchInstancePlatformConfig>§placement_constraint_details: Option<HostGroupPlacementConstraintDetails>§is_aienterprise_enabled: Option<bool>

Whether to enable AI enterprise on the instance.

§instance_configuration_id: Option<String>

The OCID of the Instance Configuration containing instance launch details. Any other fields supplied in this instance launch request will override the details stored in the Instance Configuration for this instance launch.

§licensing_configs: Option<Vec<LaunchInstanceLicensingConfig>>

List of licensing configurations associated with target launch values.

Implementations§

Source§

impl LaunchInstanceDetails

Source

pub fn new(required: LaunchInstanceDetailsRequired) -> Self

Create a new LaunchInstanceDetails with required fields

Source

pub fn set_availability_domain(self, value: String) -> Self

Set availability_domain

Source

pub fn set_capacity_reservation_id(self, value: Option<String>) -> Self

Set capacity_reservation_id

Source

pub fn set_compartment_id(self, value: String) -> Self

Set compartment_id

Source

pub fn set_create_vnic_details(self, value: Option<CreateVnicDetails>) -> Self

Set create_vnic_details

Source

pub fn set_dedicated_vm_host_id(self, value: Option<String>) -> Self

Set dedicated_vm_host_id

Source

pub fn set_defined_tags( self, value: Option<HashMap<String, HashMap<String, Value>>>, ) -> Self

Set defined_tags

Source

pub fn set_security_attributes( self, value: Option<HashMap<String, HashMap<String, Value>>>, ) -> Self

Set security_attributes

Source

pub fn set_display_name(self, value: Option<String>) -> Self

Set display_name

Source

pub fn set_extended_metadata( self, value: Option<HashMap<String, Value>>, ) -> Self

Set extended_metadata

Source

pub fn set_fault_domain(self, value: Option<String>) -> Self

Set fault_domain

Source

pub fn set_cluster_placement_group_id(self, value: Option<String>) -> Self

Set cluster_placement_group_id

Source

pub fn set_freeform_tags(self, value: Option<HashMap<String, String>>) -> Self

Set freeform_tags

Source

pub fn set_compute_cluster_id(self, value: Option<String>) -> Self

Set compute_cluster_id

Source

pub fn set_hostname_label(self, value: Option<String>) -> Self

Set hostname_label

Source

pub fn set_image_id(self, value: Option<String>) -> Self

Set image_id

Source

pub fn set_ipxe_script(self, value: Option<String>) -> Self

Set ipxe_script

Source

pub fn set_launch_options(self, value: Option<LaunchOptions>) -> Self

Set launch_options

Source

pub fn set_instance_options(self, value: Option<InstanceOptions>) -> Self

Set instance_options

Source

pub fn set_availability_config( self, value: Option<LaunchInstanceAvailabilityConfigDetails>, ) -> Self

Set availability_config

Source

pub fn set_preemptible_instance_config( self, value: Option<PreemptibleInstanceConfigDetails>, ) -> Self

Set preemptible_instance_config

Source

pub fn set_metadata(self, value: Option<HashMap<String, String>>) -> Self

Set metadata

Source

pub fn set_agent_config( self, value: Option<LaunchInstanceAgentConfigDetails>, ) -> Self

Set agent_config

Source

pub fn set_shape(self, value: Option<String>) -> Self

Set shape

Source

pub fn set_shape_config( self, value: Option<LaunchInstanceShapeConfigDetails>, ) -> Self

Set shape_config

Source

pub fn set_source_details( self, value: Option<InstanceSourceViaImageDetails>, ) -> Self

Set source_details

Source

pub fn set_subnet_id(self, value: Option<String>) -> Self

Set subnet_id

Source

pub fn set_launch_volume_attachments( self, value: Option<Vec<LaunchAttachVolumeDetails>>, ) -> Self

Set launch_volume_attachments

Source

pub fn set_is_pv_encryption_in_transit_enabled( self, value: Option<bool>, ) -> Self

Set is_pv_encryption_in_transit_enabled

Source

pub fn set_platform_config( self, value: Option<AmdRomeBmGpuLaunchInstancePlatformConfig>, ) -> Self

Set platform_config

Source

pub fn set_placement_constraint_details( self, value: Option<HostGroupPlacementConstraintDetails>, ) -> Self

Set placement_constraint_details

Source

pub fn set_is_aienterprise_enabled(self, value: Option<bool>) -> Self

Set is_aienterprise_enabled

Source

pub fn set_instance_configuration_id(self, value: Option<String>) -> Self

Set instance_configuration_id

Source

pub fn set_licensing_configs( self, value: Option<Vec<LaunchInstanceLicensingConfig>>, ) -> Self

Set licensing_configs

Source

pub fn with_capacity_reservation_id(self, value: impl Into<String>) -> Self

Set capacity_reservation_id (unwraps Option)

Source

pub fn with_create_vnic_details(self, value: CreateVnicDetails) -> Self

Set create_vnic_details (unwraps Option)

Source

pub fn with_dedicated_vm_host_id(self, value: impl Into<String>) -> Self

Set dedicated_vm_host_id (unwraps Option)

Source

pub fn with_defined_tags( self, value: HashMap<String, HashMap<String, Value>>, ) -> Self

Set defined_tags (unwraps Option)

Source

pub fn with_security_attributes( self, value: HashMap<String, HashMap<String, Value>>, ) -> Self

Set security_attributes (unwraps Option)

Source

pub fn with_display_name(self, value: impl Into<String>) -> Self

Set display_name (unwraps Option)

Source

pub fn with_extended_metadata(self, value: HashMap<String, Value>) -> Self

Set extended_metadata (unwraps Option)

Source

pub fn with_fault_domain(self, value: impl Into<String>) -> Self

Set fault_domain (unwraps Option)

Source

pub fn with_cluster_placement_group_id(self, value: impl Into<String>) -> Self

Set cluster_placement_group_id (unwraps Option)

Source

pub fn with_freeform_tags(self, value: HashMap<String, String>) -> Self

Set freeform_tags (unwraps Option)

Source

pub fn with_compute_cluster_id(self, value: impl Into<String>) -> Self

Set compute_cluster_id (unwraps Option)

Source

pub fn with_hostname_label(self, value: impl Into<String>) -> Self

Set hostname_label (unwraps Option)

Source

pub fn with_image_id(self, value: impl Into<String>) -> Self

Set image_id (unwraps Option)

Source

pub fn with_ipxe_script(self, value: impl Into<String>) -> Self

Set ipxe_script (unwraps Option)

Source

pub fn with_launch_options(self, value: LaunchOptions) -> Self

Set launch_options (unwraps Option)

Source

pub fn with_instance_options(self, value: InstanceOptions) -> Self

Set instance_options (unwraps Option)

Source

pub fn with_availability_config( self, value: LaunchInstanceAvailabilityConfigDetails, ) -> Self

Set availability_config (unwraps Option)

Source

pub fn with_preemptible_instance_config( self, value: PreemptibleInstanceConfigDetails, ) -> Self

Set preemptible_instance_config (unwraps Option)

Source

pub fn with_metadata(self, value: HashMap<String, String>) -> Self

Set metadata (unwraps Option)

Source

pub fn with_agent_config(self, value: LaunchInstanceAgentConfigDetails) -> Self

Set agent_config (unwraps Option)

Source

pub fn with_shape(self, value: impl Into<String>) -> Self

Set shape (unwraps Option)

Source

pub fn with_shape_config(self, value: LaunchInstanceShapeConfigDetails) -> Self

Set shape_config (unwraps Option)

Source

pub fn with_source_details(self, value: InstanceSourceViaImageDetails) -> Self

Set source_details (unwraps Option)

Source

pub fn with_subnet_id(self, value: impl Into<String>) -> Self

Set subnet_id (unwraps Option)

Source

pub fn with_launch_volume_attachments( self, value: Vec<LaunchAttachVolumeDetails>, ) -> Self

Set launch_volume_attachments (unwraps Option)

Source

pub fn with_is_pv_encryption_in_transit_enabled(self, value: bool) -> Self

Set is_pv_encryption_in_transit_enabled (unwraps Option)

Source

pub fn with_platform_config( self, value: AmdRomeBmGpuLaunchInstancePlatformConfig, ) -> Self

Set platform_config (unwraps Option)

Source

pub fn with_placement_constraint_details( self, value: HostGroupPlacementConstraintDetails, ) -> Self

Set placement_constraint_details (unwraps Option)

Source

pub fn with_is_aienterprise_enabled(self, value: bool) -> Self

Set is_aienterprise_enabled (unwraps Option)

Source

pub fn with_instance_configuration_id(self, value: impl Into<String>) -> Self

Set instance_configuration_id (unwraps Option)

Source

pub fn with_licensing_configs( self, value: Vec<LaunchInstanceLicensingConfig>, ) -> Self

Set licensing_configs (unwraps Option)

Trait Implementations§

Source§

impl Clone for LaunchInstanceDetails

Source§

fn clone(&self) -> LaunchInstanceDetails

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LaunchInstanceDetails

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for LaunchInstanceDetails

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for LaunchInstanceDetails

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,