InstanceConfiguration

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

Bases: object

An instance configuration is a template that defines the settings to use when creating Compute instances. For more information about instance configurations, see Managing Compute Instances.

Methods

__init__(**kwargs) Initializes a new InstanceConfiguration object with values from keyword arguments.

Attributes

compartment_id [Required] Gets the compartment_id of this InstanceConfiguration.
deferred_fields Gets the deferred_fields of this InstanceConfiguration.
defined_tags Gets the defined_tags of this InstanceConfiguration.
display_name Gets the display_name of this InstanceConfiguration.
freeform_tags Gets the freeform_tags of this InstanceConfiguration.
id [Required] Gets the id of this InstanceConfiguration.
instance_details Gets the instance_details of this InstanceConfiguration.
time_created [Required] Gets the time_created of this InstanceConfiguration.
__init__(**kwargs)

Initializes a new InstanceConfiguration 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 InstanceConfiguration.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this InstanceConfiguration.
  • display_name (str) – The value to assign to the display_name property of this InstanceConfiguration.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this InstanceConfiguration.
  • id (str) – The value to assign to the id property of this InstanceConfiguration.
  • instance_details (oci.core.models.InstanceConfigurationInstanceDetails) – The value to assign to the instance_details property of this InstanceConfiguration.
  • deferred_fields (list[str]) – The value to assign to the deferred_fields property of this InstanceConfiguration.
  • time_created (datetime) – The value to assign to the time_created property of this InstanceConfiguration.
compartment_id

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

Returns:The compartment_id of this InstanceConfiguration.
Return type:str
deferred_fields

Gets the deferred_fields of this InstanceConfiguration. Parameters that were not specified when the instance configuration was created, but that are required to launch an instance from the instance configuration. See the launch_instance_configuration() operation.

Returns:The deferred_fields of this InstanceConfiguration.
Return type:list[str]
defined_tags

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

Gets the display_name of this InstanceConfiguration. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

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

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

[Required] Gets the id of this InstanceConfiguration. The OCID of the instance configuration.

Returns:The id of this InstanceConfiguration.
Return type:str
instance_details

Gets the instance_details of this InstanceConfiguration.

Returns:The instance_details of this InstanceConfiguration.
Return type:oci.core.models.InstanceConfigurationInstanceDetails
time_created

[Required] Gets the time_created of this InstanceConfiguration. The date and time the instance configuration was created, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this InstanceConfiguration.
Return type:datetime