v1

latestOpenAPI 3.0.02026-08-064311,0881.3 MB
policiesManagement

Set access keys lifetime policy.

Sets the access keys lifetime policy. By setting this policy, the time an access key has to live before it is expired or must be rotated is defined based on the period (default = never) configured for the organization. Setting the value to 0 would represent that the access keys never expire.

put/v1/policies/accessKeysLifetime

Request body

accessKeysLifetimeInDaysstring required

The number of days it will take for an access key to expire without being rotated/copied. Setting it to 0 (never) means that access keys will never expire. Valid values are: 0, 30, 45, 60, 90, 180, or 365

Example request

{
  "accessKeysLifetimeInDays": "60"
}

Response

Access Keys Lifetime policy was set successfully.

accessKeysLifetimeInDaysstring required

The number of days it will take for an access key to expire without being rotated/copied. Setting it to 0 (never) means that access keys will never expire. Valid values are: 0, 30, 45, 60, 90, 180, or 365

Example response

{
  "accessKeysLifetimeInDays": "60"
}