Manage Deployments with the Capella Analytics Management API

  • Capella Analytics
  • concept
    +
    The Capella Analytics Management API is a secure REST API that enables you to configure and manage your Capella Analytics services clusters.

    This page is for Capella Analytics. For Capella operational, see Manage Deployments with the Capella Operational Management API.

    Clients do not need any special tools, SDKs, or libraries to access the Management API. The Management API supports off-the-shelf HTTP clients, such as Insomnia or Postman.

    To get started quickly, create an API key and make an API call.

    Versioning

    The Management API uses semantic versioning. The full version number consists of 3 parts: major.minor.patch.

    An update to the Management API may be a non-versioned bug fix, a patch update, a minor update, or a major update. All major, minor, and patch updates increment the version number. Only non-versioned bug fixes do not change the version number as they resolve defects without altering functionality or adding new features.

    New versions of the Management API, with some exceptions, are backward compatible, minimizing the effect on existing deployments. In most cases, you do not need to update your existing infrastructure when Couchbase releases a new version of the Management API. Features added in a new version of the Management API do not break existing deployments.

    Exceptions to backward compatibility are as follows:

    • Critical security fixes. Couchbase marks a vulnerable version of the Management API as unsupported when it releases a version that fixes the vulnerability. In this case, you must plan to upgrade as soon as possible.

    • Fundamental architectural changes, when unavoidable.

    Initial Version

    The Management API v4.0 is the initial release of the Capella Analytics Management API. The version numbering of the Capella Analytics Management API is aligned with the version numbering of the Capella operational Management API.

    Authentication and Authorization

    The Management API uses API keys for authentication and authorization. They’re required for accessing endpoints exposed by the Management API.

    Couchbase Capella associates API keys with roles and permissions. To access an endpoint, an API key must have the appropriate Capella roles. The Management API reference guide lists the roles required for each endpoint.

    When you create an API key, you can configure an allowed IP address list. Every API key has an expiration date.

    To authenticate a Management API call, pass the API key as a Bearer token in the HTTP Authorization header.

    Concurrent Access and PUT Requests

    To support concurrent requests, PUT requests support optimistic concurrency control, using If-Match headers in combination with HTTP ETags (entity tags). Exceptions are noted in the endpoint descriptions of the Management API reference page. A typical pattern is to do a GET request on a specified resource, which returns an ETag value. You can then include the ETag value in a PUT request to update the resource.

    PUT requests ignore all fields in the body of the request that are not required. You can find the required fields for each PUT request in the Management API reference guide.

    Auditing

    All requests to the Management API are audited. All endpoints support Audit fields for audit purposes, except where noted in the Management API reference guide.

    Lists are paginated.

    Service Limits

    Service limits set boundaries for managing clusters, App Services, and AI Services with the Management API.

    Long-Running Requests

    The following long-running requests are rejected with error 504, Gateway Timeout:

    • Read requests taking longer than 90 seconds to process.

    • Write requests taking longer than 120 seconds to process.

    Rate Limiting

    Requests are limited to 100 requests per minute per API key.

    Payload Size

    Requests and response payloads are restricted to 18 MB.