Download OpenAPI specification:Download
list realms
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
{- "data": [
- {
- "id": "string",
- "name": "string",
- "ttl": 0,
- "negative_ttl": 0,
- "consumer_groups": [
- "string"
], - "allowed_control_planes": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}
], - "meta": {
- "next": "string",
- "previous": "string",
- "size": 10
}
}create realm
| name required | string |
| allowed_control_planes | Array of strings (AllowedControlPlanes) [ items unique ] List of control plane ids that are allowed to use the realm. An entry with '*' makes all control planes able to use the given realm. |
| ttl | integer >= 5 Default: 10 Time to Live in minutes of the consumer for this realm in the gateway cache. |
| negative_ttl | integer >= 5 Default: 10 Time to Live in minutes of the negative consumer for this realm in the gateway cache. |
| consumer_groups | Array of strings (ConsumerGroups) [ items unique ] |
{- "name": "string",
- "allowed_control_planes": [
- "string"
], - "ttl": 10,
- "negative_ttl": 10,
- "consumer_groups": [
- "string"
]
}{- "id": "string",
- "name": "string",
- "ttl": 0,
- "negative_ttl": 0,
- "consumer_groups": [
- "string"
], - "allowed_control_planes": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}get realm
| realmId required | string <uuid> Id of the realm |
{- "id": "string",
- "name": "string",
- "ttl": 0,
- "negative_ttl": 0,
- "consumer_groups": [
- "string"
], - "allowed_control_planes": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}update realm
| realmId required | string <uuid> Id of the realm |
| name | string |
| allowed_control_planes | Array of strings (AllowedControlPlanes) [ items unique ] List of control plane ids that are allowed to use the realm. An entry with '*' makes all control planes able to use the given realm. |
| consumer_groups | Array of strings (ConsumerGroups) [ items unique ] |
| ttl | integer >= 5 Time to Live in minutes of the consumer for this realm in the gateway cache. |
| negative_ttl | integer >= 5 Time to Live in minutes of the negative consumer for this realm in the gateway cache |
{- "name": "string",
- "allowed_control_planes": [
- "string"
], - "consumer_groups": [
- "string"
], - "ttl": 5,
- "negative_ttl": 5
}{- "id": "string",
- "name": "string",
- "ttl": 0,
- "negative_ttl": 0,
- "consumer_groups": [
- "string"
], - "allowed_control_planes": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}delete realm
| realmId required | string <uuid> Id of the realm |
| force | string Default: "false" Enum: "true" "false" If true, delete specified realm and all underlying entities (consumers/apiKeys). If false, do not allow deletion if there are underlying entities. |
{- "status": 0,
- "title": "string",
- "type": "string",
- "instance": "string",
- "detail": "string",
- "invalid_parameters": [
- {
- "field": "name",
- "rule": "required",
- "source": "body",
- "reason": "is a required field"
}
]
}list realm consumers
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
object (RealmConsumerFilterParameters) Filters Consumers in the response. |
{- "data": [
- {
- "id": "b9e81174-b5bb-4638-a3c3-8afe61a0abf8",
- "username": "string",
- "custom_id": "string",
- "type": "string",
- "tags": [
- "string"
], - "consumer_groups": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z",
- "realm_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
}
], - "meta": {
- "next": "string",
- "previous": "string",
- "size": 10
}
}list consumers
| realmId required | string <uuid> Id of the realm |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
object (ConsumerFilterParameters) Filters Consumers in the response. |
{- "data": [
- {
- "id": "b9e81174-b5bb-4638-a3c3-8afe61a0abf8",
- "username": "string",
- "custom_id": "string",
- "type": "string",
- "tags": [
- "string"
], - "consumer_groups": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}
], - "meta": {
- "next": "string",
- "previous": "string",
- "size": 10
}
}create consumer
| realmId required | string <uuid> Id of the realm |
| username required | string |
| consumer_groups | Array of strings (ConsumerGroups) [ items unique ] |
| custom_id | string |
| type | string |
| tags | Array of strings (Tags) unique |
{- "username": "string",
- "consumer_groups": [
- "string"
], - "custom_id": "string",
- "type": "string",
- "tags": [
- "string"
]
}{- "id": "b9e81174-b5bb-4638-a3c3-8afe61a0abf8",
- "username": "string",
- "custom_id": "string",
- "type": "string",
- "tags": [
- "string"
], - "consumer_groups": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}get consumer
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
{- "id": "b9e81174-b5bb-4638-a3c3-8afe61a0abf8",
- "username": "string",
- "custom_id": "string",
- "type": "string",
- "tags": [
- "string"
], - "consumer_groups": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}update consumer
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| custom_id | string |
| username | string |
| type | string |
| tags | Array of strings (Tags) unique |
| consumer_groups | Array of strings (ConsumerGroups) [ items unique ] |
{- "custom_id": "string",
- "username": "string",
- "type": "string",
- "tags": [
- "string"
], - "consumer_groups": [
- "string"
]
}{- "id": "b9e81174-b5bb-4638-a3c3-8afe61a0abf8",
- "username": "string",
- "custom_id": "string",
- "type": "string",
- "tags": [
- "string"
], - "consumer_groups": [
- "string"
], - "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}move consumer
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| target_realm_id required | string |
{- "target_realm_id": "string"
}{- "realm_id": "string"
}list keys
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[before] | string Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item before this parameter. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
{- "data": [
- {
- "id": "string",
- "created_at": "2022-11-04T20:10:06.927Z",
- "tags": [
- "string"
], - "type": "legacy"
}
], - "meta": {
- "next": "string",
- "previous": "string",
- "size": 10
}
}create key
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| type | string Default: "new" Value: "new" |
| tags | Array of strings (Tags) unique |
{- "type": "new",
- "tags": [
- "string"
]
}{- "id": "string",
- "type": "legacy",
- "secret": "string",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z",
- "tags": [
- "string"
]
}get key
| realmId required | string <uuid> Id of the realm |
| consumerId required | string Id of the of the consumer |
| keyId required | string Id of the key |
{- "id": "string",
- "created_at": "2022-11-04T20:10:06.927Z",
- "tags": [
- "string"
], - "type": "legacy"
}