Skip to main content

cluster_networks

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

Overview​

Namecluster_networks
TypeResource
Idoci.compute.cluster_networks

Fields​

The following fields are returned by SELECT queries:

The cluster network was retrieved.

NameDatatypeDescription
idstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the cluster network.
compartmentIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the cluster network.
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.
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"}
hpcIslandIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the HPC island used by the cluster network.
instancePoolsarrayThe instance pools in the cluster network. Each cluster network can have one instance pool.
lifecycleStatestringThe current state of the cluster network. (PROVISIONING, SCALING, STARTING, STOPPING, TERMINATING, STOPPED, TERMINATED, RUNNING)
networkBlockIdsarrayThe list of network block OCIDs of the HPC island.
placementConfigurationobjectThe location for where the instance pools in a cluster network will place instances.
timeCreatedstring (date-time)The date and time the resource 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 the resource 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
getselectclusterNetworkId, regionGets information about a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm).<br />
listselectcompartmentId, regiondisplayName, limit, page, sortBy, sortOrder, lifecycleStateLists the [cluster networks with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm)<br />in the specified compartment.<br />
createinsertregion, compartmentId, instancePools, placementConfigurationopc-retry-tokenCreates a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm).<br />A cluster network is a group of high performance computing (HPC), GPU, or optimized bare metal<br />instances that are connected with an ultra low-latency remote direct memory access (RDMA) network.<br />Cluster networks with instance pools use instance pools to manage groups of identical instances.<br /><br />Use cluster networks with instance pools when you want predictable capacity for a specific number of identical<br />instances that are managed as a group.<br /><br />If you want to manage instances in the RDMA network independently of each other or use different types of instances<br />in the network group, create a compute cluster by using the [CreateComputeCluster](#/en/iaas/latest/ComputeCluster/CreateComputeCluster)<br />operation.<br /><br />To determine whether capacity is available for a specific shape before you create a cluster network,<br />use the [CreateComputeCapacityReport](#/en/iaas/latest/ComputeCapacityReport/CreateComputeCapacityReport)<br />operation.<br />
updateupdateclusterNetworkId, regionopc-retry-token, if-matchUpdates a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm).<br />The OCID of the cluster network remains the same.<br />
terminatedeleteclusterNetworkId, regionif-matchDeletes (terminates) a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm).<br /><br />When you delete a cluster network, all of its resources are permanently deleted,<br />including associated instances and instance pools.<br />
change_compartmentexecclusterNetworkId, region, compartmentIdif-match, opc-request-id, opc-retry-tokenMoves a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm)<br />into a different compartment within the same tenancy. For<br />information about moving resources between compartments, see<br />[Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).<br /><br />When you move a cluster network to a different compartment, associated resources such as the instances<br />in the cluster network, boot volumes, and VNICs are not moved.<br />

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
clusterNetworkIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the cluster network.
compartmentIdstringThe [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
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)
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.
lifecycleStatestringA filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
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
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 a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm).<br />

SELECT
id,
compartmentId,
definedTags,
displayName,
freeformTags,
hpcIslandId,
instancePools,
lifecycleState,
networkBlockIds,
placementConfiguration,
timeCreated,
timeUpdated
FROM oci.compute.cluster_networks
WHERE clusterNetworkId = '{{ clusterNetworkId }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm).<br />A cluster network is a group of high performance computing (HPC), GPU, or optimized bare metal<br />instances that are connected with an ultra low-latency remote direct memory access (RDMA) network.<br />Cluster networks with instance pools use instance pools to manage groups of identical instances.<br /><br />Use cluster networks with instance pools when you want predictable capacity for a specific number of identical<br />instances that are managed as a group.<br /><br />If you want to manage instances in the RDMA network independently of each other or use different types of instances<br />in the network group, create a compute cluster by using the [CreateComputeCluster](#/en/iaas/latest/ComputeCluster/CreateComputeCluster)<br />operation.<br /><br />To determine whether capacity is available for a specific shape before you create a cluster network,<br />use the [CreateComputeCapacityReport](#/en/iaas/latest/ComputeCapacityReport/CreateComputeCapacityReport)<br />operation.<br />

INSERT INTO oci.compute.cluster_networks (
compartmentId,
definedTags,
displayName,
freeformTags,
instancePools,
placementConfiguration,
region,
opc-retry-token
)
SELECT
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}',
'{{ freeformTags }}',
'{{ instancePools }}' /* required */,
'{{ placementConfiguration }}' /* required */,
'{{ region }}',
'{{ opc-retry-token }}'
RETURNING
id,
compartmentId,
definedTags,
displayName,
freeformTags,
hpcIslandId,
instancePools,
lifecycleState,
networkBlockIds,
placementConfiguration,
timeCreated,
timeUpdated
;

UPDATE examples​

Updates a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm).<br />The OCID of the cluster network remains the same.<br />

UPDATE oci.compute.cluster_networks
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}',
instancePools = '{{ instancePools }}'
WHERE
clusterNetworkId = '{{ clusterNetworkId }}' --required
AND region = '{{ region }}' --required
AND opc-retry-token = '{{ opc-retry-token}}'
AND if-match = '{{ if-match}}'
RETURNING
id,
compartmentId,
definedTags,
displayName,
freeformTags,
hpcIslandId,
instancePools,
lifecycleState,
networkBlockIds,
placementConfiguration,
timeCreated,
timeUpdated;

DELETE examples​

Deletes (terminates) a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm).<br /><br />When you delete a cluster network, all of its resources are permanently deleted,<br />including associated instances and instance pools.<br />

DELETE FROM oci.compute.cluster_networks
WHERE clusterNetworkId = '{{ clusterNetworkId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
;

Lifecycle Methods​

Moves a [cluster network with instance pools](/iaas/Content/Compute/Tasks/managingclusternetworks.htm)<br />into a different compartment within the same tenancy. For<br />information about moving resources between compartments, see<br />[Moving Resources to a Different Compartment](/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).<br /><br />When you move a cluster network to a different compartment, associated resources such as the instances<br />in the cluster network, boot volumes, and VNICs are not moved.<br />

EXEC oci.compute.cluster_networks.change_compartment
@clusterNetworkId='{{ clusterNetworkId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;