k0rdent AI Docs

Retrieve service account details

Visibility: public ยท internal ( OpenAPI Custom Extension: x-visibility )

Retrieve metadata for a single service account. Only tenant administrators can access this endpoint. Non-admin callers receive 404 to prevent resource enumeration.

GET
/v1/regions/global/iam/service-accounts/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication using OAuth2/OIDC tokens

In: header

Path Parameters

id*string

Service account resource identifier.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.k0rdent.ai/v1/regions/global/iam/service-accounts/string"
{
  "selfLink": "/v1/iam/service-accounts/sa-pipeline-prod",
  "uid": "07cc67f4-45d6-494b-adac-09b5cbc7e2b5",
  "id": "sa-pipeline-prod",
  "displayName": "Production CI/CD Pipeline",
  "description": "string",
  "clientId": "sa-pipeline-prod@myorg.iam",
  "scope": "project",
  "scopeId": "proj-abc123",
  "roles": [
    "compute.deployer",
    "storage.writer"
  ],
  "status": "active",
  "createdBy": "user-admin-001",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "activeCredentialCount": 2
}
{
  "error": {
    "code": 0,
    "message": "string",
    "details": [
      {}
    ]
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "details": [
      {}
    ]
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "details": [
      {}
    ]
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "details": [
      {}
    ]
  }
}

How is this guide?

On this page

No Headings