List all the Principals of a Directory
Changed onRetrieves a paginated list of all principals within the specified directory. Results can be sorted by display_name, created_at, or updated_at.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ID of the directory
Query parameters
The number of items included per page.
Cursor param specifying the page (i.e. the next page) of data returned.
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"
}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').
Sorts a collection of principals. Supported sort attributes are:
- display_name
- created_at
- updated_at
Filter using one of the following operators: eq, contains
Filter using one of the following operators: eq, contains
Filters on the given string field value by exact match.
Filters on the given string field value by exact match.
Filter principals by field. Supported filter fields:
- display_name: exact match or contains. Example: filter[display_name]="service-account" or filter[display_name][contains]="service-account"
- description: exact match or contains. Example: filter[description]="service principal"
- id: exact match. Example: filter[id]="<uuid>"
- labels.<key>: exact match on a specific label key. Example: filter[labels.env]="prod"
Response
List of Kong Principals
Pagination metadata.
Example response
{
"meta": {
"page": {
"size": 10
}
},
"data": [
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"labels": {
"env": "test"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"managed_by": {
"owner": "terraform"
},
"active": true
}
]
}Changes
- breaking
the
data/items/managed_by/additionalPropertiesresponse property's maxLength was increased from63to127for the response status - info
the
data/items/managed_by/additionalPropertiesresponse's property pattern was changed from^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$to^[^\s\x00-\x1F\x7F-\x9F]+$for the status
- breaking
- info
added the optional property
data/items/groupsto the response with the status
2 more changes in this revision
- info