setAgentKeypairPolicy

Set or modify an agent's keypair policy

This command requests a specific agent to 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.

Format

udclient [global-args...] [global-flags...]
  setAgentKeypairPolicy [parameters]

Parameters

Table 1. 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.