Update API Key
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
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
1 <= length <= 128Which of name, description, scopes, bindings, attributes and expires_at to replace. Bindings are replaced as a whole.
length <= 64length <= 512items <= 64items <= 50validate:skip opaque; size-checked in the handler
validate:skip bounded by the application's policy in the handler
date-timeResponse Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.ApiKeysService/UpdateApiKey" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"key": {
"keyId": "urn:xeonr:auth:api-key:7e0c1e52-3a0d-4a0a-9b2e-2f0f7a1b9c3d",
"name": "string",
"description": "string",
"keyPrefix": "string",
"applicationId": "string",
"applicationSlug": "string",
"applicationName": "string",
"owner": {
"kind": "API_KEY_OWNER_KIND_UNSPECIFIED",
"urn": "urn:xeonr:auth:team:0f3c9a2e-8f1b-4c2d-9e6a-1b2c3d4e5f60",
"resourceType": "bucket",
"resourceId": "bkt_01J9W3E8Q9"
},
"subject": "string",
"identityless": true,
"scopes": [
"string"
],
"effectiveScopes": [
"string"
],
"resourceMode": "API_KEY_RESOURCE_MODE_UNSPECIFIED",
"bindings": [
{
"resourceType": "string",
"resourceId": "string",
"scopes": [
"string"
],
"effectiveScopes": [
"string"
],
"label": "string"
}
],
"attributes": {
"property1": {},
"property2": {}
},
"expiresAt": "2023-01-15T01:30:15.01Z",
"lastUsedAt": "2023-01-15T01:30:15.01Z",
"revokedAt": "2023-01-15T01:30:15.01Z",
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"createdBy": "string",
"assertedBy": "string",
"version": "string",
"legacyPrefix": "string"
}
}Set API Key Policy POST
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`
Verify API Key POST
Resolves a presented key to its owner, effective scopes and bindings, checking on every call that it is not revoked or expired and that its owner is still active. A key of another application answers UNKNOWN. Callers cache the answer for cache_ttl_seconds; go-platform's authn does this for you. Service accounts only. **Required scopes:** `auth:api-keys:verify`