Delete a a Key associated with a KeySet in a workspace

Delete a a Key associated with a KeySet using ID or name in a workspace.

delete

Path Parameters

KeySetIdstringrequired

ID of the KeySet to lookup

Example:6cc34248-50b4-4a81-9201-3bdf7a83f712

KeyIdstringrequired

ID of the Key to lookup

Example:bba22c06-a632-42be-a018-1b9ff357b5b9

workspacestring(string)required

The name of the workspace

Example:team-payments

controlPlaneIdstring(uuid)required

The UUID of your control plane. This variable is available in the Konnect manager.

Example:9524ec7d-36d9-465d-a8c5-83a3c9390458

Response

204

Successfully deleted Key or the resource didn’t exist

delete/control-planes/{controlPlaneId}/core-entities/{workspace}/key-sets/{KeySetId}/keys/{KeyId}
 
204

Get a Key associated with a KeySet in a workspace

Get a Key associated with a KeySet using ID or name in a workspace.

get

Path Parameters

KeySetIdstringrequired

ID of the KeySet to lookup

Example:6cc34248-50b4-4a81-9201-3bdf7a83f712

KeyIdstringrequired

ID of the Key to lookup

Example:bba22c06-a632-42be-a018-1b9ff357b5b9

workspacestring(string)required

The name of the workspace

Example:team-payments

controlPlaneIdstring(uuid)required

The UUID of your control plane. This variable is available in the Konnect manager.

Example:9524ec7d-36d9-465d-a8c5-83a3c9390458

Response

application/json

Successfully fetched Key

Key

A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.

* Additional properties are NOT allowed.
created_atinteger

Unix epoch when the resource was created.

descriptionstring

User-defined entity description. Konnect only field, not synced to the Gateway.

idstring

A string representing a UUID (universally unique identifier).

jwkstring

A JSON Web Key represented as a string.

kidstringrequired

A unique identifier for a key.

managed_byobject

Arbitrary JSON data for client responsible for managing the entity. Konnect only field, not synced to the Gateway.

* Additional properties are allowed.
namestring

The name to associate with the given keys.

pemobject

A keypair in PEM format.

Show Child Parameters
setobject

The id (an UUID) of the key-set with which to associate the key.

Show Child Parameters
tagsarray[string]

A string representing a tag.

updated_atinteger

Unix epoch when the resource was last updated.

x5tstring

X.509 certificate SHA-1 thumbprint.

get/control-planes/{controlPlaneId}/core-entities/{workspace}/key-sets/{KeySetId}/keys/{KeyId}
 
application/json

Upsert a Key associated with a KeySet in a workspace

Create or Update a Key associated with a KeySet using ID or name in a workspace.

put

Path Parameters

KeySetIdstringrequired

ID of the KeySet to lookup

Example:6cc34248-50b4-4a81-9201-3bdf7a83f712

KeyIdstringrequired

ID of the Key to lookup

Example:bba22c06-a632-42be-a018-1b9ff357b5b9

workspacestring(string)required

The name of the workspace

Example:team-payments

controlPlaneIdstring(uuid)required

The UUID of your control plane. This variable is available in the Konnect manager.

Example:9524ec7d-36d9-465d-a8c5-83a3c9390458

Body

application/json

Description of the Key

KeyWithoutParents

A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.

* Additional properties are NOT allowed.
created_atinteger

Unix epoch when the resource was created.

descriptionstring

User-defined entity description. Konnect only field, not synced to the Gateway.

idstring

A string representing a UUID (universally unique identifier).

jwkstring

A JSON Web Key represented as a string.

kidstringrequired

A unique identifier for a key.

managed_byobject

Arbitrary JSON data for client responsible for managing the entity. Konnect only field, not synced to the Gateway.

* Additional properties are allowed.
namestring

The name to associate with the given keys.

pemobject

A keypair in PEM format.

Show Child Parameters
setobject

The id (an UUID) of the key-set with which to associate the key.

Show Child Parameters
tagsarray[string]

A string representing a tag.

updated_atinteger

Unix epoch when the resource was last updated.

x5tstring

X.509 certificate SHA-1 thumbprint.

Response

200 application/json

Successfully upserted Key

Key

A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.

* Additional properties are NOT allowed.
created_atinteger

Unix epoch when the resource was created.

descriptionstring

User-defined entity description. Konnect only field, not synced to the Gateway.

idstring

A string representing a UUID (universally unique identifier).

jwkstring

A JSON Web Key represented as a string.

kidstringrequired

A unique identifier for a key.

managed_byobject

Arbitrary JSON data for client responsible for managing the entity. Konnect only field, not synced to the Gateway.

* Additional properties are allowed.
namestring

The name to associate with the given keys.

pemobject

A keypair in PEM format.

Show Child Parameters
setobject

The id (an UUID) of the key-set with which to associate the key.

