KongPrincipalIdentity
Create an identity for a principal
Changed onCreates a new identity association for the specified principal.
post/v2/directories/{directoryId}/principals/{principalId}/identities
Request
- Base URLhttps://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)
Request body
union required
Kong Principal Identity OIDC required
OR
Kong Principal Identity Auth Server Client required
OR
Kong Principal Identity CPConsumer required
OR
Kong Principal Identity Custom required
Example request
{
"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"
}Response
A principal identity
union required
Kong Principal Identity OIDCResponse required
OR
Kong Principal Identity Auth Server Client Response required
OR
Kong Principal Identity CPConsumer Response required
OR
Kong Principal Identity Custom Response required
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
- info
endpoint added
- info