Okta Privileged Access
//
Rotate all API keys
OPA roles:
- resource_admin
Rotates all API keys for a specified service user. This also sets an expiration date for the existing API keys.
Security
bearerAuth
- Production serverhttps://{org_name}.pam.okta.com/v1/teams/{team_name}/service_users/{user_name}/keys
curl -i -X POST \
'https://{org_name}.pam.okta.com/v1/teams/{team_name}/service_users/{user_name}/keys' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
The UUID of the API key
Response
{ "expires_at": "0001-01-01T00:00:00Z", "id": "ba7ffbe9-c8e4-45c9-bc07-45729711c952", "issued_at": "2020-04-07T00:00:00Z", "last_used": null, "secret": "NOvsvBg0g9mFXdHbLxEJcEFpu+LZjQSKsYezqMALq5WbGZTpUsxoS4vBqqHOO9O3xrhOq03B+oLf7bSTShbudw==" }