Show Child Parameters
tagsarray[string]

A string representing a tag.

updated_atinteger

Unix epoch when the resource was last updated.

x5tstring

X.509 certificate SHA-1 thumbprint.

put/control-planes/{controlPlaneId}/core-entities/{workspace}/key-sets/{KeySetId}/keys/{KeyId}

Body

{ "id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658", "jwk": "{\"alg\":\"RSA\", \"kid\": \"42\", ...}", "kid": "42", "name": "a-key", "pem": { "private_key": "-----BEGIN", "public_key": "-----BEGIN" }, "set": { "id": "b86b331c-dcd0-4b3e-97ce-47c5a9543031" } }
 
200 application/json

List all Keys in a workspace

List all Keys in a workspace

get

Query Parameters

sizeinteger

Number of resources to be returned.

Default:100

>= 1<= 1000

offsetstring

Offset from which to return the next set of resources. Use the value of the ‘offset’ field from the response of a list operation as input here to paginate through all the resources

tagsstring

A list of tags to filter the list of resources on. Multiple tags can be concatenated using ‘,’ to mean AND or using ‘/’ to mean OR.

Example:tag1,tag2

Path Parameters

workspacestring(string)required

The name of the workspace

Example:team-payments

controlPlaneIdstring(uuid)required

The UUID of your control plane. This variable is available in the Konnect manager.

Example:9524ec7d-36d9-465d-a8c5-83a3c9390458

Response

application/json

A successful response listing Keys

dataarray[object]

A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.

Example:{"id":"d958f66b-8e99-44d2-b0b4-edd5bbf24658","jwk":"{\"alg\":\"RSA\", \"kid\": \"42\", ...}","kid":"42","name":"a-key","pem":{"private_key":"-----BEGIN","public_key":"-----BEGIN"},"set":{"id":"b86b331c-dcd0-4b3e-97ce-47c5a9543031"}}

* Additional properties are NOT allowed.
Show Child Parameters
nextstring

URI to the next page (may be null)

offsetstring

Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page

get/control-planes/{controlPlaneId}/core-entities/{workspace}/keys
 
application/json

Create a new Key in a workspace

Create a new Key in a workspace

post

Path Parameters

workspacestring(string)required

The name of the workspace

Example:team-payments

controlPlaneIdstring(uuid)required

The UUID of your control plane. This variable is available in the Konnect manager.

Example:9524ec7d-36d9-465d-a8c5-83a3c9390458

Body

application/json

Description of the new Key for creation

Key

A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.

* Additional properties are NOT allowed.
created_atinteger

Unix epoch when the resource was created.

descriptionstring

User-defined entity description. Konnect only field, not synced to the Gateway.

idstring

A string representing a UUID (universally unique identifier).

jwkstring

A JSON Web Key represented as a string.

kidstringrequired

A unique identifier for a key.

managed_byobject

Arbitrary JSON data for client responsible for managing the entity. Konnect only field, not synced to the Gateway.

* Additional properties are allowed.
namestring

The name to associate with the given keys.

pemobject

A keypair in PEM format.

Show Child Parameters
setobject

The id (an UUID) of the key-set with which to associate the key.

Show Child Parameters
tagsarray[string]

A string representing a tag.

updated_atinteger

Unix epoch when the resource was last updated.

x5tstring

X.509 certificate SHA-1 thumbprint.

Response

application/json

Successfully created Key

Key

A Key object holds a representation of asymmetric keys in various formats. When Kong or a Kong plugin requires a specific public or private key to perform certain operations, it can use this entity.

* Additional properties are NOT allowed.
created_atinteger

Unix epoch when the resource was created.

descriptionstring

User-defined entity description. Konnect only field, not synced to the Gateway.

idstring

A string representing a UUID (universally unique identifier).

jwkstring

A JSON Web Key represented as a string.

kidstringrequired

A unique identifier for a key.

managed_byobject

Arbitrary JSON data for client responsible for managing the entity. Konnect only field, not synced to the Gateway.

* Additional properties are allowed.
namestring

The name to associate with the given keys.

pemobject

A keypair in PEM format.

Show Child Parameters
setobject

The id (an UUID) of the key-set with which to associate the key.

Show Child Parameters
tagsarray[string]

A string representing a tag.

updated_atinteger

Unix epoch when the resource was last updated.

x5tstring

X.509 certificate SHA-1 thumbprint.

post/control-planes/{controlPlaneId}/core-entities/{workspace}/keys

Body

{ "id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658", "jwk": "{\"alg\":\"RSA\", \"kid\": \"42\", ...}", "kid": "42", "name": "a-key", "pem": { "private_key": "-----BEGIN", "public_key": "-----BEGIN" }, "set": { "id": "b86b331c-dcd0-4b3e-97ce-47c5a9543031" } }
 
application/json