Create
Create a new API Key.
API key names may only contain underscores and alphanumeric characters. WarpStream will assign the provided name to the new key after adding an akn_
prefix.
Create requests must provide a list of access grants to associate with the new key. For simplicity we recommend assigning each key a single access grant.
An access grant is an object with three fields: principal_kind
, resource_kind
, and resource_id
. They are subject to the following restrictions.
principal_kind
may beapplication
oragent
. These correspond to application keys and agent keys respectively.resource_kind
may be*
orvirtual_cluster
. For now,*
is only supported for grants with principal kindapplication
.virtual_cluster
is only supported for grants with principal kindagent
.resource_id
: may be*
or one of your virtual cluster IDs. Agent keys may be granted access to a single virtual cluster via its ID, or to all virtual clusters in your account by setting this field to*
.
Request
Response
Last updated