Moving a Certificate
Move a certificate from one compartment to another.
If you have alarms monitoring the certificate, update the alarms to reference the new compartment. For more information, see Updating an Alarm After Moving a Resource.
Use the oci certs-mgmt certificate change-compartment command and required parameters to move a certificate from one compartment to another:
oci certs-mgmt certificate change-compartment --certificate-id <certificate_OCID> --compartment-id <new_compartment_OCID>
For example:
oci certs-mgmt certificate change-compartment --certificate-id ocid1.certificate.oc1.<region>.<unique_ID> --compartment-id ocid1.compartment.oc1..<unique_id>
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the ChangeCertificateCompartment operation to move a certificate from one compartment to another.