List system keys
const url = 'https://example.com/v1/system/keys';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/system/keys \ --header 'Authorization: Bearer <token>'The operator’s system keys (kgi_sy_…): each acts in no tenant, for one service, with the scopes it was minted with. Newest first, revoked ones too. Never returns secrets. Only the full system capability (kindgi:system: the deployment’s own token, or a full system key) lists them; on a runtime serving one tenant, the deployment’s own token alone.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The system keys.
object
Example
{ "data": [ { "scopes": [ "system:tenants" ] } ]}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}A tenant’s key or session (system-principal-required), or a scoped system key (system-scope-missing; on a runtime serving one tenant, system-key-scope-not-served for one holding anything but system:license).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
POST /v1/system/keys: Mint a system keyPOST /v1/system/keys/{keyId}/revoke: Revoke a system key- Deploy on Google Cloud Run
- Error code
authz-backend-unavailable - Error code
database-busy - Error code
system-key-scope-not-served - Error code
system-principal-required - Error code
system-scope-missing - Every error code