Management API v3.0 Reference
- Capella Operational
- reference
Deprecation Notice
The Management API v3.0 is deprecated and will be removed in future. Users of the Management API v3.0 must plan to migrate to the Management API v4.0. See Manage Deployments with the Management API v4.0. |
Overview
Reference guide for the Couchbase Capella Management API v3.0, formerly known as the Public API.
You can download the specification for this REST API as an OpenAPI file to import into tools such as Postman, Insomnia, or similar: openapi.yaml.
Version information
Version : 2.0.0
Host information
https://cloudapi.cloud.couchbase.com
Resources
This section describes the operations available with this REST API. The operations are grouped in the following categories.
ClustersV3
Table of Contents
Create Cluster Audit Log Export
List Cluster Audit Log Exports
Get Cluster Audit Log Request
Configure Cluster Audit Settings
Create Cluster V3
Create cluster user
Delete Cluster V3
Deletes the database's on/off schedule
Get Cluster Audit Settings
List Filterable Audit Events
Gets the database's on/off schedule
List all clusters v3
Modifies the database's on/off schedule
Turn off selected database
Turn on the selected database
Get Cluster Info V3
Get Cluster Status V3
Update Cluster Metadata V3
Update Cluster Servers V3
Update Cluster Support Package V3
Create Cluster Audit Log Export
POST /v3/clusters/{id}/auditlogs
Description
Creates a new request for the export of audit log files that cover a user-specified time-period. The returned value includes a download ID, which can be referenced in a subsequent Get Audit Log Request call. Time stamps must be in RFC3339 format.
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Success |
|
403 |
Access forbidden |
|
405 |
Method not allowed |
|
422 |
Request validation error |
|
500 |
Internal server error |
List Cluster Audit Log Exports
GET /v3/clusters/{id}/auditlogs
Description
Returns a list of all audit log export requests. The list starts with the most recent request. The information returned for each request includes the time of the request’s creation, the start and end times of the period for which records are required, a download URL for retrieval of a compressed file that contains the log files, and the progress-status of the request. When progress-status is 'ready', the compressed file can be manually downloaded, using the download URL.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
|
404 |
Resource was not found |
|
422 |
Request validation error |
|
500 |
Internal server error |
Get Cluster Audit Log Request
GET /v3/clusters/{id}/auditlogs/{downloadId}
Description
Returns a specific audit log export request. The request is specified with a download ID, previously returned by Create Audit Log Request: the download ID must be appended to the URI of Get Audit Log Request. The information returned for the specified request includes the time of the request’s creation, the start and end times of the period for which records are required, a download URL for retrieval of a compressed file that contains the log files, and the progress-status of the request. When progress-status is 'ready', the compressed file can be manually downloaded, using the download URL.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success, job being processed |
|
404 |
Resource was not found |
|
422 |
Request validation error |
|
500 |
Internal server error |
Configure Cluster Audit Settings
POST /v3/clusters/{id}/audit
Description
Configures the audit settings for the cluster. This allows auditing to be enabled or disabled for the cluster. It also allows specific audit events to be enabled, and specific users to be disabled.
Create Cluster V3
POST /v3/clusters
Description
Creates a cluster with the given specifications and returns the id of the cluster on success
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Success |
|
403 |
Access forbidden |
|
422 |
Request validation error |
|
500 |
Internal server error |
Create cluster user
POST /v3/clusters/{id}/users
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Successfully created cluster user |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
422 |
Request validation error |
|
500 |
Internal server error |
Delete Cluster V3
DELETE /v3/clusters/{id}
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Successfully started the cluster deletion process |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
422 |
Request validation error |
|
500 |
Internal server error |
Deletes the database's on/off schedule
DELETE /v3/clusters/{id}/schedulesonoff
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Deletes the on/off schedule for the database |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
500 |
An internal server error occurred while attempting to delete the on/off schedule |
Get Cluster Audit Settings
GET /v3/clusters/{id}/audit
Description
Retrieves the current audit settings for the cluster; including a list of all enabled audit events, a list of disabled users, and the overall enablement status of the cluster.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Returns the current Audit settings for the cluster |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
500 |
Internal server error |
List Filterable Audit Events
GET /v3/clusters/{id}/auditdescriptors
Description
Returns the list of all filterable audit events for the cluster. Filterable audit events are those that can be either disabled or enabled. If a filterable audit event is currently disabled, it can be enabled through its inclusion in the enabledEventIDs field of Configure Cluster Audit Settings.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Returns the list of filterable Audit Events for the cluster. |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
500 |
Internal server error |
Gets the database's on/off schedule
GET /v3/clusters/{id}/schedulesonoff
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Returns the on/off schedule for the database |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
500 |
An internal server error occurred while attempting to get the on/off schedule |
List all clusters v3
GET /v3/clusters
Query Parameters
Name | Description | Schema |
---|---|---|
page |
Sets how many results you would like to have on each page |
Integer |
perPage |
Sets what page you would like to view |
Integer |
cloudId |
Cloud ID for filtering cloud clusters. |
UUID (uuid) |
projectId |
Project ID for filtering project clusters. |
UUID (uuid) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
|
403 |
Access forbidden |
|
422 |
Request validation error |
|
500 |
Internal server error |
Modifies the database's on/off schedule
POST /v3/clusters/{id}/schedulesonoff
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Modifies the on/off schedule for the database |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
500 |
An internal server error occurred while attempting to modify the on/off schedule |
Turn off selected database
POST /v3/clusters/{id}/off
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Successfully turning the cluster off |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
409 |
Cluster in an invalid state to turn off |
|
500 |
Internal server error whilst attempting to turn off a cluster |
Turn on the selected database
POST /v3/clusters/{id}/on
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Successfully turning the cluster on |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
409 |
Cluster in an invalid state to turn on |
|
500 |
Internal server error whilst attempting to turn on a cluster |
Get Cluster Info V3
GET /v3/clusters/{id}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
If found, returns the cluster information |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
500 |
Internal server error |
Get Cluster Status V3
GET /v3/clusters/{id}/status
Update Cluster Metadata V3
PUT /v3/clusters/{id}/meta
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Successfully updated the cluster metadata |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
422 |
Request validation error |
|
500 |
Internal server error |
Update Cluster Servers V3
PUT /v3/clusters/{id}/servers
Responses
HTTP Code | Description | Schema |
---|---|---|
202 |
Success |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
422 |
Request validation error |
|
500 |
Internal server error |
Update Cluster Support Package V3
PUT /v3/clusters/{id}/support
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Successfully updated the support package details |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
422 |
Request validation error |
|
500 |
Internal server error |
Default
Table of Contents
EventsV3
Table of Contents
List Events
GET /v3/events
Query Parameters
Name | Description | Schema |
---|---|---|
page |
Sets how many results you would like to have on each page |
Integer |
perPage |
Sets what page you would like to view |
Integer |
sortBy |
Sets order of how you would like to sort results and also the key you would like to order by |
String |
from |
Start point in the last 24 hours, RFC3339 format. Defaults to 24 hours before request. |
Date (date-time) |
to |
End datetime in the last 24 hours, RFC3339 format. Defaults to Now. |
Date (date-time) |
actor |
Filter by user UUID. Default returns all. |
UUID (uuid) |
cluster |
filter by cluster. Default is to return all. |
String |
project |
Filter by project. Default is to return all. |
String |
severity |
Filter by severity. Default is to return all. |
String |
tag |
Filter by tag(s). Default is to return all. Tags are availability, billing, maintenance, performance, security, alert. |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfully exported events |
|
403 |
Access forbidden |
|
422 |
Request validation error |
|
500 |
Internal server error |
Projects
Table of Contents
Create project
POST /v2/projects
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Success |
|
403 |
Access forbidden |
|
422 |
Request validation error |
|
500 |
Internal server error |
Delete project
DELETE /v2/projects/{id}
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
The project was deleted successfully |
|
403 |
Access forbidden |
|
404 |
Resource was not found |
|
422 |
Request validation error |
|
500 |
Internal server error |
List Projects
GET /v2/projects
Query Parameters
Name | Description | Schema |
---|---|---|
page |
Sets how many results you would like to have on each page |
Integer |
perPage |
Sets what page you would like to view |
Integer |
sortBy |
Sets order of how you would like to sort results and also the key you would like to order by |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
|
403 |
Access forbidden |
|
422 |
Request validation error |
|
500 |
Internal server error |
Status
Table of Contents
Users
Table of Contents
List Users
GET /v2/users
Query Parameters
Name | Description | Schema |
---|---|---|
page |
Sets how many results you would like to have on each page |
Integer |
perPage |
Sets what page you would like to view |
Integer |
sortBy |
Sets order of how you would like to sort results and also the key you would like to order by |
String |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Success |
|
403 |
Access forbidden |
|
422 |
Request validation error |
|
500 |
Internal server error |
Definitions
This section describes the properties consumed and returned by this REST API.
CreateProjectRequest
Cursor
CursorHrefs
CursorPages
EventResponse
Goof
ListEventsResponse
ListProjectsResponse
ListUsersResponse
ListUsersResponseItem
Project
StatusOK
User
V3BucketRoles
V3Cluster
V3ClusterAuditFilterableEvent
V3ClusterAuditFilterableEventList
V3ClusterAuditLogExport
V3ClusterAuditLogExportCreate
V3ClusterAuditLogExportDownloadID
V3ClusterAuditLogExportList
V3ClusterAuditSettings
V3ClusterAuditSettingsDisabledUsers
V3ClusterList
V3ClusterListData
V3ClusterListDataItems
V3ClusterPlace
V3ClusterServers
V3ClusterStatus
V3ClusterStatusResponse
V3ClusterStorage
V3ClusterVersion
V3ClusterVersionComponents
V3CouchbaseServices
V3CreateClusterRequest
V3CreateClusterUserRequest
V3CreateClusterUserRequestBuckets
V3Day
V3DayAll
v3DayCustom
V3DayCustomTimeFrom
V3DayCustomTimeTo
V3Environment
V3ModifyOnOffSchedule
V3Place
V3PlaceHosted
V3Provider
V3Servers
V3ServersStorage
V3StorageType
V3SupportPackage
V3SupportPackageTimezones
V3SupportPackageType
V3TurnOn
V3UpdateClusterMetaRequest
V3UpdateClusterServersRequest
V3UpdateClusterSupportRequest
V3UpdateClusterSupportRequestSupportPackage
CreateProjectRequest
Property | Schema | |
---|---|---|
name |
String |
Cursor
Property | Schema | |
---|---|---|
pages |
||
hrefs |
CursorHrefs
Property | Schema | |
---|---|---|
first |
URI (uri) |
|
last |
URI (uri) |
|
previous |
URI (uri) |
|
next |
URI (uri) |
CursorPages
Property | Schema | |
---|---|---|
page |
Current page starting from 1. |
Integer |
next |
Next page number, it is not set on the last page. |
Integer |
previous |
Previous page number, it is not set on the first page. |
Integer |
last |
Last page number. |
Integer |
perPage |
How many items are displayed in the page. |
Integer |
totalItems |
Total items found by the given query. |
Integer |
EventResponse
Property | Schema | |
---|---|---|
id |
Unique ID of the event |
String |
key |
Key defines the specific kind of Event. One from availability, billing, maintenance, performance or security |
String |
severity |
The severity of the event. One from info, warning or critical |
String |
time |
When the event happened, in RFC3339 format |
Date (date-time) |
tenantId |
The TenantID this Event belongs to |
String |
tenantName |
The name of the tenant at the time of event |
String |
cloudId |
The CloudID this Event refers to, only populated for In-VPC cluster |
String |
cloudName |
CloudName is the name of the cloud at the time of event emission. |
String |
projectId |
The ProjectID this Event refers to |
String |
projectName |
ProjectName is the name of the project at the time of event emission |
String |
clusterId |
The ClusterID this Event refers to |
String |
clusterName |
ClusterName is the name of the cluster at the time of event emission |
String |
syncGatewayId |
The SyncGatewayID this Event refers to |
String |
syncGatewayName |
SyncGatewayName is the name of the sync gateway at the time of event emission |
String |
actorId |
ActorID is the user id that initiated the request for this Event |
String |
actorName |
ActorName is the name of the associated user at the time of event emission |
String |
sessionId |
SessionID is the user that initiated the request for this Event |
String |
requestId |
RequestID string |
String |
summary |
Summary of the event |
String |
Goof
Property | Schema | |
---|---|---|
message |
String |
|
errorType |
String |
ListEventsResponse
Property | Schema | |
---|---|---|
cursor |
||
data |
EventResponse array |
ListProjectsResponse
Property | Schema | |
---|---|---|
cursor |
||
data |
Project array |
ListUsersResponse
Property | Schema | |
---|---|---|
cursor |
||
data |
ListUsersResponseItem array |
ListUsersResponseItem
Property | Schema | |
---|---|---|
id |
UUID (uuid) |
|
name |
String |
|
email |
String |
Project
Property | Schema | |
---|---|---|
id |
UUID (uuid) |
|
name |
String |
|
tenantId |
UUID (uuid) |
|
createdAt |
Creation date and time Example: |
Date (date-time) |
StatusOK
Property | Schema | |
---|---|---|
status |
String |
User
Property | Schema | |
---|---|---|
id |
UUID (uuid) |
|
name |
String |
|
email |
String |
|
mfaEnabled |
Boolean |
|
region |
String |
|
timezone |
String |
|
emailNotifications |
Boolean |
|
createdAt |
Creation date and time Example: |
Date (date-time) |
roles |
String array |
V3BucketRoles
-
data_writer
- Gives the user permission to read and write data for the bucket. *data_reader
- Gives the user read-only permission for the bucket.
Values: data_writer
, data_reader
V3Cluster
Property | Schema | |
---|---|---|
id |
String |
|
name |
String |
|
tenantId |
String |
|
projectId |
String |
|
createdAt |
Date (date-time) |
|
updatedAt |
Date (date-time) |
|
status |
String |
|
version |
||
endpointsSrv |
String |
|
environment |
String |
|
place |
||
servers |
V3ClusterServers array |
|
availabilityZones |
String array |
|
support |
String |
V3ClusterAuditFilterableEvent
Property | Schema | |
---|---|---|
id |
The event ID. |
Integer |
name |
The event name. |
String |
module |
The event module. |
String |
description |
A description of the event. |
String |
V3ClusterAuditFilterableEventList
Property | Schema | |
---|---|---|
events |
V3ClusterAuditLogExport
Property | Schema | |
---|---|---|
status |
String |
|
downloadID |
String |
|
downloadURL |
String |
|
expiration |
Date (date-time) |
|
createdAt |
Date (date-time) |
|
start |
Date (date-time) |
|
end |
Date (date-time) |
V3ClusterAuditLogExportCreate
Property | Schema | |
---|---|---|
start |
Start time of requested audit logs. Must be at least 15 minutes in the past, and not exceed 30 days in the past. |
Date (date-time) |
end |
End time of requested audit logs. Must be at least 15 minutes after the given start time. Defaults to now. |
Date (date-time) |
V3ClusterAuditLogExportDownloadID
Property | Schema | |
---|---|---|
downloadID |
String |
V3ClusterAuditLogExportList
Property | Schema | |
---|---|---|
cursor |
||
data |
V3ClusterAuditLogExport array |
V3ClusterAuditSettings
Property | Schema | |
---|---|---|
auditdEnabled |
Controls whether Audit logging is enabled or disabled. Example: |
Boolean |
enabledEventIDs |
The disabled parameter indicates which individual filterable events are disabled. Its value must be one or more filterable-event IDs. Filterable-event IDs can be retrieved by means of the GET /clusters/{id}/audit/descriptors method and URI. |
Integer array |
disabledUsers |
The disabledUsers parameter disables filterable-event auditing on a per user basis. Its value must be an array of users, specified as objects with both name and domain fields. Each user may be:
- A local user, specified in the form |
V3ClusterAuditSettingsDisabledUsers
Property | Schema | |
---|---|---|
name |
The name of the user. |
String |
domain |
The domain of the user. Values: |
String |
V3ClusterList
Property | Schema | |
---|---|---|
cursor |
||
data |
V3ClusterListData
Property | Schema | |
---|---|---|
tenantId |
String |
|
items |
V3ClusterListDataItems array |
V3ClusterListDataItems
Property | Schema | |
---|---|---|
environment |
String |
|
cloudId |
String |
|
id |
String |
|
name |
String |
|
projectId |
String |
V3ClusterPlace
Property | Schema | |
---|---|---|
provider |
String |
|
region |
String |
|
CIDR |
String |
V3ClusterServers
Property | Schema | |
---|---|---|
size |
Integer |
|
compute |
Compute instance type |
String |
services |
String array |
|
storage |
V3ClusterStatus
Values: draft
, deploying
, scaling
, upgrading
, rebalancing
, peering
, destroying
, healthy
, degraded
, deploymentFailed
, scaleFailed
, upgradeFailed
, rebalanceFailed
, peeringFailed
, destroyFailed
V3ClusterStatusResponse
Property | Schema | |
---|---|---|
status |
V3ClusterStorage
Property | Schema | |
---|---|---|
type |
String |
|
IOPS |
Integer |
|
size |
Integer |
V3ClusterVersion
Property | Schema | |
---|---|---|
name |
String |
|
components |
V3ClusterVersionComponents
Property | Schema | |
---|---|---|
cbServerVersion |
String |
V3CouchbaseServices
Values: data
, index
, query
, search
, eventing
, analytics
V3CreateClusterRequest
Property | Schema | |
---|---|---|
environment |
||
clusterName |
Name of the cluster Minimum length: |
String |
projectId |
Uniquely identifiable projectId Example: |
UUID (uuid) |
description |
A short description that describes the cluster Example: |
String |
place |
Cluster deployment location based on the value provided in environment |
|
servers |
Server specifications for creating the cluster |
V3Servers array |
supportPackage |
One from "Basic", "DeveloperPro" or "Enterprise" |
V3CreateClusterUserRequest
Property | Schema | |
---|---|---|
username |
Example: |
String |
password |
Example: |
String |
allBucketsAccess |
||
buckets |
V3CreateClusterUserRequestBuckets
Property | Schema | |
---|---|---|
name |
Example: |
String |
scope |
enter '*' for getting access to all scopes within a bucket or the scope name for getting access to a single scope Example: |
String |
access |
V3Day
One of the following:
V3DayAll
Property | Schema | |
---|---|---|
state |
Specifies whether the database is on all day or off all day. Values: |
String |
v3DayCustom
Property | Schema | |
---|---|---|
state |
Specifies that the database is on between the given times. Values: |
String |
from |
Specifies the time when the database turns on. |
|
to |
Specifies the time when the database turns off. If omitted, the database stays on for the rest of the day. |
V3DayCustomTimeFrom
Property | Schema | |
---|---|---|
hour |
Default: |
Integer |
minute |
Values: |
Integer |
V3DayCustomTimeTo
Property | Schema | |
---|---|---|
hour |
Default: |
Integer |
minute |
Values: |
Integer |
V3Environment
Values: hosted
, vpc
V3ModifyOnOffSchedule
Property | Schema | |
---|---|---|
timezone |
The timezone for scheduled on/off, in IANA format. Default: |
String |
days |
An array of seven objects, one for each day of the week, starting with Monday. Each item specifies whether the database is on all day, off all day, or on between the given times. Minimum items: |
V3Day array |
V3Place
Property | Schema | |
---|---|---|
singleAZ |
Has to be true if the supportPackage.type is equal to "Basic" Example: |
Boolean |
hosted |
cluster will be deployed in the managed couchbase capella |
V3PlaceHosted
Property | Schema | |
---|---|---|
provider |
||
region |
A valid region for the cloudProvider Example: |
String |
CIDR |
CIDR block. Example: |
String |
V3Provider
Values: aws
, azure
, gcp
V3Servers
Property | Schema | |
---|---|---|
size |
How many nodes, value >= 3, ⇐ 27. Total nodes in the cluster ⇐ 27 Minimum: |
Integer |
compute |
Compute instance type Example: |
String |
services |
Array of couchbase services to be installed on the nodes Example: |
V3CouchbaseServices array |
storage |
V3ServersStorage
Property | Schema | |
---|---|---|
type |
||
IOPS |
Required for GP3 and IO2. Min 3000 for GP3, 1000 if IO2. If storageType="GP3", max = 16000. If storageType= "IO2", max= 64000 Example: |
Integer |
size |
Min 50GB, max 16TB Minimum: |
Integer |
V3StorageType
Values: GP3
, IO2
, PD-SSD
V3SupportPackage
Property | Schema | |
---|---|---|
timezone |
||
type |
V3SupportPackageTimezones
-
ET
- Eastern Time -
GMT
- Greenwich Mean Time -
IST
- India Standard Time -
PT
- Pacific Time
Values: ET
, GMT
, IST
, PT
V3SupportPackageType
Values: Basic
, DeveloperPro
, Enterprise
V3TurnOn
Property | Schema | |
---|---|---|
turnOnAppService |
Default: |
Boolean |
V3UpdateClusterMetaRequest
Property | Schema | |
---|---|---|
name |
String |
|
description |
String |
V3UpdateClusterServersRequest
Property | Schema | |
---|---|---|
servers |
V3Servers array |
V3UpdateClusterSupportRequest
Property | Schema | |
---|---|---|
supportPackage |
One from "Basic", "DeveloperPro" or "Enterprise" |
V3UpdateClusterSupportRequestSupportPackage
Property | Schema | |
---|---|---|
timezone |
||
type |
Security
Token
Type : http
Scheme : bearer
The Management API v3.0 supports bearer HTTP authentication. You must generate the bearer token using your API access key and your API secret key.
You can get the API access key and the API secret key using the Couchbase Capella user interface.
-
To create an API key, see Get Started with the Management API v3.0.
-
To make an API call, see Make an API Call with the Management API v3.0.