Api Keys
Get API Key
Changed onFetches the details of the given API key under an organization.
Organization Owners can get any API key inside the Organization.
Organization Members and Project Creator can get any Project scoped API key for which they are Project Owner.
To learn more, see Organization, Project, and Database Access Overview.
get/v4/organizations/{organizationId}/apikeys/{ApiKeyId}
Request
- Base URLhttps://cloudapi.cloud.couchbase.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successfully fetched the API key by its Access key.
Example response
{
"id": "IS9DrRsw4KWFS72Zhbj4xmhllHvPcdCL",
"name": "Production",
"description": "API key to manage production Capella Cluster.",
"allowedCIDRs": [
"0.0.0.0/0"
],
"organizationRoles": [
"organizationMember"
],
"resources": [
{
"id": "ffffffff-aaaa-1414-eeee-000000000000",
"roles": [
"projectDataReaderWriter",
"projectManager"
]
}
],
"audit": {
"createdBy": "ffffffff-aaaa-1414-eeee-000000000000",
"createdAt": "2021-09-01T12:34:56Z",
"modifiedBy": "ffffffff-aaaa-1414-eeee-000000000000",
"modifiedAt": "2021-09-01T12:34:56Z",
"version": 1
}
}Changes
- warning
added the new
organizationBillingAdminenum value to the/response property for the response status - warning
added the new
organizationBillingViewerenum value to the/response property for the response status - warning
added the new
organizationReadOnlyenum value to the/response property for the response status
- warning