---
title: "Get access key lifetime policy."
method: GET
path: "/v1/policies/accessKeysLifetime"
tags: ["policiesManagement"]
---

# Get access key lifetime policy.

`GET /v1/policies/accessKeysLifetime`

Get access key lifetime policy. This policy defines the maximum time an access key has once it has been created or rotated before it must be rotated. Otherwise, it will no longer be able to be used. The value 0 represents that the access keys will never expire and the time specified can be configured  by the organization.

## Response `200`

The Access Key Lifetime Policy.

- AccessKeysLifetimePolicy — Access Keys Lifetime policy.
  - `accessKeysLifetimeInDays` string, 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`

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/e4e4c7554890/schema)
