Download OpenAPI specification:
The Couchbase Capella Management API provides a set of REST APIs for creating and managing Capella instances. It enables users to perform operations such as creating new Capella instances, managing their configurations, and interacting with the Capella services. This API documentation specifies the endpoints, request and response formats, and authentication requirements for seamless integration with Couchbase Capella.
To access the Management API, you need an API key. To create an initial bootstrap API key you must use the Capella UI. Once you have created an initial bootstrap API key, you can use the Management API itself to create further API keys. To learn more, see Get Started with the Management API v4.0.
For a history of updates to the Management API, see Management API v4.0 Change Log.
API Base URL:
https://cloudapi.cloud.couchbase.com
Couchbase Capella supports sending Capella alert notifications to the most common service like ServiceNow.
Creates a new alert integration for a project.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| kind required | string Enum: "webhook" "slack" "teams" Type of alert integration. |
| name required | string <= 1024 characters Name of the alert integration (up to 1024 characters). |
required | object or object or object (RequestConfig) |
{- "kind": "slack",
- "name": "test alert 1",
- "config": {
- "webhook": {
- "method": "POST",
- "token": "QktxVUtFU1dKV1FlJBYXdnTVlRemFZdlRDZTg6eFh4dzU4JUYjqdUwwYkJoTjZSTmlzRWFIRHF0b1h4a08yazBpQjJ1bms1OW4yTUhdsfRib3IhVQ==",
- "basicAuth": {
- "user": "username80085",
- "password": "yed69khj420_i"
}, - "headers": {
- "property1": "string",
- "property2": "string"
}, - "exclude": {
- "clusters": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
], - "appServices": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
]
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "slack": {
- "botToken": "string",
- "channel": "#alerts",
- "clusterChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "clusterWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "channelWebhookUrlMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "teams": {
- "webhookUrlMappings": {
- "property1": "string",
- "property2": "string"
}, - "clusterWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}
}
}{- "id": "ffffffff-aaaa-1414-eeee-000000000000"
}Lists all the alert integrations under the project.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortBy | Array of strings Example: sortBy=name Sets the order of how you would like to sort the results and the key you would like to order by. Valid fields to sort the results are: id, name. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "data": [
- {
- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "name": "test alert 1",
- "tenantId": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectId": "ffffffff-aaaa-1414-eeee-000000000000",
- "kind": "teams",
- "configKey": "ffffffff-aaaa-1414-eeee-000000000000-alert-integration",
- "status": "healthy",
- "enabled": false,
- "config": {
- "webhook": {
- "method": "POST",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "exclude": {
- "clusters": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
], - "appServices": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
]
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "slack": {
- "channel": "#alerts",
- "clusterChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "clusterWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "teams": {
- "clusterWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}
}, - "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
}
}
], - "cursor": {
- "pages": {
- "page": 2,
- "next": 3,
- "previous": 1,
- "last": 10,
- "perPage": 10,
- "totalItems": 10
}, - "hrefs": {
}
}
}Lists Slack or Teams channels available to a bot token or existing alert integration, for populating channel mappings.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| botToken required | string Slack bot token (starts with |
| integrationId | string <uuid> ID of an existing Slack or Teams alert integration. Mutually exclusive with |
{- "botToken": "xoxb-1234567890-1234567890123-AbCdEfGhIjKlMnOpQrStUvWx",
- "integrationId": "497a18ca-284e-40c0-985d-f72be35d468e"
}{- "channels": [
- {
- "id": "C01234ABCDE",
- "name": "alerts",
- "type": "public"
}
]
}Fetches the details of the given alert integration.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| alertIntegrationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the alert integration. |
{- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "name": "test alert 1",
- "tenantId": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectId": "ffffffff-aaaa-1414-eeee-000000000000",
- "kind": "teams",
- "configKey": "ffffffff-aaaa-1414-eeee-000000000000-alert-integration",
- "status": "healthy",
- "enabled": false,
- "config": {
- "webhook": {
- "method": "POST",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "exclude": {
- "clusters": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
], - "appServices": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
]
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "slack": {
- "channel": "#alerts",
- "clusterChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "clusterWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "teams": {
- "clusterWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}
}, - "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
}
}Update the details of the given alert integration.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| alertIntegrationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the alert integration. |
| kind | string Enum: "webhook" "slack" "teams" Type of alert integration. If provided, must match the existing integration's kind. This field cannot be used to change the integration kind. |
| name | string or null <= 1024 characters Name of the alert integration (up to 1024 characters). |
| enabled | boolean Enables or disables the integration. |
object or object or object (UpdateRequestConfig) |
{- "kind": "slack",
- "name": "test alert 1",
- "enabled": true,
- "config": {
- "webhook": {
- "method": "POST",
- "token": "QktxVUtFU1dKV1FlJBYXdnTVlRemFZdlRDZTg6eFh4dzU4JUYjqdUwwYkJoTjZSTmlzRWFIRHF0b1h4a08yazBpQjJ1bms1OW4yTUhdsfRib3IhVQ==",
- "basicAuth": {
- "user": "username80085",
- "password": "yed69khj420_i"
}, - "headers": {
- "property1": "string",
- "property2": "string"
}, - "exclude": {
- "clusters": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
], - "appServices": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
]
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "slack": {
- "botToken": "string",
- "channel": "string",
- "clusterChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "clusterWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "channelWebhookUrlMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "teams": {
- "webhookUrlMappings": {
- "property1": "string",
- "property2": "string"
}, - "clusterWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}
}
}{- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "name": "test alert 1",
- "tenantId": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectId": "ffffffff-aaaa-1414-eeee-000000000000",
- "kind": "teams",
- "configKey": "ffffffff-aaaa-1414-eeee-000000000000-alert-integration",
- "status": "healthy",
- "enabled": false,
- "config": {
- "webhook": {
- "method": "POST",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "exclude": {
- "clusters": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
], - "appServices": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
]
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "slack": {
- "channel": "#alerts",
- "clusterChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "clusterWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookChannelMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "teams": {
- "clusterWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "appServiceWebhookMappings": {
- "property1": "string",
- "property2": "string"
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}
}, - "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
}
}Deletes an existing alert integration.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| alertIntegrationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the alert integration. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Tests a new alert integration for a project.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| kind required | string Enum: "webhook" "slack" "teams" Type of alert integration. |
required | object or object or object |
{- "kind": "slack",
- "config": {
- "webhook": {
- "method": "POST",
- "token": "QktxVUtFU1dKV1FlJBYXdnTVlRemFZdlRDZTg6eFh4dzU4JUYjqdUwwYkJoTjZSTmlzRWFIRHF0b1h4a08yazBpQjJ1bms1OW4yTUhdsfRib3IhVQ==",
- "basicAuth": {
- "user": "username80085",
- "password": "yed69khj420_i"
}, - "headers": {
- "property1": "string",
- "property2": "string"
}, - "exclude": {
- "clusters": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
], - "appServices": [
- "ffffffff-aaaa-1414-eeee-000000000000",
- "..."
]
}, - "customPayloads": {
- "property1": {
- "payload": { }
}, - "property2": {
- "payload": { }
}
}
}, - "slack": {
- "channelName": "#alerts",
- "channel": "#alerts",
- "botToken": "string"
},
}
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}App Services only allow trusted IP addresses to connect and use its REST APIs. Each App Service has a configurable Allowed IP list that can include up to 75 entries. Each entry can be a single IP address or an IP address space. Any IP address you add to this list can have a user-specified expiration time for temporary access, or be permanent. Capella automatically denies any connection attempts to and from an IP not in the allowed IP list.
Deletes an Allowed CIDR by ID on the specified App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| allowedCidrId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the allowed CIDR. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Lists the Allowed CIDRs for the specified App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortBy | Array of strings Example: sortBy=id Sets the order of how you would like to sort the results and the key you would like to order by. Valid fields to sort the results are: id, type, status. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "data": [
- {
- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "cidr": "1.23.45.67/32",
- "comment": "Allows access from my local developer machine",
- "expiresAt": "2023-05-14T21:49:58.465Z",
- "status": "active",
- "type": "temporary",
- "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
}
}
], - "cursor": {
- "pages": {
- "page": 2,
- "next": 3,
- "previous": 1,
- "last": 10,
- "perPage": 10,
- "totalItems": 10
}, - "hrefs": {
}
}
}Adds a trusted CIDR to the specified App Service's list of allowed CIDRs.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| cidr required | string The trusted CIDR to allow network connections from. The example represents a single IP address (i.e. a subnet mask of 32). |
| comment | string A short description of the allowed CIDR. |
| expiresAt | string <date-time> An RFC3339 timestamp determining when the allowed CIDR should expire. If this field is empty/omitted then the allowed CIDR is permanent and will never automatically expire. |
{- "cidr": "6.60.28.100/32",
- "comment": "Allows access from my local developer machine",
- "expiresAt": "2023-05-14T21:49:58.465Z"
}{- "id": "ffffffff-aaaa-1414-eeee-000000000000"
}Couchbase Capella only allows trusted IP addresses to connect to databases. Each database has a configurable Allowed IP list that can include up to 75 entries. Each entry can be a single IP address or an IP address space. Any IP address you add to this list can have a user-specified expiration time for temporary access, or be permanent. Capella automatically denies any connection attempts to and from an IP not in the allowed IP list.
Adds a trusted CIDR to a cluster's list of allowed CIDRs.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
Note that updating this resource is not supported; you must delete and recreate allowed CIDRs instead. As a result, ETags are also not supported for this resource.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| cidr required | string The trusted CIDR to allow the database connections from. The example represents a single IP address (i.e. a subnet mask of 32). |
| comment | string A short description of the allowed CIDR. |
| expiresAt | string <date-time> An RFC3339 timestamp determining when the allowed CIDR should expire. If this field is empty/omitted then the allowed CIDR is permanent and will never automatically expire. |
{- "cidr": "6.60.28.100/32",
- "comment": "Allows access from my local developer machine",
- "expiresAt": "2023-05-14T21:49:58.465Z"
}{- "id": "ffffffff-aaaa-1414-eeee-000000000000"
}Lists all of the allowed CIDRs for a given cluster.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortBy | Array of strings Example: sortBy=id Sets the order of how you would like to sort the results and the key you would like to order by. Valid fields to sort the results are: id, type, status. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "data": [
- {
- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "cidr": "1.23.45.67/32",
- "comment": "Allows access from my local developer machine",
- "expiresAt": "2023-05-14T21:49:58.465Z",
- "status": "active",
- "type": "temporary",
- "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
}
}
], - "cursor": {
- "pages": {
- "page": 2,
- "next": 3,
- "previous": 1,
- "last": 10,
- "perPage": 10,
- "totalItems": 10
}, - "hrefs": {
}
}
}Fetches the details for the specified allowed CIDR.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| allowedCidrId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the allowed CIDR. |
{- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "cidr": "1.23.45.67/32",
- "comment": "Allows access from my local developer machine",
- "expiresAt": "2023-05-14T21:49:58.465Z",
- "status": "active",
- "type": "temporary",
- "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
}
}Deletes the existing allowed CIDR.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| allowedCidrId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the allowed CIDR. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Couchbase Capella Management API uses a Bearer token mechanism for authentication; each call to the Management API has to be authenticated by API key.
Creates a new API key under an organization.
Organization Owners can create Organization and Project scoped API keys.
Project Owner and Project Creator can create project scoped keys.
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| name required | string (APIKeyName) Name of the API key. |
| description | string (APIKeyDescription) Default: "" Description for the API key. |
| expiry | number <float> (APIKeyExpiry) Default: 180 Expiry of the API key in number of days. Must be at least 0.01 days. If set to -1, the token will not expire. |
| allowedCIDRs | Array of strings (APIKeyAllowedCIDRs) Default: ["0.0.0.0/0"] List of inbound CIDRs for the API key. The system making a request must come from one of the allowed CIDRs. |
| organizationRoles required | Array of strings (APIKeyOrganizationRoles) Items Enum: "organizationOwner" "organizationMember" "projectCreator" |
Array of objects (APIKeyResources) Default: [] Resources are the resource level permissions associated with the API key. To learn more about Organization Roles, see Organization Roles. |
{- "name": "Organization Owner API Key",
- "description": "Creates an API key with a Organization Owner role.",
- "expiry": 720,
- "allowedCIDRs": [
- "8.8.8.8/32"
], - "organizationRoles": [
- "organizationOwner"
], - "resources": [ ]
}{- "id": "IS9DrRsw4KWFS72Zhbj4xmhllHvPcdCL",
- "token": "QktxVUtFU1dKV1FlMmxwbzJBYXdnTVlRemFZdlRDZTg6eFh4dzU4JUYjekJVYWZPY3lqdUwwYkJoTjZSTmlzRWFIRHF0b1h4a08yazBpQjJ1bms1OW4yTUhAenRib3IhVQ=="
}Lists all the API keys under an organization.
Organization Owners can list all the API keys inside the Organization.
Organization Members and Project Creators can list all the Project scoped API key for which they are Project Owner.
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortBy | Array of strings Example: sortBy=name Sets the order of how you would like to sort the results and the key you would like to order by. Valid fields to sort the results are: name, createdAt, expiry. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "data": [
- {
- "id": "IS9DrRsw4KWFS72Zhbj4xmhllHvPcdCL",
- "name": "Production",
- "description": "API key to manage production Capella Cluster.",
- "expiry": 180,
- "allowedCIDRs": [
- "0.0.0.0/0"
], - "organizationRoles": [
- "organizationMember"
], - "resources": [ ],
- "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
}
}
], - "cursor": {
- "pages": {
- "page": 2,
- "next": 3,
- "previous": 1,
- "last": 10,
- "perPage": 10,
- "totalItems": 10
}, - "hrefs": {
}
}
}Fetches 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.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| ApiKeyId required | string Example: ffffffffaaaa1414eeee000000000000 The ID (Access key) of the API key. |
{- "id": "IS9DrRsw4KWFS72Zhbj4xmhllHvPcdCL",
- "name": "Organization Owner API Key",
- "description": "Creates an API key with an Organization Owner role.",
- "expiry": 720,
- "allowedCIDRs": [
- "8.8.8.8/32"
], - "organizationRoles": [
- "organizationOwner"
], - "resources": [ ],
- "audit": {
- "createdBy": "ffffffff-aaaa-1414-eeee-000000000000",
- "createdAt": "2021-09-01T12:34:56Z",
- "modifiedBy": "",
- "modifiedAt": "2021-09-01T12:34:56Z",
- "version": 1
}
}Deletes the given API key under an organization.
Organization Owners can delete any API key inside the Organization.
Organization Members and Project Creator can delete any Project scoped API key for which they are Project Owner.
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| ApiKeyId required | string Example: ffffffffaaaa1414eeee000000000000 The ID (Access key) of the API key. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Rotate the secret of a given API key under an organization.
Organization Owners can rotate any API key inside the Organization.
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| ApiKeyId required | string Example: ffffffffaaaa1414eeee000000000000 The ID (Access key) of the API key. |
| secret | string A secret associated with API key. One has to follow the secret key policy, such as allowed characters and a length of 64 characters. If this field is left empty, a secret will be auto-generated. |
{- "secret": "<YOUR_SECRET_KEY_HERE>"
}{- "secretKey": "<YOUR_SECRET_KEY_HERE>",
- "token": "<YOUR_TOKEN_HERE>"
}App Endpoints represent instances of mobile applications on App Services. Each App Endpoint is linked to one bucket and synchronizes data to a set of linked collections. Users can configure App Endpoints, including setting the Access Control function, Import Filter and OpenID Connect (OIDC) authentication configuration.
Lists all the App Endpoints under a specific App Service along with their associated configurations such as Access Control function, Import Filter or user defined xattr key.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
| sortBy | Array of strings Example: sortBy=name Sets the order of how you would like to sort the results and the key you would like to order by. Valid fields to sort the results are: name, offline, bucket. |
{- "data": {
- "bucket": "bucket1",
- "name": "defaultAppEndpoint",
- "userXattrKey": "key",
- "disablePublicAllDocs": false,
- "deltaSyncEnabled": true,
- "oidc": [
- {
- "register": true,
- "clientId": "foo_client",
- "userPrefix": "fooOIDC",
- "usernameClaim": "fooAlt",
- "rolesClaim": "roles",
- "providerId": "ffffffff-aaaa-1414-eeee-000000000000",
- "isDefault": true
}, - {
- "register": true,
- "clientId": "bar_client",
- "userPrefix": "barOIDC",
- "usernameClaim": "barAlt",
- "providerId": "ffffffff-aaaa-1414-eeee-000000000000",
- "isDefault": false
}
], - "cors": {
- "headers": [
- "Content-Type",
- "X-Forwarded-Host"
], - "disabled": false,
- "maxAge": 120
}, - "scopes": {
- "_default": {
- "collections": {
- "_default": {
- "accessControlFunction": "function(doc){channel(doc.channels);}",
- "importFilter": "function(doc) { if (doc.type != 'mobile') { return false; } return true; }"
}
}
}
}, - "requireResync": {
- "_default": {
- "items": [ ]
}
},
}, - "cursor": {
- "hrefs": { },
- "pages": {
- "last": 1,
- "page": 1,
- "perPage": 5,
- "totalItems": 5
}
}
}Creates an App Endpoint within an App Service with specific configurations such as collection level Access Control function and Import Filter. If the scopes property is not included in the request body, the default scope and collection will be used. The first OpenID Connect provider given will be set as the default provider for the App Endpoint. To change the default, please use the Change App Endpoint OIDC Default Provider endpoint.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| bucket required | string The Capella Cluster backing bucket for the App Endpoint. |
Array of objects (OIDCProvider) OpenID Connect provider configuration. | |
object (CORSConfig) | |
object (ScopesConfig) Default: {"_default":{"collections":{"_default":{"accessControlFunction":"function(doc){channel(doc.channels);}","importFilter":" function(doc) { if (doc.type != 'mobile') { return false; } return true; }"}}}} | |
| name required | string App Endpoint name. Must be less than 228 characters. It can only contain lowercase letters, numbers, or the following characters |
| deltaSyncEnabled | boolean Default: false Enable/disable delta sync |
| userXattrKey | string The key of the user-extended attributes (xattr) that will be accessible from the Access control and validation function. If left empty, the feature will be disabled. |
| disablePublicAllDocs | boolean Default: false Disable the |
{- "bucket": "bucket1",
- "name": "defaultAppEndpoint",
- "userXattrKey": "key",
- "disablePublicAllDocs": false,
- "deltaSyncEnabled": true,
- "scopes": {
- "_default": {
- "collections": {
- "_default": {
- "accessControlFunction": "function(doc){channel(doc.channels);}",
- "importFilter": "function(doc) { if (doc.type != 'mobile') { return false; } return true; }"
}
}
}
}, - "cors": {
- "headers": [
- "Content-Type"
], - "disabled": true
}, - "oidc": [
- {
- "register": true,
- "clientId": "foo_client",
- "userPrefix": "fooOIDC",
- "usernameClaim": "fooAlt",
- "rolesClaim": "roles",
- "scope": [
- "openid",
- "profile",
- "email"
]
}, - {
- "register": true,
- "clientId": "bar_client",
- "userPrefix": "barOIDC",
- "usernameClaim": "barAlt"
}
]
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Fetches the details of the given App Endpoint, including operational and resync states and various configurations such as Access Control function and Import Filter.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "bucket": "bucket1",
- "name": "defaultAppEndpoint",
- "userXattrKey": "key",
- "disablePublicAllDocs": false,
- "deltaSyncEnabled": true,
- "oidc": [
- {
- "register": true,
- "clientId": "foo_client",
- "userPrefix": "fooOIDC",
- "usernameClaim": "fooAlt",
- "rolesClaim": "roles",
- "providerId": "ffffffff-aaaa-1414-eeee-000000000000",
- "isDefault": true
}
], - "cors": {
- "headers": [
- "Content-Type"
], - "maxAge": 600,
- "disabled": false
}, - "scopes": {
- "_default": {
- "collections": {
- "_default": {
- "accessControlFunction": "function(doc){channel(doc.channels);}",
- "importFilter": "function(doc) { if (doc.type != 'mobile') { return false; } return true; }"
}
}
}
}, - "requireResync": {
- "_default": {
- "items": [ ]
}
},
}Replaces a specified App Endpoint’s configurations such as Access Control function, Import Filter, Delta Sync, or user defined xattr key. The first OpenID Connect provider given will be set as the default provider for the App Endpoint. To change the default, please use the Change App Endpoint OIDC Default Provider endpoint. All fields are required, the App Endpoint and bucket names cannot be changed.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| name required | string App Endpoint name. Cannot be changed. |
| bucket required | string The Capella Cluster backing bucket for the App Endpoint. Cannot be changed. |
required | object (ScopesConfig) Default: {"_default":{"collections":{"_default":{"accessControlFunction":"function(doc){channel(doc.channels);}","importFilter":" function(doc) { if (doc.type != 'mobile') { return false; } return true; }"}}}} |
| deltaSyncEnabled required | boolean Enable or disable delta sync |
| userXattrKey required | string Key of user xattr that will be accessible from the Access control and validation function. If empty, the feature will be disabled. |
| disablePublicAllDocs required | boolean Default: false Disable the |
required | Array of objects (OIDCProvider) OpenID Connect provider configuration. |
required | object (CORSConfig) |
{- "name": "appEndpoint1",
- "bucket": "store_locations",
- "scopes": {
- "scope_1": {
- "collections": {
- "collection_1": {
- "accessControlFunction": "function(doc){channel(doc.channels);}",
- "importFilter": "function(doc) { if (doc.type != 'mobile') { return false; } return true; }"
}, - "collection_2": {
- "accessControlFunction": "function(doc){channel(doc.channels);}",
- "importFilter": "function(doc) { if (doc.type != 'mobile') { return false; } return true; }"
}
}
}
}, - "deltaSyncEnabled": true,
- "userXattrKey": "syncFnXattr",
- "disablePublicAllDocs": false,
- "oidc": [
- {
- "register": true,
- "clientId": "foo_client",
- "userPrefix": "fooOIDC",
- "usernameClaim": "fooAlt",
- "scope": [
- "openid",
- "foo"
]
}
], - "cors": {
- "headers": [
- "Content-Type"
], - "maxAge": 600,
- "disabled": false
}
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Deletes an existing App Endpoint given its name.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Lists all the collections under a specific App Endpoint along with their associated configurations such as Access Control function, Import Filter or user defined xattr key.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "scopes": {
- "_default": {
- "collections": {
- "_default": {
- "accessControlFunction": "function(doc){channel(doc.channels);}",
- "importFilter": "function(doc) { if (doc.type != 'mobile') { return false; } return true; }"
}
}
}
}
}Brings an App Endpoint online to close and reopen the connection to the backing Cluster bucket, re-establish access from the Public REST API and accept all incoming Admin API requests.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Take the database offline to run resync or to make changes without disrupting current App Endpoint operations. Clients currently connected to the App Endpoint will not be able to sync data with the Cluster while the App Endpoint is paused. This will not take the backing Cluster bucket offline. Pausing an App Endpoint that is in the progress of coming online will pause the App Endpoint after it comes online.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Fetch the App Endpoint Cross-Origin Resource Sharing (CORS) Configuration. CORS is disabled by default. For more information See Cross-Origin Resource Sharing (CORS) on App Endpoints.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "headers": [
- "Content-Type"
], - "maxAge": 600,
- "disabled": false
}Upsert the App Endpoint Cross-Origin Resource Sharing (CORS) Configuration. CORS is disabled by default. For more information See Cross-Origin Resource Sharing (CORS) on App Endpoints.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| origin required | Array of strings List of allowed origins, use ['*'] to allow access from everywhere. This is required when CORS is enabled (i.e. disabled is false). |
| loginOrigin | Array of strings List of allowed login origins |
| headers | Array of strings List of allowed headers |
| maxAge | integer Default: 5 Specifies the duration (in seconds) for which the results of a preflight request can be cached. |
| disabled | boolean Disable CORS headers in all App Endpoint responses. When true, no other CORS configuration properties should be provided. |
{- "headers": [
- "Content-Type"
], - "maxAge": 600,
- "disabled": false
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Retrieves the Access Control and Validation function for the given keyspace.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointKeyspace required | string Example: endpoint1.scope1.collection1 A specific collection denoted by the App Endpoint name, the scope name and collection name separated by a period, for example "endpoint1.scope1.collection1". If only an App Endpoint name is provided this will be interpreted as "endpoint1._default._default". If only an App Endpoint name and collection name are provided these will interpreted as a named collection within the default scope, for example "endpoint1.collection1" will be interpreted as "endpoint1._default.collection1". |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Used to upsert a custom Access Control and Validation function for the given keyspace. This is a Javascript function specified at a keyspace, where a user’s read/write access is defined for documents in that particular keyspace. Every document mutation is processed by this function. If an Access Control function is not explicitly defined, a default is applied. Read more.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointKeyspace required | string Example: endpoint1.scope1.collection1 A specific collection denoted by the App Endpoint name, the scope name and collection name separated by a period, for example "endpoint1.scope1.collection1". If only an App Endpoint name is provided this will be interpreted as "endpoint1._default._default". If only an App Endpoint name and collection name are provided these will interpreted as a named collection within the default scope, for example "endpoint1.collection1" will be interpreted as "endpoint1._default.collection1". |
All mutations in this collection are processed by this Javascript function
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Deletes the Access Control and Validation function for the given keyspace.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointKeyspace required | string Example: endpoint1.scope1.collection1 A specific collection denoted by the App Endpoint name, the scope name and collection name separated by a period, for example "endpoint1.scope1.collection1". If only an App Endpoint name is provided this will be interpreted as "endpoint1._default._default". If only an App Endpoint name and collection name are provided these will interpreted as a named collection within the default scope, for example "endpoint1.collection1" will be interpreted as "endpoint1._default.collection1". |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Retrieves the Import Filter for the given keyspace.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointKeyspace required | string Example: endpoint1.scope1.collection1 A specific collection denoted by the App Endpoint name, the scope name and collection name separated by a period, for example "endpoint1.scope1.collection1". If only an App Endpoint name is provided this will be interpreted as "endpoint1._default._default". If only an App Endpoint name and collection name are provided these will interpreted as a named collection within the default scope, for example "endpoint1.collection1" will be interpreted as "endpoint1._default.collection1". |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Upserts the Import Filter for the given keyspace. By default, there is no import filter and all documents are imported. Import Filters identify the subset of documents eligible to be replicated by App services based on user-defined requirements. This subset is applied to all future mutations. Once the document has been imported and processed by the App Endpoint, changing the Import Filter will not remove it, even if the updated import filters would prevent newer mutations or iterations of the document from getting imported. Read more.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointKeyspace required | string Example: endpoint1.scope1.collection1 A specific collection denoted by the App Endpoint name, the scope name and collection name separated by a period, for example "endpoint1.scope1.collection1". If only an App Endpoint name is provided this will be interpreted as "endpoint1._default._default". If only an App Endpoint name and collection name are provided these will interpreted as a named collection within the default scope, for example "endpoint1.collection1" will be interpreted as "endpoint1._default.collection1". |
The Javascript function used to specify the documents in this collection that are to be imported by the App Endpoint. By default, all documents in corresponding collection are imported.
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Deletes the Import Filter for the given keyspace.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointKeyspace required | string Example: endpoint1.scope1.collection1 A specific collection denoted by the App Endpoint name, the scope name and collection name separated by a period, for example "endpoint1.scope1.collection1". If only an App Endpoint name is provided this will be interpreted as "endpoint1._default._default". If only an App Endpoint name and collection name are provided these will interpreted as a named collection within the default scope, for example "endpoint1.collection1" will be interpreted as "endpoint1._default.collection1". |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Creates an OIDC provider for the specified App Endpoint. The first OIDC provider will automatically be set as the default OIDC provider. All client requests will use the default OIDC provider, unless the OIDC provider for the request is explicitly specified on authentication. See more here.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| issuer required | string The URL for the OpenID Connect issuer. |
| register | boolean Indicates whether to register a new App Service user account when a user logs in using OpenID Connect. |
| clientId required | string The OpenID Connect provider client ID. |
| userPrefix | string Username prefix for all users created for this provider |
| discoveryUrl | string The URL for the non-standard discovery endpoint. |
| usernameClaim | string Allows a different OpenID Connect field to be specified instead of the Subject (sub). |
| rolesClaim | string If set, the value(s) of the given OpenID Connect authentication token claim will be added to the user's roles. The value of this claim in the OIDC token must be either a string or an array of strings, any other type will result in an error. |
| scope | Array of strings Default: ["openid","email"] The scope sent for the OpenID Connect request. |
{- "register": true,
- "clientId": "foo_client",
- "userPrefix": "fooOIDC",
- "usernameClaim": "fooAlt"
}{- "providerId": "ffffffff-aaaa-1414-eeee-000000000000"
}List OpenID Connect (OIDC) Providers configured on an App Endpoint.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "data": [
- {
- "register": true,
- "clientId": "foo_client",
- "userPrefix": "fooOIDC",
- "usernameClaim": "fooAlt",
- "rolesClaim": "roles",
- "providerId": "ffffffff-aaaa-1414-eeee-000000000000",
- "isDefault": true
}, - {
- "register": true,
- "clientId": "bar_client",
- "userPrefix": "barOIDC",
- "usernameClaim": "barAlt",
- "providerId": "ffffffff-aaaa-1414-eeee-000000000000",
- "isDefault": false
}
]
}Fetches an OIDC provider by ID for the specified App Endpoint.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| OIDCProviderId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the OpenID Connect Provider. |
{- "issuer": "foo",
- "register": true,
- "clientId": "foo_client",
- "userPrefix": "fooOIDC",
- "usernameClaim": "fooAlt",
- "isDefault": true
}Updates an OIDC provider for the specified App Endpoint.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| OIDCProviderId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the OpenID Connect Provider. |
| issuer required | string The URL for the OpenID Connect issuer. |
| register | boolean Indicates whether to register a new App Service user account when a user logs in using OpenID Connect. |
| clientId required | string The OpenID Connect provider client ID. |
| userPrefix | string Username prefix for all users created for this provider |
| discoveryUrl | string The URL for the non-standard discovery endpoint. |
| usernameClaim | string Allows a different OpenID Connect field to be specified instead of the Subject (sub). |
| rolesClaim | string If set, the value(s) of the given OpenID Connect authentication token claim will be added to the user's roles. The value of this claim in the OIDC token must be either a string or an array of strings, any other type will result in an error. |
| scope | Array of strings Default: ["openid","email"] The scope sent for the OpenID Connect request. |
{- "register": true,
- "clientId": "foo_client",
- "userPrefix": "fooOIDC",
- "usernameClaim": "fooAlt"
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Deletes an OIDC provider for the specified App Endpoint. Deleting the default provider will error unless it is the only provider. Before deleting the default provider, you must set a new provider as default or have no other providers.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| OIDCProviderId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the OpenID Connect Provider. |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Updates the default OIDC provider for the specified App Endpoint. All client requests will use the default OIDC provider, unless the OIDC provider for the request is explicitly specified. See more here.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| providerId required | string |
{- "providerId": "ffffffff-aaaa-1414-eeee-000000000000"
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Fetches the Resync status of the given App Endpoint. If no resync operation was triggered, the response will say the status is completed with 0 values for other properties.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "state": "running",
- "startTime": "2023-10-12T07:20:50.52Z",
- "lastError": "string",
- "docsChanged": 100,
- "docsProcessed": 500,
- "docsTargeted": 1000,
- "docsErrored": 10,
- "collections_processing": {
- "scope1": [
- "collection_1",
- "collection_2"
]
}
}Initialises the Resync operation for the given collections. By default, all collections that require resync will be resynced unless they are specified in the scopes property, in which case only the specified collections that require resync will be resynced.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
object |
{- "scopes": {
- "scope1": [
- "collection1",
- "collection2"
]
}
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Stops the Resync operation. When stopping resync, it will be stopped for all collections being processed. In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}App Services is a fully managed application backend designed to provide data synchronization between mobile or IoT applications running Couchbase Lite and your Couchbase Capella database.
Creates a new App Service.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| name required | string <= 256 characters Name of the cluster (up to 256 characters). | ||||||||||||
| description | string A short description of the App Service. | ||||||||||||
| nodes | integer Number of nodes configured for the App Service. Number of nodes configured for the App Service. The number of nodes can range from 2 to 12. | ||||||||||||
object (AppServiceCompute) The CPU and RAM configuration of the App Service. The supported combinations are:
| |||||||||||||
| version | string The version of the App Service server. If left empty, it will be defaulted to the latest available version. | ||||||||||||
| loadBalancerCidr | string^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$... Optional. Pins the CIDR block used for the App Service load balancer subnet. Supported for Azure App Services only and rejected for other providers. When omitted, the CIDR is allocated dynamically. |
{- "name": "MyAppSyncService",
- "description": "My app sync service.",
- "nodes": 2,
- "compute": {
- "cpu": 2,
- "ram": 4
}, - "version": "3.0",
- "loadBalancerCidr": "10.1.0.0/24"
}{- "id": "ffffffff-aaaa-1414-eeee-000000000000"
}Lists all the clusters under the organization.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
Returned set of clusters is reduced to what the caller has access to view. To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortBy | Array of strings Example: sortBy=name Sets the order of how you would like to sort the results and the key you would like to order by. Valid fields to sort the results are: name, id, description. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
| projectId | string <uuid> Example: projectId=ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
{- "data": [
- {
- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "name": "My App Service",
- "description": "Description of the App Service.",
- "cloudProvider": "aws",
- "nodes": 2,
- "compute": {
- "cpu": 2,
- "ram": 4
}, - "clusterId": "ffffffff-aaaa-1414-eeee-000000000000",
- "currentState": "deploying",
- "version": "3.141.5",
- "plan": "basic",
- "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
}, - "loadBalancerCidr": "10.1.0.0/24"
}
], - "cursor": {
- "pages": {
- "page": 2,
- "next": 3,
- "previous": 1,
- "last": 10,
- "perPage": 10,
- "totalItems": 10
}, - "hrefs": {
}
}
}Fetches the details of the given App Service.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "name": "My App Service",
- "description": "Description of the App Service.",
- "cloudProvider": "aws",
- "nodes": 2,
- "compute": {
- "cpu": 2,
- "ram": 4
}, - "clusterId": "ffffffff-aaaa-1414-eeee-000000000000",
- "currentState": "deploying",
- "version": "3.141.5",
- "plan": "basic",
- "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
}, - "loadBalancerCidr": "10.1.0.0/24"
}Updates an existing App Service.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| If-Match | string Example: 12 A precondition header that specifies the entity tag of a resource. |
| nodes required | integer Number of nodes configured for the App Service. The number of nodes can range from 2 to 12. | ||||||||||||
required | object (AppServiceCompute) The CPU and RAM configuration of the App Service. The supported combinations are:
| ||||||||||||
| loadBalancerCidr | string^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$... Optional and immutable. The CIDR block pinned for the App Service load balancer subnet at creation time (Azure only). It cannot be changed after creation; supplying a different value returns a validation error. |
{- "nodes": 2,
- "compute": {
- "cpu": 2,
- "ram": 4
}, - "loadBalancerCidr": "10.1.0.0/24"
}{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Deletes an existing App Service.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Turn App Service on. App Services can only be turned on when the linked cluster is turned on and healthy.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Turn App Service off.
Turn off an App Service to temporarily deactivate it and reduce its consumption of compute resources. The App Service itself and its related infrastructure will be removed once turned off.
Any private endpoints configured on App Services will remain and will be available when App Service is turned back on. You will continue to incur costs for any private endpoints configured on App Services. If you don’t wish to incur these costs, you must explicitly disable private endpoint service and reinstate private endpoints when App Service is turned back on again.
Free tier App Service can only be turned off when the linked free tier cluster is turned off.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Creates an Admin User on the specified App Service.
The user can either be granted access to all App Endpoints or to specific App Endpoints by listing them in the endpoints field.
Currently, the user will be granted admin access to all App Endpoints in a bucket (that is currently associated with the App Endpoint(s) specified in the endpoints field), including ones that are created in future. An option to grant access to specific App Endpoints in a bucket will be available in the future.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| name required | string The name of the user. |
| password required | string The password of the user. |
| enableBucketLevelAccess | boolean Default: true When set to true, the user will automatically be granted admin access to all App Endpoints in a bucket (that is currently associated with the App Endpoint(s) specified in the endpoints field), including ones that are created in future. The flag defaults to true. Currently, the only supported value is true, which means that the user will have admin access to all App Endpoints in this bucket. In the future, there will be the option to set this to false. |
required | UpdateAppServiceAdminUserAllEndpointsRequest (object) or UpdateAppServiceAdminUserEndpointList (object) |
{- "name": "user1",
- "password": "password",
- "enableBucketLevelAccess": false,
- "access": {
- "endpoints": [
- "endpoint1",
- "endpoint2"
]
}
}{- "id": "eeeeeeee-aaaa-1414-eeee-999999999999"
}List the admin users for the specified App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "data": [
- {
- "id": "eeeeeeee-aaaa-1414-eeee-999999999999",
- "tenantId": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectId": "dddddddd-cccc-1414-eeee-77777777777",
- "clusterId": "gggggggg-zzzz-1414-eeee-55555555555",
- "name": "admin",
- "endpoints": [
- "appEndpoint1",
- "appEndpoint2"
], - "accessAllEndpoints": "false,",
- "audit": {
- "createdBy": "ffffffff-aaaa-1414-eeee-000000000000",
- "createdAt": "2024-09-01T12:34:56Z",
- "modifiedBy": "",
- "modifiedAt": "2024-09-01T12:34:56Z",
- "version": 1
}
}, - {
- "id": "eeeeeeee-gggg-1456-tttt-999999999999",
- "tenantId": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectId": "dddddddd-cccc-1414-eeee-77777777777",
- "clusterId": "gggggggg-zzzz-1414-eeee-55555555555",
- "name": "admin",
- "endpoints": [
- "appEndpoint1",
- "appEndpoint2"
], - "accessAllEndpoints": false,
- "audit": {
- "createdBy": "ffffffff-aaaa-1414-eeee-000000000000",
- "createdAt": "2024-09-01T12:34:56Z",
- "modifiedBy": "",
- "modifiedAt": "2024-09-01T12:34:56Z",
- "version": 1
}
}
], - "cursor": {
- "pages": {
- "page": 2,
- "next": 3,
- "previous": 1,
- "last": 10,
- "perPage": 10,
- "totalItems": 10
}, - "hrefs": {
}
}
}Updates the Admin User's access to App Endpoints on the specified App Service.
The update operation can either grant access to all App Endpoints or to specific App Endpoints by listing them in the endpoints field.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| userId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the database credential. |
| endpoints required | Array of strings The list of App Endpoints that the user has access to. |
{- "endpoints": [
- "endpoint1",
- "endpoint2"
]
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Deletes the Admin User.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| userId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the database credential. |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Fetches the Admin User.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| userId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the database credential. |
{- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "tenantId": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectId": "ffffffff-aaaa-1414-eeee-000000000000",
- "clusterId": "ffffffff-aaaa-1414-eeee-000000000000",
- "name": "user1",
- "endpoints": [
- "appEndpoint1",
- "appEndpoint2"
], - "accessAllEndpoints": false,
- "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
}
}Opt an App Service back in to system metadata collection (metadata isolation) after
a support-initiated opt-out. Only the value true is accepted, and opting back in
is permanent: once enabled the App Service cannot be opted out again. Requires App
Services version 4.1 or later.
New App Services are opted in automatically and existing App Services are opted in on upgrade to 4.1, so this endpoint is only useful after a previous opt-out via Couchbase support.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| enabled required | boolean Value: true Whether metadata isolation is enabled on the App Service. Only |
{- "enabled": true
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Retrieve the current metadata isolation state for the App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "enabled": true
}The public certificate is a trusted Certificate Authority (CA) signed certificate. You can copy or download the endpoint’s SSL public certificate to bundle into your mobile application. Pinning your certificate to your App is not recommended as it can increase maintenance overhead and downtime risks. For more information, see here.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "certificate": "-----BEGIN CERTIFICATE-----\nMIIDFTCCAf2gAwIBAgI[...]CSYBWaK0ofivA==\n-----END CERTIFICATE-----\n"
}Lists the Admin Users that have access to the specified App Endpoint.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "data": [
- {
- "id": "eeeeeeee-aaaa-1414-eeee-999999999999",
- "tenantId": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectId": "dddddddd-cccc-1414-eeee-77777777777",
- "clusterId": "gggggggg-zzzz-1414-eeee-55555555555",
- "name": "admin",
- "endpoints": [
- "appEndpoint1",
- "appEndpoint2"
], - "accessAllEndpoints": "false,",
- "audit": {
- "createdBy": "ffffffff-aaaa-1414-eeee-000000000000",
- "createdAt": "2024-09-01T12:34:56Z",
- "modifiedBy": "",
- "modifiedAt": "2024-09-01T12:34:56Z",
- "version": 1
}
}, - {
- "id": "eeeeeeee-gggg-1456-tttt-999999999999",
- "tenantId": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectId": "dddddddd-cccc-1414-eeee-77777777777",
- "clusterId": "gggggggg-zzzz-1414-eeee-55555555555",
- "name": "admin",
- "endpoints": [
- "appEndpoint1",
- "appEndpoint2"
], - "accessAllEndpoints": false,
- "audit": {
- "createdBy": "ffffffff-aaaa-1414-eeee-000000000000",
- "createdAt": "2024-09-01T12:34:56Z",
- "modifiedBy": "",
- "modifiedAt": "2024-09-01T12:34:56Z",
- "version": 1
}
}
], - "cursor": {
- "pages": {
- "page": 2,
- "next": 3,
- "previous": 1,
- "last": 10,
- "perPage": 10,
- "totalItems": 10
}, - "hrefs": {
}
}
}Users can configure audit log support on Capella App Services and can export audit logs from cloud blob storage to an AWS S3 bucket. Users can retrieve audit logs from a pre-signed download URL. Logs are retained for 30 days.
Enable or disable Audit Logging for an App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| auditEnabled required | boolean Determines whether audit logging is enabled or not on the App Service. |
{- "auditEnabled": true
}{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Retrieves the audit logging state for a specific App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "auditEnabled": true
}Retrieves all audit log event ids, their descriptions and enabled status for an App Endpoint. The list of filterable event IDs can be specified while configuring audit logging for the App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "events": {
- "53290": {
- "description": "Admin API user successfully authenticated",
- "enabled": true,
- "filterable": true,
- "name": "Admin API user authenticated"
}, - "53292": {
- "description": "Admin API user failed to authorize",
- "enabled": true,
- "filterable": true,
- "name": "Admin API user authorization failed"
}
}
}Updates the audit logging configuration for a specific App Endpoint. Operations performed by disabled users and roles are excluded from audit logs. See a list of event IDs by calling /auditLogEvents, add event IDs to the enabledEventIds field to enable audit logging for those events.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| auditEnabled | boolean Determines whether audit logging is enabled |
Array of objects | |
Array of objects (DisabledUserRoles) | |
Array of objects (DisabledUserRoles) |
{- "auditEnabled": true,
- "enabledEventIds": [
- {
- "id": 0
}
], - "disabledUsers": [
- {
- "domain": "string",
- "name": "string"
}
], - "disabledRoles": [
- {
- "domain": "string",
- "name": "string"
}
]
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Retrieves the audit logging configuration for a specific App Endpoint.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "auditEnabled": true,
- "enabledEventIds": [
- {
- "id": 0
}
], - "disabledUsers": [
- {
- "domain": "string",
- "name": "string"
}
], - "disabledRoles": [
- {
- "domain": "string",
- "name": "string"
}
]
}Sets up audit log streaming for a specific App Service with filters. If streamingEnabled is true log streaming will begin.
Ensure you have provided collector credentials if you wish to begin streaming; log streaming cannot be enabled without credentials. Refer to schema below to see required fields for your log collection provider. Providers include Datadog, Sumo Logic, Grafana Loki, Elasticsearch (versions 8 and newer only) and generic HTTP. To start or resume streaming, set streamingEnabled to true while providing the rest of the log collector config.
To disable log streaming and remove the log streaming config including credentials, set streamingEnabled to false and leave the rest of the payload empty.
To pause log streaming, set streamingEnabled to false while providing the rest of the log collector config.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| streamingEnabled required | boolean Determines whether audit log streaming is enabled or not. To start or resume streaming, set this to true. To disable or pause log streaming, set this to false. |
| disabledAppEndpoints | Array of strings List of App Endpoints to be excluded from audit log streaming. |
| outputType | string Enum: "datadog" "generic_http" "sumologic" "loki" "elastic" "splunk" "dynatrace" The type of output for the audit log streaming. Required when starting, resuming or pausing log streaming. |
datadog (object) or sumologic (object) or generic_http (object) or elastic (object) or loki (object) or splunk (object) or dynatrace (object) Secrets for audit log streaming configuration. Required when starting, resuming or pausing log streaming. |
{- "streamingEnabled": true,
- "disabledAppEndpoints": [
- "string"
], - "outputType": "datadog",
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}To start or resume streaming, set streamingEnabled to true. To pause log streaming, set streamingEnabled to false.
If log streaming is paused we will retain the collector credentials. To clear these use the PUT request.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| op required | string Value: "update" Type of operation. |
| path required | string Path of resource that needs to be updated. |
| value required | boolean Determines whether audit log streaming is enabled or not. |
{- "op": "update",
- "path": "/streamingEnabled",
- "value": true
}{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Retrieves the current state of audit log streaming for a specific App Service, as well as the output type and enabled App endpoints.
The audit log streaming states are:
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "streamingEnabled": true,
- "logStreamingState": "enabling",
- "disabledAppEndpoints": [
- "string"
], - "outputType": "datadog"
}Initiates an audit log export for a specific App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| start required | string <date-time> Specifies the audit log's start date and time. |
| end required | string <date-time> Specifies the audit log's end date and time. |
{- "start": "2022-09-04T00:56:07.000Z",
- "end": "2022-09-05T04:56:07.000Z"
}{- "exportId": "ffffffff-aaaa-1414-eeee-000000000000"
}Retrieves a list of all audit log export jobs for an App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
| sortDirection | string Enum: "asc" "desc" Example: sortDirection=asc The order in which the items will be sorted. |
{- "data": [
- {
- "id": "920e7b93-28c7-421b-993b-9fffecfd3598",
- "download_expires": "2024-08-08T13:43:48.420487299Z",
- "status": "Ready",
- "appServiceId": "01071798-23e5-4ec6-b814-13bebef70572",
- "tenantId": "333d2ad2-1408-405e-9995-68338d20ab5c",
- "clusterId": "71dd1cb2-34ac-43ae-a503-b2a9202f02d4",
- "audit": {
- "createdBy": "d4fa667c-206a-4916-9a24-3a03c2ec5771",
- "createdAt": "2024-08-05T13:43:45.998790923Z",
- "modifiedBy": "d4fa667c-206a-4916-9a24-3a03c2ec5771",
- "modifiedAt": "2024-08-05T13:43:48.420521466Z",
- "version": 3
}
}
], - "cursor": {
- "pages": {
- "page": 2,
- "next": 3,
- "previous": 1,
- "last": 10,
- "perPage": 10,
- "totalItems": 10
}, - "hrefs": {
}
}
}Retrieves details of a specific audit log export job for a given App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| auditLogExportId required | string Example: ffffffff-aaaa-1414-eeee-000000000000 The export ID of the audit log export job. |
{- "id": "920e7b93-28c7-421b-993b-9fffecfd3598",
- "download_expires": "2024-08-08T13:43:48.420487299Z",
- "status": "Ready",
- "appServiceId": "01071798-23e5-4ec6-b814-13bebef70572",
- "tenantId": "333d2ad2-1408-405e-9995-68338d20ab5c",
- "clusterId": "71dd1cb2-34ac-43ae-a503-b2a9202f02d4",
- "audit": {
- "createdBy": "d4fa667c-206a-4916-9a24-3a03c2ec5771",
- "createdAt": "2024-08-05T13:43:45.998790923Z",
- "modifiedBy": "d4fa667c-206a-4916-9a24-3a03c2ec5771",
- "modifiedAt": "2024-08-05T13:43:48.420521466Z",
- "version": 3
}
}Log Streaming provides a mechanism for real-time streaming of App Services operational logs to third-party observability platforms or self-hosted HTTP logs collectors. This is a crucial tool to gain instant insights into application behavior, enabling rapid issue detection and resolution to enhance application reliability, performance, and security.
Re-enables Log Streaming for an App Service that was previously paused. Log Streaming needs to be previously configured for the App Service before it can be paused or resumed.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Temporarily disables Log Streaming for an App Service. Log Streaming needs to be previously configured for the App Service before it can be paused or resumed.
In order to access this endpoint, the provided API key must have at least one of the roles referenced below:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Sets up log streaming for a specific App Service.
Ensure you have provided collector credentials if you wish to begin streaming; log streaming cannot be enabled without credentials. Refer to schema below to see required fields for your log collection provider. Supported providers include Datadog, Sumo Logic, Grafana Loki, Elasticsearch (versions 8 and newer only), generic HTTP, Splunk, and Dynatrace.
Log streaming can only be configured while the config state is either enabled, paused, or disabled.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| outputType required | string Enum: "datadog" "generic_http" "sumologic" "loki" "elastic" "splunk" "dynatrace" The log collector to have logs streamed to. |
required | datadog (object) or sumologic (object) or generic_http (object) or elastic (object) or loki (object) or splunk (object) or dynatrace (object) The credentials to be used to authenticate with the log collector. |
{- "outputType": "datadog",
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Retrieves the configured output type, current config state, current streaming state of log streaming for a specific App Service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "outputType": "datadog",
- "configState": "enabled",
- "streamingState": "healthy"
}Disables log streaming for a specific App Service.
This will remove the log streaming configuration for the App Service. To enable log streaming again, you will need to provide the configuration details once more using the "Configure App Service Log Streaming" endpoint.
Log streaming can only be disabled while the config state is either enabled or paused.
It may take a few minutes for the log streaming to be fully disabled.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Updates the log streaming config for an app endpoint, which configures log levels and keys used to filter log messages.
This app endpoint log streaming config can only be updated while the log streaming config state is either "paused" or "enabled".
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
| logLevel required | string Enum: "info" "warn" "error" Controls the verbosity of logs based on the specified log level |
| logKeys required | Array of strings Items Enum: "Admin" "Access" "Auth" "Cache" "Changes" "CRUD" "HTTP" "HTTP+" "Import" "Javascript" "Query" "Sync" "SyncMsg" Filter logs to specific log keys |
{- "logLevel": "warn",
- "logKeys": [
- "HTTP",
- "Import",
- "Sync"
]
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Retrieves log streaming config for an app endpoint, which shows log levels and keys used to filter log messages.
This app endpoint log streaming config can only be retrieved while the log streaming config state is either "paused" or "enabled".
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| appEndpointName required | string Example: endpoint1 The name of the App Endpoint. |
{- "logLevel": "warn",
- "logKeys": [
- "HTTP",
- "Import",
- "Sync"
]
}App Services Private Endpoints enables you to configure a secure private network connection between the Virtual Private Cloud (VPC) hosting your applications and the VPC of your Couchbase Capella App Services. Note: This is currently only available for AWS.
Enable Private Endpoints for an App Service.
Supporting infrastructure is deployed and it may take a few minutes for Private Endpoints to be available. Once enabled, you can create Private Endpoints in your network. You can do this using the cloud provider's CLI. To obtain the command use the /privateEndpointService/privateEndpointCommand endpoint.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}The App Service Private Endpoint service allows you to access your Capella cluster from your private network, using Private Endpoints.
This endpoint determines if the endpoint service is enabled or disabled for your App Service.
It returns both a state and targetState. The state indicates the current status of the service, while the targetState indicates the desired end state of the service.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "state": "enabled",
- "targetState": "enabled"
}Disable Private Endpoints for an App Service.
Supporting infrastructure is removed and it may take a few minutes before the Private Endpoint service is disabled.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Retrieves the Private Endpoints command in order to create Private Endpoints and initiate the connection between the specified VPC and the App Service.
An example for AWS:
aws ec2 create-vpc-endpoint \
--vpc-id vpc-1234 \
--region us-east-1 \
--service-name com.amazonaws.vpce.us-east-1.vpce-svc-1234 \
--vpc-endpoint-type Interface \
--subnet-ids subnet-1234
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| vpcID required | string [ 12 .. 21 ] characters The ID of your virtual network |
| subnetIDs required | Array of strings |
{- "vpcID": "vpc-1234",
- "subnetIDs": [
- "subnet-1234"
]
}{- "command": "aws ec2 create-vpc-endpoint --vpc-id vpc-1234 --region us-east-1 --service-name com.amazonaws.vpce.us-east-1.vpce-svc-1234 --vpc-endpoint-type Interface --subnet-ids subnet-1234"
}Returns a list of the Private Endpoints associated with your Capella App Service with its current state. Each of these Private Endpoints is either attempting to connect or is connected to the App Service network.
In order to access this endpoint, the provided API key must have at least one of the following roles:
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
{- "privateEndpointDNS": "abcdef123456.pl.cloud.couchbase.com",
- "endpoints": [
- {
- "id": "vpce-000000000000aaaaa",
- "serviceName": "com.amazonaws.vpce.us-east-1.vpce-svc-000000000000aaaaa",
- "status": "linked"
}
]
}Accepts a Private Endpoint connection request for an App Service. This completes the connection and means the Private Endpoint is now associated with the App Service and available for use.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| endpointId required | string Example: vpce-1234 The VPC endpoint ID. |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}If the Private Endpoint is already connected and accepted this will unassociate the Private Endpoint from the App Service. If the Private Endpoint is not already connected this will reject the Private Endpoint connection request.
Both cases will remove the Private Endpoint from the App Service and it will no longer be available for use and any connection will be terminated.
In order to access this endpoint, the provided API key must have at least one of the following roles:
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| appServiceId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the appService. |
| endpointId required | string Example: vpce-1234 The VPC endpoint ID. |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Users can configure audit log support on Capella database and can export audit logs from cloud blob storage to an AWS S3 bucket. Users can retrieve audit logs from a pre-signed download URL. Logs are retained for 30 days.
Updates the audit log configuration for the cluster.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| auditEnabled required | boolean Determines whether audit logging is enabled or not on the cluster. |
required | Array of objects (AuditSettingsDisabledUsers) List of users whose filterable events will not be logged. |
| enabledEventIDs required | Array of integers <int32> [ items <int32 > ] List of enabled filterable audit events for the cluster. |
{- "auditEnabled": true,
- "disabledUsers": [
- {
- "domain": "local",
- "name": "@eventing"
}
], - "enabledEventIDs": [
- 8243,
- 8255
]
}{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Fetches information on whether audit logging is enabled, and which event IDs are enabled.
To learn more about cluster audit logs, please refer to audit management.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
{- "auditEnabled": true,
- "disabledUsers": [
- {
- "domain": "local",
- "name": "dfelton"
}
], - "enabledEventIDs": [
- [
- 8243,
- 8255
]
]
}Retrieves a list of audit event IDs. The list of filterable event IDs can be specified while configuring audit log for cluster.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
{- "events": [
- {
- "description": "Document was mutated via the REST API",
- "id": 8243,
- "module": "ns_server",
- "name": "mutate document"
}
]
}Creates a new audit log export job.
Audit Logs for the last 30 days can be requested, otherwise they are purged. A pre-signed URL to a s3 bucket location is returned, which is used to download these audit logs.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| start required | string <date-time> Specifies the audit log's start date and time. |
| end required | string <date-time> Specifies the audit log's end date and time. |
{- "start": "2022-09-04T00:56:07.000Z",
- "end": "2022-09-05T04:56:07.000Z"
}{- "exportId": "ffffffff-aaaa-1414-eeee-000000000000"
}Lists all the audit log export jobs and shows the status for each job.
It will show the pre-signed URL if the export was successful, a failure error if it was unsuccessful or a message saying no audit logs available if there were no audit logs found.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| page | integer Sets the page you would like to view. |
| perPage | integer Sets the number of results you would like to have on each page. |
{- "cursor": {
- "pages": {
- "last": 1,
- "next": 1,
- "page": 1,
- "perPage": 10,
- "previous": 1,
- "totalItems": 2
}, - "hrefs": {
- "previous": ""
}
}, - "data": [
- {
- "createdAt": "2023-05-16T06:43:46.264296574Z",
- "exportId": "d9db8594-4d0d-43b5-8dfe-1a6679d5b7d3",
- "start": "2023-05-15T04:56:07Z",
- "end": "2023-05-16T06:43:46.255479842Z",
- "status": "Failed"
}, - {
- "createdAt": "2023-05-16T06:39:33.745602046Z",
- "exportId": "624752e7-4600-4007-9a29-15d1323fbd0c",
- "start": "2023-05-15T04:56:07Z",
- "end": "2023-05-16T06:39:33.732661698Z",
- "status": "Queued"
}
]
}Fetches the status of a single audit log export job.
It will show the pre-signed URL if the export was successful, a failure error if it was unsuccessful or a message saying no audit logs available if there were no audit logs found during the given timeframe.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| auditLogExportId required | string Example: ffffffff-aaaa-1414-eeee-000000000000 The export ID of the audit log export job. |
{- "createdAt": "2023-05-16T04:00:08.870076042Z",
- "auditLogExportId": "40b9318a-cc93-458d-bc3e-7d4ffa778386",
- "start": "2023-05-15T04:56:07Z",
- "end": "2023-05-16T04:56:07Z",
- "status": "In Progress"
}Couchbase supports a robust scheduled backup and retention time policy as part of an overall disaster recovery plan for production data. Couchbase Capella supports scheduled and on-demand backups of bucket data. A backup can be restored to the same database where it was created or another database in the same organization. On setting up a backup schedule, the bucket automatically backs up the bucket based on the chosen schedule.
Creates a scheduled backup for a bucket.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| bucketId required | string Example: dGVzdA The ID of the bucket. It is the URL-compatible base64 encoding of the bucket name. |
| type | string Value: "weekly" |
object Schedule a full backup once a week with regular incrementals. |
{- "type": "weekly",
- "weeklySchedule": {
- "dayOfWeek": "sunday",
- "startAt": 10,
- "incrementalEvery": 4,
- "retentionTime": "90days",
- "costOptimizedRetention": false
}
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Fetched the backup schedule for a bucket in a cluster.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| bucketId required | string Example: dGVzdA The ID of the bucket. It is the URL-compatible base64 encoding of the bucket name. |
{- "type": "weekly",
- "clusterID": "ffffffff-aaaa-1414-eeee-000000000000",
- "bucketId": "dGVzdA",
- "weeklySchedule": {
- "dayOfWeek": "sunday",
- "startAt": 10,
- "incrementalEvery": 4,
- "retentionTime": "90days",
- "costOptimizedRetention": false
}
}Updates an existing backup schedule.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| bucketId required | string Example: dGVzdA The ID of the bucket. It is the URL-compatible base64 encoding of the bucket name. |
| type | string Value: "weekly" |
object Schedule a full backup once a week with regular incrementals. |
{- "type": "weekly",
- "weeklySchedule": {
- "dayOfWeek": "sunday",
- "startAt": 0,
- "incrementalEvery": 4,
- "retentionTime": "90days",
- "costOptimizedRetention": false
}
}{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Deletes an existing backup schedule
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| bucketId required | string Example: dGVzdA The ID of the bucket. It is the URL-compatible base64 encoding of the bucket name. |
{- "httpStatusCode": 400,
- "code": 1000,
- "message": "The request was malformed or invalid.",
- "hint": "The request was malformed or invalid."
}Lists the cycles for a bucket in a cluster.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| bucketId required | string Example: dGVzdA The ID of the bucket. It is the URL-compatible base64 encoding of the bucket name. |
| startDate | string <date> Example: startDate=2023-07-19 Filters bucket backups beginning from the start date. Specify the start date to retrieve relevant bucket backups from start date. |
| endDate | string <date> Example: endDate=2023-07-21 Filters bucket backups till the end date. Specify the end date to retrieve relevant bucket backups till end date. |
{- "data": [
- {
- "cycleID": "8109f151-4475-4d31-bf7e-559b0ecf345e",
- "createdAt": "2021-09-01T12:34:56Z"
}
]
}Lists the backups for a cycle in a bucket.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| bucketId required | string Example: dGVzdA The ID of the bucket. It is the URL-compatible base64 encoding of the bucket name. |
| cycleId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cycle. |
{- "data": [
- {
- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "clusterID": "ffffffff-aaaa-1414-eeee-000000000000",
- "tenantID": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectID": "ffffffff-aaaa-1414-eeee-000000000000",
- "cycleID": "string",
- "date": "2021-09-01T12:34:56Z",
- "restoreBefore": "2021-09-02T12:34:56Z",
- "status": "pending",
- "method": "incremental",
- "bucketName": "My-First-Bucket",
- "bucketID": "dGVzdA",
- "source": "scheduled",
- "provider": "aws",
- "stats": {
- "sizeInMb": 0.1,
- "items": 150,
- "mutations": 150,
- "tombstones": 4,
- "gsi": 46,
- "fts": 30,
- "cbas": 30,
- "event": 25
}, - "elapsedTimeInSeconds": 30,
- "scheduleInfo": {
- "backupType": "Weekly",
- "backupTime": "2023-07-13 20:26:54.990864215 +0000 UTC",
- "increment": 4,
- "retention": "90days"
}
}
]
}Couchbase supports a robust scheduled backup and retention time policy as part of an overall disaster recovery plan for production data. Couchbase Capella supports scheduled and on-demand backups of bucket data. A backup can be restored to the same database where it was created or another database in the same organization. An on-demand backup of a bucket is always a Full backup. Capella schedules on-demand backup to start immediately.
Creates an on-demand backup for a bucket.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| bucketId required | string Example: dGVzdA The ID of the bucket. It is the URL-compatible base64 encoding of the bucket name. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Lists the latest backup for all buckets in a cluster.
Note: This endpoint doesn’t return queued backups and only returns ones that are actively being processed or are completed/failed.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
{- "data": [
- {
- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "clusterID": "ffffffff-aaaa-1414-eeee-000000000000",
- "tenantID": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectID": "ffffffff-aaaa-1414-eeee-000000000000",
- "cycleID": "string",
- "date": "2021-09-01T12:34:56Z",
- "restoreBefore": "2021-09-02T12:34:56Z",
- "status": "pending",
- "method": "incremental",
- "bucketName": "My-First-Bucket",
- "bucketID": "dGVzdA",
- "source": "scheduled",
- "provider": "aws",
- "stats": {
- "sizeInMb": 0.1,
- "items": 150,
- "mutations": 150,
- "tombstones": 4,
- "gsi": 46,
- "fts": 30,
- "cbas": 30,
- "event": 25
}, - "elapsedTimeInSeconds": 30,
- "scheduleInfo": {
- "backupType": "Weekly",
- "backupTime": "2023-07-13 20:26:54.990864215 +0000 UTC",
- "increment": 4,
- "retention": "90days"
}, - "bucketDownloadsCount": 2
}
]
}Fetches the details of an existing backup.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| backupId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the backup. |
{- "id": "ffffffff-aaaa-1414-eeee-000000000000",
- "clusterID": "ffffffff-aaaa-1414-eeee-000000000000",
- "tenantID": "ffffffff-aaaa-1414-eeee-000000000000",
- "projectID": "ffffffff-aaaa-1414-eeee-000000000000",
- "cycleID": "string",
- "date": "2021-09-01T12:34:56Z",
- "restoreBefore": "2021-09-02T12:34:56Z",
- "status": "pending",
- "method": "incremental",
- "bucketName": "My-First-Bucket",
- "bucketID": "dGVzdA",
- "source": "scheduled",
- "provider": "aws",
- "stats": {
- "sizeInMb": 0.1,
- "items": 150,
- "mutations": 150,
- "tombstones": 4,
- "gsi": 46,
- "fts": 30,
- "cbas": 30,
- "event": 25
}, - "elapsedTimeInSeconds": 30,
- "scheduleInfo": {
- "backupType": "Weekly",
- "backupTime": "2023-07-13 20:26:54.990864215 +0000 UTC",
- "increment": 4,
- "retention": "90days"
}
}Deletes the backup records that belong to the same cycle from the DB by using the backup ID.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| backupId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the backup. |
{- "httpStatusCode": 403,
- "code": 1002,
- "message": "Access Denied.",
- "hint": "Your access to the requested resource is denied. Please make sure you have the necessary permissions to access the resource."
}Creates an on-demand restore job for a backup immediately.
To learn more about backup and restore, see Backup and Restore Data.
In order to access this endpoint, the provided API key must have at least one of the following roles:
To learn more, see Organization, Project, and Database Access Overview.
| organizationId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the organization. |
| projectId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the project. |
| clusterId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the cluster. |
| backupId required | string <uuid> Example: ffffffff-aaaa-1414-eeee-000000000000 The GUID4 ID of the backup. |
| targetClusterID required | string <uuid> The ID of the target cluster to restore to. |
| sourceClusterID required | string <uuid> The ID of the source cluster the restore is based on. |
| backupID required | string <uuid> The backup record ID that contains the backup to restore from. |
| services required | Array of strings (Services) Items Enum: "data" "query" |
| forceUpdates | boolean Forces data in the Couchbase cluster to be overwritten even if the data in the cluster is newer. |
| autoRemoveCollections | boolean Automatically delete scopes/collections which are known to be deleted in the backup. |
| filterKeys | string Only restore data where the key matches a particular regular expression. |
| filterValues | string Only restore data where the value matches a particular regular expression. |
| includeData | string Restores only the data specified here. |
| excludeData | string Skips restoring the data specified here. |
| mapData | string Specified when you want to restore source data into a different location. |
| replaceTTL | string Enum: "none" "all" "expired" Sets a new expiration (time-to-live) value for the specified keys. |
| replaceTTLWith | string Updates the expiration for the keys. |
{- "targetClusterID":