InstanceConfiguration¶
-
class
oci.core.models.InstanceConfiguration(**kwargs)¶ Bases:
objectAn instance configuration is a template that defines the settings to use when creating Compute instances. An instance configuration is a template that defines the settings to use when creating Compute instances or GPU Memory Clusters. For more information about instance configurations, see Managing Compute Instances.
Attributes
SOURCE_GMCA constant which can be used with the source property of a InstanceConfiguration. SOURCE_INSTANCEA constant which can be used with the source property of a InstanceConfiguration. compartment_id[Required] Gets the compartment_id of this InstanceConfiguration. deferred_fieldsGets the deferred_fields of this InstanceConfiguration. defined_tagsGets the defined_tags of this InstanceConfiguration. display_nameGets the display_name of this InstanceConfiguration. freeform_tagsGets the freeform_tags of this InstanceConfiguration. gmc_configsGets the gmc_configs of this InstanceConfiguration. id[Required] Gets the id of this InstanceConfiguration. instance_detailsGets the instance_details of this InstanceConfiguration. sourceGets the source of this InstanceConfiguration. time_created[Required] Gets the time_created of this InstanceConfiguration. Methods
__init__(**kwargs)Initializes a new InstanceConfiguration object with values from keyword arguments. -
SOURCE_GMC= 'GMC'¶ A constant which can be used with the source property of a InstanceConfiguration. This constant has a value of “GMC”
-
SOURCE_INSTANCE= 'INSTANCE'¶ A constant which can be used with the source property of a InstanceConfiguration. This constant has a value of “INSTANCE”
-
__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.
- gmc_configs (list[oci.core.models.InstanceConfigurationGmcConfigDetail]) – The value to assign to the gmc_configs property of this InstanceConfiguration.
- source (str) – The value to assign to the source property of this InstanceConfiguration. Allowed values for this property are: “INSTANCE”, “GMC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- 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]
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
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)
-
gmc_configs¶ Gets the gmc_configs of this InstanceConfiguration. The GPU Memory Cluster configuration entries for.
Returns: The gmc_configs of this InstanceConfiguration. Return type: list[oci.core.models.InstanceConfigurationGmcConfigDetail]
-
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
-
source¶ Gets the source of this InstanceConfiguration. Differentiator for instance configuration. Following values are supported: * INSTANCE : All details related to instance will be passed within instanceDetails. * GMC : All details related to gpu memory cluster will be passed within gmcConfigs.
Allowed values for this property are: “INSTANCE”, “GMC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The source of this InstanceConfiguration. Return type: str
-