ComputeCluster¶
- class oci.core.models.ComputeCluster(**kwargs)¶
Bases:
objectThe data for creating a compute cluster.
After the compute cluster is created, you can use the compute cluster’s OCID to create Instance, GPU Memory Cluster or Instance Pool resources within the compute cluster. These resources must be created in the same compartment and availability domain as the cluster.
Use COMPUTE_CLUSTER type when using placementConstraintDetails.
Attributes:
A constant which can be used with the lifecycle_state property of a ComputeCluster.
A constant which can be used with the lifecycle_state property of a ComputeCluster.
[Required] Gets the availability_domain of this ComputeCluster.
[Required] Gets the compartment_id of this ComputeCluster.
Gets the defined_tags of this ComputeCluster.
Gets the display_name of this ComputeCluster.
Gets the freeform_tags of this ComputeCluster.
[Required] Gets the id of this ComputeCluster.
[Required] Gets the lifecycle_state of this ComputeCluster.
Gets the placement_constraint_details of this ComputeCluster.
[Required] Gets the time_created of this ComputeCluster.
Gets the time_updated of this ComputeCluster.
Methods:
__init__(**kwargs)Initializes a new ComputeCluster object with values from keyword arguments.
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a ComputeCluster. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a ComputeCluster. This constant has a value of “DELETED”
- __init__(**kwargs)¶
Initializes a new ComputeCluster object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
availability_domain (str) – The value to assign to the availability_domain property of this ComputeCluster.
compartment_id (str) – The value to assign to the compartment_id property of this ComputeCluster.
display_name (str) – The value to assign to the display_name property of this ComputeCluster.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ComputeCluster.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ComputeCluster.
placement_constraint_details (oci.core.models.PlacementConstraintDetails) – The value to assign to the placement_constraint_details property of this ComputeCluster.
id (str) – The value to assign to the id property of this ComputeCluster.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this ComputeCluster. Allowed values for this property are: “ACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
time_created (datetime) – The value to assign to the time_created property of this ComputeCluster.
time_updated (datetime) – The value to assign to the time_updated property of this ComputeCluster.
- property availability_domain¶
[Required] Gets the availability_domain of this ComputeCluster. The availability domain the compute cluster is running in.
Example: Uocm:PHX-AD-1
- Returns
The availability_domain of this ComputeCluster.
- Return type
str
- property compartment_id¶
[Required] Gets the compartment_id of this ComputeCluster. The OCID of the compartment that contains the compute cluster.
- Returns
The compartment_id of this ComputeCluster.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this ComputeCluster. 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 ComputeCluster.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this ComputeCluster. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Returns
The display_name of this ComputeCluster.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this ComputeCluster. 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 ComputeCluster.
- Return type
dict(str, str)
- property id¶
[Required] Gets the id of this ComputeCluster. The OCID of the compute cluster.
- Returns
The id of this ComputeCluster.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this ComputeCluster. The current state of the compute cluster.
Allowed values for this property are: “ACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this ComputeCluster.
- Return type
str
- property placement_constraint_details¶
Gets the placement_constraint_details of this ComputeCluster.
- Returns
The placement_constraint_details of this ComputeCluster.
- Return type