Set or modify an agent's keypair policy
This command requests the agent set or modify its keypair policy, but does not wait for or report the result.
Note:
- The returned maintenance task can be used to query the result.
- If the maximum age of the keypair is changed to be less than its current age, keypair rotation may begin immediately, but the outcome of the returned maintenance task does not depend on that.
Request
POST https://{hostname}:{port}
/cli/agentCLIsetKeypairPolicy?{parameters}
Accept: {contentType}
Parameter | Type | Required | Description |
---|---|---|---|
agent | string | true | Name or ID of the agent |
maxAgeDays | int | true | The maximum age in days of the agent's keypair, or zero to disable rotation |
Parameter | Type | Required | Description |
---|---|---|---|
Accept |
|
true |
Related CLI command: setAgentKeypairPolicy.