Create a new Directory
Changed onCreates a new directory for grouping principals around an organizational identity boundary. Directories can be configured with metadata, labels, and control plane access restrictions.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Request body
Human-readable name of the directory, used to identify the organizational boundary. A directory name is unique within the organization.
Optional description providing additional context about the directory's purpose or usage.
List of control plane IDs authorized to make authentication requests to this directory. Maximum of 32 control planes can be specified. Use allow_all_control_planes for unrestricted access.
When set to true, all control planes within the organization can make authentication requests to this directory. This overrides the allowed_control_planes list. Defaults to false for security.
The time in seconds that a principal will be cached in memory on a running Gateway if it is successfully authenticated from this directory. Maximum is 86400 seconds (24 hours).
If a running Gateway triggers a lookup for a principal that cannot be authenticated in this directory, a negative_ttl_secs is set. The Gateway will not try to look up the principal in Konnect for negative_ttl_secs seconds.
A principal will be cached for negative_ttl_secs if it does not exist in the directory, or if the provided credentials are invalid. Maximum is 86400 seconds (24 hours).
Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, terraform).
Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (-), underscores (_), and dots (.). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
Set to enabled to enable the Token Vault for this directory. Defaults to disabled when omitted.
Example request
{
"labels": {
"env": "test"
},
"managed_by": {
"owner": "terraform"
}
}Response
A Directory
A directory represents an organizational boundary for grouping principals and managing their identities. Directories are region-specific and can control which control planes have authentication access.
Contains a unique identifier used for this resource.
Human-readable name of the directory, used to identify the organizational boundary. A directory name is unique within the organization.
Optional description providing additional context about the directory's purpose or usage.
List of control plane IDs authorized to make authentication requests to this directory. Maximum of 32 control planes can be specified. Use allow_all_control_planes for unrestricted access.
When set to true, all control planes within the organization can make authentication requests to this directory. This overrides the allowed_control_planes list. Defaults to false for security.
The time in seconds that a principal will be cached in memory on a running Gateway if it is successfully authenticated from this directory. Maximum is 86400 seconds (24 hours).
If a running Gateway triggers a lookup for a principal that cannot be authenticated in this directory, a negative_ttl_secs is set. The Gateway will not try to look up the principal in Konnect for negative_ttl_secs seconds.
A principal will be cached for negative_ttl_secs if it does not exist in the directory, or if the provided credentials are invalid. Maximum is 86400 seconds (24 hours).
Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, terraform).
Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (-), underscores (_), and dots (.). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Set to enabled to enable the Token Vault for this directory. Defaults to disabled when omitted.
Example response
{
"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
- breaking
the
managed_by/additionalPropertiesresponse property's maxLength was increased from63to127for the response status - warning
changed the pattern of the request property
managed_by/additionalPropertiesfrom^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$to^[^\s\x00-\x1F\x7F-\x9F]+$ - info
the
managed_by/additionalPropertiesrequest property's maxLength was increased from63to127
1 more change in this revision
- breaking