Skip to main content
GET
/
v1
/
regions
/
global
/
iam
/
policies
/
{id}
Retrieve policy binding details
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.k0rdent.ai/v1/regions/global/iam/policies/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "id": "policy-g8h9i1",
  "role": "<string>",
  "principal": {
    "type": "user",
    "id": "<string>"
  },
  "scope": {
    "type": "org",
    "resource": "<string>"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "selfLink": "/v1/regions/global/iam/policies/policy-g8h9i1",
  "displayName": "<string>",
  "description": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using OAuth2/OIDC tokens

Path Parameters

id
string
required

Unique policy binding identifier

Response

Policy binding details

IAM policy binding (role binding to principal at scope).

uid
string<uuid>
required

Server-generated UUID.

id
string
required

Resource identifier. Provided by the client at creation or server-generated if omitted. Must be 1-63 lowercase characters matching a-z?. Immutable after creation.

Required string length: 1 - 63
Pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
Example:

"policy-g8h9i1"

role
string
required

Role identifier

principal
object
required

User, group, or service account to bind role to

scope
object
required

Scope of the role binding

createdAt
string<date-time>
required

Policy binding creation timestamp

Server-defined URL for this resource.

Example:

"/v1/regions/global/iam/policies/policy-g8h9i1"

displayName
string

Optional human-readable name for the policy binding.

Maximum string length: 255
description
string

Optional explanation of why this binding exists.

Maximum string length: 1024
updatedAt
string<date-time>

Policy binding last update timestamp