Archives a specified Credential. Once archived, the Credential is no longer injected into sessions but can still be queried and restored. The archived_at field in the response is set to the archive time.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /vaults/{vault_id}/credentials/{credential_id}/archive
Path parametersvault_idstring (必选)Vault ID, format vlt_xxxcredential_id string (必选)Credential ID, format cred_xxx | Request example |
Response fieldsidstringCredential ID, format cred_xxxtype stringAlways credentialvault_id stringVault ID that the Credential belongs todisplay_name stringHuman-readable name of the Credentialauth objectAuthentication information with sensitive values maskedmetadata objectCustom key-value pairsarchived_at stringArchive timestamp, ISO 8601created_at stringCreation time, ISO 8601updated_at stringLast update time, ISO 8601request_id stringUnique request identifier | Response example |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid |
| 401 | InvalidApiKey | Invalid API key provided |