Set API Key Policy
Sets the calling application's key limits. A zero field restores the platform default; max_lifetime_days -1 sets no lifetime cap. Existing keys are not touched.
Service accounts only.
Required scopes: auth:api-keys:manage
JWT access token obtained via OAuth2 flow or service account
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Per-application limits. A zero field means the platform default. max_lifetime_days also takes -1: no lifetime cap for this application, whatever the platform default (AUTH-443).
Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.ApiKeysService/SetApiKeyPolicy" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "policy": {} }'{
"policy": {
"maxBindingsPerKey": 0,
"maxLiveKeysPerOwner": 0,
"maxLifetimeDays": -1,
"requireExpiry": true
},
"effective": {
"maxBindingsPerKey": 0,
"maxLiveKeysPerOwner": 0,
"maxLifetimeDays": -1,
"requireExpiry": true
}
}Revoke API Keys For Resource POST
For a product deleting a resource: revokes every key the resource owns and removes it from every key bound to it, revoking a BOUND key that is left with no bindings. Service accounts only. **Required scopes:** `auth:api-keys:manage`
Update API Key POST
Replaces the fields named in update_mask: name, description, scopes, bindings, attributes, expires_at. Bindings are replaced as a whole and re-checked as on creation; a BOUND key cannot be left without bindings. Bumps the key's version. Service accounts only. **Required scopes:** `auth:api-keys:manage`