Changing the Compartment of an OCI Key
Use the post /v1/cckm/oci/keys/{id}/change-compartment
API to change the OCI compartment of an OCI key.
Syntax
Here, {id}
is the resource ID of the OCI key on the CipherTrust Manager. Note that the resource id
is different from key_id
on OCI. Run the get /v1/cckm/oci/keys
API to view the resource ID (id
) of the OCI key on the CipherTrust Manager.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
compartment_id | string | The OCID of the new OCI compartment for the key. |
Example Request
Example Response
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.