CreateImageDetails¶
- class oci.core.models.CreateImageDetails(**kwargs)¶
Bases:
objectEither instanceId or imageSourceDetails must be provided in addition to other required parameters.
Attributes:
A constant which can be used with the launch_mode property of a CreateImageDetails.
A constant which can be used with the launch_mode property of a CreateImageDetails.
A constant which can be used with the launch_mode property of a CreateImageDetails.
A constant which can be used with the launch_mode property of a CreateImageDetails.
A constant which can be used with the launch_mode property of a CreateImageDetails.
[Required] Gets the compartment_id of this CreateImageDetails.
Gets the defined_tags of this CreateImageDetails.
Gets the display_name of this CreateImageDetails.
Gets the freeform_tags of this CreateImageDetails.
Gets the image_source_details of this CreateImageDetails.
Gets the instance_id of this CreateImageDetails.
Gets the launch_mode of this CreateImageDetails.
Methods:
__init__(**kwargs)Initializes a new CreateImageDetails object with values from keyword arguments.
- LAUNCH_MODE_ACCELERATEDPV = 'ACCELERATEDPV'¶
A constant which can be used with the launch_mode property of a CreateImageDetails. This constant has a value of “ACCELERATEDPV”
- LAUNCH_MODE_CUSTOM = 'CUSTOM'¶
A constant which can be used with the launch_mode property of a CreateImageDetails. This constant has a value of “CUSTOM”
- LAUNCH_MODE_EMULATED = 'EMULATED'¶
A constant which can be used with the launch_mode property of a CreateImageDetails. This constant has a value of “EMULATED”
- LAUNCH_MODE_NATIVE = 'NATIVE'¶
A constant which can be used with the launch_mode property of a CreateImageDetails. This constant has a value of “NATIVE”
- LAUNCH_MODE_PARAVIRTUALIZED = 'PARAVIRTUALIZED'¶
A constant which can be used with the launch_mode property of a CreateImageDetails. This constant has a value of “PARAVIRTUALIZED”
- __init__(**kwargs)¶
Initializes a new CreateImageDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
compartment_id (str) – The value to assign to the compartment_id property of this CreateImageDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateImageDetails.
display_name (str) – The value to assign to the display_name property of this CreateImageDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateImageDetails.
image_source_details (oci.core.models.ImageSourceDetails) – The value to assign to the image_source_details property of this CreateImageDetails.
instance_id (str) – The value to assign to the instance_id property of this CreateImageDetails.
launch_mode (str) – The value to assign to the launch_mode property of this CreateImageDetails. Allowed values for this property are: “NATIVE”, “EMULATED”, “PARAVIRTUALIZED”, “ACCELERATEDPV”, “CUSTOM”
- property compartment_id¶
[Required] Gets the compartment_id of this CreateImageDetails. The OCID of the compartment you want the image to be created in.
- Returns
The compartment_id of this CreateImageDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateImageDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this CreateImageDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this CreateImageDetails. A user-friendly name for the image. It does not have to be unique, and it’s changeable. Avoid entering confidential information.
You cannot use a platform image name as a custom image name.
Example: My Oracle Linux image
- Returns
The display_name of this CreateImageDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateImageDetails. 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: {“Department”: “Finance”}
- Returns
The freeform_tags of this CreateImageDetails.
- Return type
dict(str, str)
- property image_source_details¶
Gets the image_source_details of this CreateImageDetails.
- Returns
The image_source_details of this CreateImageDetails.
- Return type
- property instance_id¶
Gets the instance_id of this CreateImageDetails. The OCID of the instance you want to use as the basis for the image.
- Returns
The instance_id of this CreateImageDetails.
- Return type
str
- property launch_mode¶
Gets the launch_mode of this CreateImageDetails. 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. * ACCELERATEDPV - VM instances launch with accelerated paravirtualized networking type. * CUSTOM - VM instances launch with custom configuration settings specified in the LaunchOptions parameter.
Allowed values for this property are: “NATIVE”, “EMULATED”, “PARAVIRTUALIZED”, “ACCELERATEDPV”, “CUSTOM”
- Returns
The launch_mode of this CreateImageDetails.
- Return type
str