POST /admin/agents/{id}/credentials/{cred_id}/rotate
Rotate an API key credential for a specified Agent: revoke the old credential and issue a new one. The returned api_key is shown only once.
NHI Agents `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
Agent ID |
cred_id |
path |
string |
Yes |
|
|
|
Credential ID |
Referenced Schemas
domain.AgentCredentialInfo
| Field | Type | Required | Example | Constraints | Description |
agent_id |
string |
No |
|
|
|
created_at |
string |
No |
|
|
|
cred_type |
string |
No |
|
|
|
id |
string |
No |
|
|
|
key_prefix |
string |
No |
|
|
|
name |
string |
No |
|
|
|
status |
string |
No |
|
|
|
domain.CreateAgentCredentialResult
gitee_com_linmes_authms_base_dto.DataResponse-domain_CreateAgentCredentialResult