Skip to main content

hsm_partitions

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

Overview​

Namehsm_partitions
TypeResource
Idoci.kms.hsm_partitions

Fields​

The following fields are returned by SELECT queries:

The request is processed successfully. HSM information is returned as response.

NameDatatypeDescription
idstringThe OCID of the HSM resource. Each HSM resource has a unique OCID as an identifier.
compartmentIdstringThe OCID of the compartment that contains a particular HSM resource.
lifecycleStatestringA HSMCluster resource's current lifecycle state. Example: ACTIVE (ACTIVE, INACTIVE, ACTIVATING, ACTIVATION_REQUIRED, SCHEDULING_DELETION, PENDING_DELETION, DELETING, DELETED)
portInformationarrayDetails of a single portInformation item include the PortNumber (an integer used as an identifier) and the PortType (refers to either an enum value of Managementutility,Clientutility, or null)
timeCreatedstring (date-time)The date and time a HSMPartition was created, expressed in [RFC 3339](https:​//tools.ietf.org/html/rfc3339) timestamp format. Example: 2018-04-03T21:10:29.600Z
timeUpdatedstring (date-time)The date and time a HSMPartition was updated, expressed in [RFC 3339](https:​//tools.ietf.org/html/rfc3339) timestamp format. Example: 2018-04-03T21:10:29.600Z

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecthsmClusterId, hsmPartitionId, regionopc-request-id, opc-retry-tokenRetrieves HSM partition details for the specified HSM cluster.<br />
listselecthsmClusterId, regionlimit, page, opc-request-id, sortBy, sortOrder, lifecycleStateLists all HSM partitions within the specified HSM Cluster resource.<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
hsmClusterIdstringThe OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster.
hsmPartitionIdstringThe OCID of the HSM Partition. This is a unique identifier which each hsmPartition will have.
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)
lifecycleStatestringA filter that returns only resources that match the specified lifecycle state. The state value is case-insensitive.
limitintegerThe maximum number of items to return in a paginated "List" call.
opc-request-idstringUnique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service.
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 (e.g., if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
pagestringThe value of the opc-next-page response header from the previous "List" call.
sortBystringThe field to sort by. You can specify only one sort order. The default order for TIMECREATED is descending. The default order for DISPLAYNAME is ascending.
sortOrderstringThe sort order to use, either ascending (ASC) or descending (DESC).

SELECT examples​

Retrieves HSM partition details for the specified HSM cluster.<br />

SELECT
id,
compartmentId,
lifecycleState,
portInformation,
timeCreated,
timeUpdated
FROM oci.kms.hsm_partitions
WHERE hsmClusterId = '{{ hsmClusterId }}' -- required
AND hsmPartitionId = '{{ hsmPartitionId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND opc-retry-token = '{{ opc-retry-token }}'
;