InstanceSourceViaImageDetails

class oci.core.models.InstanceSourceViaImageDetails(**kwargs)

Bases: oci.core.models.instance_source_details.InstanceSourceDetails

InstanceSourceViaImageDetails model.

__init__(**kwargs)

Initializes a new InstanceSourceViaImageDetails object with values from keyword arguments. The default value of the source_type attribute of this class is image and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • source_type (str) -- The value to assign to the source_type property of this InstanceSourceViaImageDetails.
  • boot_volume_size_in_gbs (int) -- The value to assign to the boot_volume_size_in_gbs property of this InstanceSourceViaImageDetails.
  • image_id (str) -- The value to assign to the image_id property of this InstanceSourceViaImageDetails.
  • kms_key_id (str) -- The value to assign to the kms_key_id property of this InstanceSourceViaImageDetails.
boot_volume_size_in_gbs

Gets the boot_volume_size_in_gbs of this InstanceSourceViaImageDetails. The size of the boot volume in GBs. Minimum value is 50 GB and maximum value is 16384 GB (16TB).

Returns:The boot_volume_size_in_gbs of this InstanceSourceViaImageDetails.
Return type:int
get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

image_id

[Required] Gets the image_id of this InstanceSourceViaImageDetails. The OCID of the image used to boot the instance.

Returns:The image_id of this InstanceSourceViaImageDetails.
Return type:str
kms_key_id

Gets the kms_key_id of this InstanceSourceViaImageDetails. The OCID of the KMS key to be used as the master encryption key for the boot volume.

Returns:The kms_key_id of this InstanceSourceViaImageDetails.
Return type:str
source_type

[Required] Gets the source_type of this InstanceSourceDetails. The source type for the instance. Use image when specifying the image OCID. Use bootVolume when specifying the boot volume OCID.

Returns:The source_type of this InstanceSourceDetails.
Return type:str