Skip to main content

compute_hosts

Creates, updates, deletes, gets or lists a compute_hosts resource.

Overview​

Namecompute_hosts
TypeResource
Idoci.compute.compute_hosts

Fields​

The following fields are returned by SELECT queries:

The information host details for the specific host was retrieved.

NameDatatypeDescription
idstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host
additionalDataobjectAdditional data that can be exposed to the customer. Will include raw fault codes for strategic customers
availabilityDomainstringThe availability domain of the compute host. Example: Uocm:US-CHICAGO-1-AD-2
capacityReservationIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Capacity Reserver that is currently on host
compartmentIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root compartment.
computeHostGroupIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique host group associated with the Compute Bare Metal Host.
configurationDataobjectCompute Host Configuration Data
configurationStatestringConfiguration state of the Compute Bare Metal Host. (CONFORMANT, NON_CONFORMANT, CHECKING, PRE_APPLYING, APPLYING, UNKNOWN) (x-obmcs-top-level-enum: #/definitions/ConfigurationState)
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}}
displayNamestringA user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
faultDomainstringA fault domain is a grouping of hardware and infrastructure within an availability domain. Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or Compute hardware maintenance that affects one fault domain does not affect instances in other fault domains. This field is the Fault domain of the host
firmwareBundleIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Customer-unique firmware bundle associated with the Host.
freeformTagsobjectFree-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](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"}
gpuMemoryFabricIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique GPU Memory Fabric
healthstringThe heathy state of the host (HEALTHY, UNHEALTHY)
hpcIslandIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique HPC Island
impactedComponentDetailsobjectA list that contains impacted components related to an unhealthy host. An impacted component will be a free-form structure of key values pairs that will provide more or less details based on data tiering
instanceIdstringThe public [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the Virtual Machine or Bare Metal instance
lifecycleDetailsobjectA free-form description detailing why the host is in its current state.
lifecycleStatestringThe lifecycle state of the host (AVAILABLE, OCCUPIED, PROVISIONING, REPAIR, UNAVAILABLE)
localBlockIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Local Block
networkBlockIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) for Customer-unique Network Block
platformstringThe platform of the host
recycleDetailsobjectShows details about the last recycle performed on this host.
shapestringThe shape of host
timeConfigurationCheckstring (date-time)The date and time that the compute bare metal host configuration check was updated, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
timeCreatedstring (date-time)The date and time that the compute host record was created, in the format defined by [RFC3339](https:​//tools .ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
timeUpdatedstring (date-time)The date and time that the compute host record was updated, in the format defined by [RFC3339](https:​//tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcomputeHostId, regionopc-request-idGets information about the specified compute host<br />
listselectcompartmentId, regionopc-request-id, availabilityDomain, displayName, networkResourceId, limit, page, sortBy, sortOrder, computeHostLifecycleState, computeHostHealth, computeHostGroupId, computeHostInSubtreeGenerates a list of summary host details<br />
attachinsertcomputeHostId, region, computeHostGroupIdif-match, opc-retry-token, opc-request-idAttaches the Compute BM Host to a Host group
updateupdatecomputeHostId, regionif-match, opc-request-id, opc-retry-tokenCustomer can update the some fields for ComputeHost record<br />
apply_host_configurationexeccomputeHostId, regionif-match, opc-request-id, opc-retry-tokenTriggers the asynchronous process that applies the host's target configuration
change_compartmentexeccomputeHostId, region, compartmentIdif-match, opc-request-id, opc-retry-tokenMoves a compute host into a different compartment. For information about moving resources between<br />compartments, see [Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).<br />
check_host_configurationexeccomputeHostId, regionif-match, opc-request-id, opc-retry-tokenMarks the host to be checked for conformance to its target configuration
detach_compute_host_group_hostexeccomputeHostId, region, computeHostGroupIdif-match, opc-retry-token, opc-request-idDetaches the specified bare metal host from the compute host group

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
compartmentIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
computeHostIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compute host.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
availabilityDomainstringThe name of the availability domain. Example: Uocm:PHX-AD-1
computeHostGroupIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compute host group.
computeHostHealthstringA filter to return only ComputeHostSummary resources that match the given Compute Host health State OCID exactly.
computeHostInSubtreebooleanWhen set to true, all the compartments in the tenancy are traversed and the hosts in the specified tenancy and its compartments are fetched. Default is false.
computeHostLifecycleStatestringA filter to return only ComputeHostSummary resources that match the given Compute Host lifecycle State OCID exactly.
displayNamestringA filter to return only resources that match the given display name exactly.
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
limitintegerFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50
networkResourceIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compute host network resoruce. - Customer-unique HPC island ID - Customer-unique network block ID - Customer-unique local block ID
opc-request-idstringUnique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
sortBystringThe field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. Note: In general, some "List" operations (for example, ListInstances) let you optionally filter by availability domain if the scope of the resource type is within a single availability domain. If you call one of these "List" operations without specifying an availability domain, the resources are grouped by availability domain, then sorted.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC). The DISPLAYNAME sort order is case sensitive.

SELECT examples​

Gets information about the specified compute host<br />

SELECT
id,
additionalData,
availabilityDomain,
capacityReservationId,
compartmentId,
computeHostGroupId,
configurationData,
configurationState,
definedTags,
displayName,
faultDomain,
firmwareBundleId,
freeformTags,
gpuMemoryFabricId,
health,
hpcIslandId,
impactedComponentDetails,
instanceId,
lifecycleDetails,
lifecycleState,
localBlockId,
networkBlockId,
platform,
recycleDetails,
shape,
timeConfigurationCheck,
timeCreated,
timeUpdated
FROM oci.compute.compute_hosts
WHERE computeHostId = '{{ computeHostId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Attaches the Compute BM Host to a Host group

INSERT INTO oci.compute.compute_hosts (
computeHostGroupId,
computeHostId,
region,
if-match,
opc-retry-token,
opc-request-id
)
SELECT
'{{ computeHostGroupId }}' /* required */,
'{{ computeHostId }}',
'{{ region }}',
'{{ if-match }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
RETURNING
id,
additionalData,
availabilityDomain,
capacityReservationId,
compartmentId,
computeHostGroupId,
configurationData,
configurationState,
definedTags,
displayName,
faultDomain,
firmwareBundleId,
freeformTags,
gpuMemoryFabricId,
health,
hpcIslandId,
impactedComponentDetails,
instanceId,
lifecycleDetails,
lifecycleState,
localBlockId,
networkBlockId,
platform,
recycleDetails,
shape,
timeConfigurationCheck,
timeCreated,
timeUpdated
;

UPDATE examples​

Customer can update the some fields for ComputeHost record<br />

UPDATE oci.compute.compute_hosts
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}'
WHERE
computeHostId = '{{ computeHostId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}'
AND opc-retry-token = '{{ opc-retry-token}}';

Lifecycle Methods​

Triggers the asynchronous process that applies the host's target configuration

EXEC oci.compute.compute_hosts.apply_host_configuration
@computeHostId='{{ computeHostId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
;