InstanceReservationConfigDetails¶
- class oci.core.models.InstanceReservationConfigDetails(**kwargs)¶
Bases:
objectA template that contains the settings to use when defining the instance capacity configuration.
Methods:
__init__(**kwargs)Initializes a new InstanceReservationConfigDetails object with values from keyword arguments.
Attributes:
Gets the cluster_config of this InstanceReservationConfigDetails.
Gets the cluster_placement_group_id of this InstanceReservationConfigDetails.
Gets the fault_domain of this InstanceReservationConfigDetails.
[Required] Gets the instance_shape of this InstanceReservationConfigDetails.
Gets the instance_shape_config of this InstanceReservationConfigDetails.
[Required] Gets the reserved_count of this InstanceReservationConfigDetails.
- __init__(**kwargs)¶
Initializes a new InstanceReservationConfigDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
instance_shape (str) – The value to assign to the instance_shape property of this InstanceReservationConfigDetails.
instance_shape_config (oci.core.models.InstanceReservationShapeConfigDetails) – The value to assign to the instance_shape_config property of this InstanceReservationConfigDetails.
fault_domain (str) – The value to assign to the fault_domain property of this InstanceReservationConfigDetails.
cluster_config (oci.core.models.ClusterConfigDetails) – The value to assign to the cluster_config property of this InstanceReservationConfigDetails.
reserved_count (int) – The value to assign to the reserved_count property of this InstanceReservationConfigDetails.
cluster_placement_group_id (str) – The value to assign to the cluster_placement_group_id property of this InstanceReservationConfigDetails.
- property cluster_config¶
Gets the cluster_config of this InstanceReservationConfigDetails.
- Returns
The cluster_config of this InstanceReservationConfigDetails.
- Return type
- property cluster_placement_group_id¶
Gets the cluster_placement_group_id of this InstanceReservationConfigDetails. The OCID of the cluster placement group for this instance reservation capacity configuration.
- Returns
The cluster_placement_group_id of this InstanceReservationConfigDetails.
- Return type
str
- property fault_domain¶
Gets the fault_domain of this InstanceReservationConfigDetails. The fault domain to use for instances created using this capacity configuration. For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.
To retrieve a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API.
Example: FAULT-DOMAIN-1
- Returns
The fault_domain of this InstanceReservationConfigDetails.
- Return type
str
- property instance_shape¶
[Required] Gets the instance_shape of this InstanceReservationConfigDetails. The shape requested when launching instances using reserved capacity. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling
ListComputeCapacityReservationInstanceShapes.- Returns
The instance_shape of this InstanceReservationConfigDetails.
- Return type
str
- property instance_shape_config¶
Gets the instance_shape_config of this InstanceReservationConfigDetails.
- Returns
The instance_shape_config of this InstanceReservationConfigDetails.
- Return type
- property reserved_count¶
[Required] Gets the reserved_count of this InstanceReservationConfigDetails. The total number of instances that can be launched from the capacity configuration.
- Returns
The reserved_count of this InstanceReservationConfigDetails.
- Return type
int