setAgentKeypairPolicy
Set or modify an agent's keypair policy
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.
Format
udclient [global-args...] [global-flags...]
setAgentKeypairPolicy [parameters]
Parameters
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 |
Related REST command: Set or modify an agent's keypair policy.