KongPrincipalIdentity

List all identities for a principal

Changed on

Retrieves a paginated list of all identities associated with the specified principal.

get/v2/directories/{directoryId}/principals/{principalId}/identities

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

directoryId, string uuid required

ID of the directory

principalId, string uuid required

Unique identifier of the principal (UUID format)

Query parameters

page, CursorPageParameters
size, integer

The number of items included per page.

after, string

Cursor param specifying the page (i.e. the next page) of data returned.

before, string

Cursor param specifying the page (i.e. the previous page) of data returned.

Determines which page of the collection to retrieve.

{
  "size": 10,
  "after": "ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ",
  "before": "ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ"
}
sort, string

The asc suffix is optional as the default sort order is ascending. The desc suffix is used to specify a descending order. Multiple sort attributes may be provided via a comma separated list. JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar desc').

Example:created_at desc

Sorts a collection of identities. Supported sort attributes are:

  • created_at
  • updated_at
  • type
filter, object
type, object

Filter using one of the following operators: eq, oeq

Filter identities by field. Supported filter field:

  • type: exact match on identity type. Accepted values: oidc, consumer, custom, auth_server_client.

Example: filter[type]="oidc"

Response

List of principal identities

ListKongPrincipalIdentities required
meta, CursorMeta required

Pagination metadata.

data, KongPrincipalIdentity[] required

Example response

{
  "meta": {
    "page": {
      "size": 10
    }
  },
  "data": [
    {
      "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
      "labels": {
        "env": "test"
      },
      "managed_by": {
        "owner": "terraform"
      },
      "created_at": "2022-11-04T20:10:06.927Z",
      "updated_at": "2022-11-04T20:10:06.927Z"
    }
  ]
}

Changes

    • info

      the type response property const value auth_server_client was added for the status

    • info

      the type response property const value control_plane_consumer was added for the status

    • info

      the type response property const value custom was added for the status

    5 more changes in this revision