Skip to main content

ekms_private_endpoints

Creates, updates, deletes, gets or lists an ekms_private_endpoints resource.

Overview​

Nameekms_private_endpoints
TypeResource
Idoci.kms.ekms_private_endpoints

Fields​

The following fields are returned by SELECT queries:

Retrieves EKMS private endpoint with given id.

NameDatatypeDescription
idstringUnique identifier that is immutable
caBundlestringCABundle to validate TLS certificate of the external key manager system in PEM format
compartmentIdstringCompartment Identifier.
definedTagsobjectUsage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace": {"bar-key": "value"}}
displayNamestringEKMS Private Endpoint display name
externalKeyManagerIpstringPrivate IP of the external key manager system to connect to from the EKMS private endpoint
freeformTagsobjectSimple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
lifecycleDetailsstringA message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state.
lifecycleStatestringThe current state of the EKMS private endpoint resource. (CREATING, ACTIVE, DELETING, DELETED, FAILED)
portintegerThe port of the external key manager system
privateEndpointIpstringThe IP address in the customer's VCN for the EKMS private endpoint. This is taken from subnet
subnetIdstringSubnet Identifier
timeCreatedstring (date-time)The time the EKMS private endpoint was created. An [RFC3339](https:​//tools.ietf.org/html/rfc3339) formatted datetime string.
timeUpdatedstring (date-time)The time the EKMS private endpoint was updated. An [RFC3339](https:​//tools.ietf.org/html/rfc3339) formatted datetime string.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectekmsPrivateEndpointId, regionopc-request-idGets a specific EKMS private by identifier.
listselectcompartmentId, regionlimit, page, sortOrder, sortBy, opc-request-idReturns a list of all the EKMS private endpoints in the specified compartment.<br />
createinsertregion, subnetId, compartmentId, externalKeyManagerIp, caBundle, displayNameopc-request-id, opc-retry-tokenCreate a new EKMS private endpoint used to connect to external key manager system
updateupdateekmsPrivateEndpointId, regionif-match, opc-request-idUpdates EKMS private endpoint.
deletedeleteekmsPrivateEndpointId, regionif-match, opc-request-idDeletes EKMS private endpoint by identifier.

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 of the compartment.
ekmsPrivateEndpointIdstringUnique EKMS private endpoint identifier.
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)
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.
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​

Gets a specific EKMS private by identifier.

SELECT
id,
caBundle,
compartmentId,
definedTags,
displayName,
externalKeyManagerIp,
freeformTags,
lifecycleDetails,
lifecycleState,
port,
privateEndpointIp,
subnetId,
timeCreated,
timeUpdated
FROM oci.kms.ekms_private_endpoints
WHERE ekmsPrivateEndpointId = '{{ ekmsPrivateEndpointId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;

INSERT examples​

Create a new EKMS private endpoint used to connect to external key manager system

INSERT INTO oci.kms.ekms_private_endpoints (
caBundle,
compartmentId,
definedTags,
displayName,
externalKeyManagerIp,
freeformTags,
port,
subnetId,
region,
opc-request-id,
opc-retry-token
)
SELECT
'{{ caBundle }}' /* required */,
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}' /* required */,
'{{ externalKeyManagerIp }}' /* required */,
'{{ freeformTags }}',
{{ port }},
'{{ subnetId }}' /* required */,
'{{ region }}',
'{{ opc-request-id }}',
'{{ opc-retry-token }}'
RETURNING
id,
caBundle,
compartmentId,
definedTags,
displayName,
externalKeyManagerIp,
freeformTags,
lifecycleDetails,
lifecycleState,
port,
privateEndpointIp,
subnetId,
timeCreated,
timeUpdated
;

UPDATE examples​

Updates EKMS private endpoint.

UPDATE oci.kms.ekms_private_endpoints
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}'
WHERE
ekmsPrivateEndpointId = '{{ ekmsPrivateEndpointId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}'
RETURNING
id,
caBundle,
compartmentId,
definedTags,
displayName,
externalKeyManagerIp,
freeformTags,
lifecycleDetails,
lifecycleState,
port,
privateEndpointIp,
subnetId,
timeCreated,
timeUpdated;

DELETE examples​

Deletes EKMS private endpoint by identifier.

DELETE FROM oci.kms.ekms_private_endpoints
WHERE ekmsPrivateEndpointId = '{{ ekmsPrivateEndpointId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
;