IBM Cloud Docs
Archiving and unarchiving key templates

Archiving and unarchiving key templates

You can archive your key templates if they are not to be used, and unarchive them later if needed. You can perform archive or unarchive a key template in Unified Key Orchestrator with the UI, or programmatically with the Unified Key Orchestrator API.

You can view archived key templates by clicking the Show archived templates icon Show archived templates icon on the table. After the template is archived, you cannot edit the distribution of keys created with the template, and you can no longer create managed keys with the archived key template. However, you can still use the keys for cryptographic operations.

Archiving key templates with the UI

To archive the key template, complete the following steps:

  1. Log in to the Hyper Protect Crypto Services instance.

  2. Click Key templates from the navigation to view all the available unarchived key templates.

  3. Locate the key template that you want to archive, click the Actions icon Actions icon, and select Archive.

    Alternatively, locate the key template that you want to archive, click the Actions icon Actions icon, and then click Show details. A side panel is displayed to show the key template properties, select Actions > Archive.

  4. Check the box for Key template will not be accessible and click Archive key template.

After the template is archived, you cannot edit the distrubution of existing key that are created with the template, and you can no longer create managed keys with this key template. However, you can activate the key template again by unarchiving it.

Archiving key templates with the API

To archive the key template through the API, complete the following steps:

  1. Retrieve your service and authentication credentials to work with key templates in the service.

  2. Archive a key template by making a POST call to the following endpoint.

    https://uko.<region>.hs-crypto.cloud.ibm.com:<port>/api/v4/templates/<id>/archive
    

    Replace <id> with the ID of your key template.

    For detailed instructions and code examples about using the API method, check out the Hyper Protect Crypto Services Unified Key Orchestrator API reference doc.

Unarchiving key templates with the UI

To unarchive the key template, complete the following steps:

  1. Log in to the Hyper Protect Crypto Services instance.

  2. Click Key templates from the navigation to view all the available unarchived key tamplates.

  3. View archived key templates by clicking the Show archived templates icon Show archived templates icon on the table.

  4. Locate the key template that you want to unarchive, click the Actions icon Actions icon, and choose Unarchive.

    Alternatively, locate the key template that you want to unarchive, click the Actions icon Actions icon, and then click Show details. A side panel is displayed to show the key template properties, select Actions > Unarchive.

  5. Click Unachive key template.

You can then use the key template to create keys and edit the key template properties again.

Unarchiving key templates with the API

To unarchive the key template through the API, complete the following steps:

  1. Retrieve your service and authentication credentials to work with key templates in the service.

  2. Unarchive a key template by making a POST call to the following endpoint.

    https://uko.<region>.hs-crypto.cloud.ibm.com:<port>/api/v4/templates/<id>/unarchive
    

    Replace <id> with the ID of your key template.

    For detailed instructions and code examples about using the API method, check out the Hyper Protect Crypto Services Unified Key Orchestrator API reference doc.

What's next