CreateInstanceConfigurationFromInstanceDetails

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

Bases: oci.core.models.create_instance_configuration_base.CreateInstanceConfigurationBase

Details for creating an instance configuration using an existing instance as a template.

SOURCE_INSTANCE = 'INSTANCE'
SOURCE_NONE = 'NONE'
__init__(**kwargs)

Initializes a new CreateInstanceConfigurationFromInstanceDetails object with values from keyword arguments. The default value of the source attribute of this class is INSTANCE and it should not be changed. 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 CreateInstanceConfigurationFromInstanceDetails.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this CreateInstanceConfigurationFromInstanceDetails.
  • display_name (str) -- The value to assign to the display_name property of this CreateInstanceConfigurationFromInstanceDetails.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this CreateInstanceConfigurationFromInstanceDetails.
  • source (str) -- The value to assign to the source property of this CreateInstanceConfigurationFromInstanceDetails. Allowed values for this property are: "NONE", "INSTANCE"
  • instance_id (str) -- The value to assign to the instance_id property of this CreateInstanceConfigurationFromInstanceDetails.
compartment_id

[Required] Gets the compartment_id of this CreateInstanceConfigurationBase. The OCID of the compartment containing the instance configuration.

Returns:The compartment_id of this CreateInstanceConfigurationBase.
Return type:str
defined_tags

Gets the defined_tags of this CreateInstanceConfigurationBase. 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 CreateInstanceConfigurationBase.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this CreateInstanceConfigurationBase. A user-friendly name for the instance configuration. Does not have to be unique, and it's changeable. Avoid entering confidential information.

Returns:The display_name of this CreateInstanceConfigurationBase.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateInstanceConfigurationBase. 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 CreateInstanceConfigurationBase.
Return type:dict(str, str)
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.

instance_id

[Required] Gets the instance_id of this CreateInstanceConfigurationFromInstanceDetails. The OCID of the instance to use to create the instance configuration.

Returns:The instance_id of this CreateInstanceConfigurationFromInstanceDetails.
Return type:str
source

Gets the source of this CreateInstanceConfigurationBase. The source of the instance configuration. An instance configuration defines the settings to use when creating Compute instances, including details such as the base image, shape, and metadata. You can also specify the associated resources for the instance, such as block volume attachments and network configuration.

The following values are supported:

  • NONE: Creates an instance configuration using the list of settings that you specify.
  • INSTANCE: Creates an instance configuration using an existing instance as a template. The

instance configuration uses the same settings as the instance.

Allowed values for this property are: "NONE", "INSTANCE"

Returns:The source of this CreateInstanceConfigurationBase.
Return type:str