List clusters

Lists all clusters in a CelerData Cloud BYOC account.

Request

Basic information
HTTP URLhttps://cloud-api.celerdata.com/api/1.0/clusters
HTTP methodGET
Frequency600/minute

Header parameters

ParameterExample valueRequiredTypeDescription
AuthorizationBearer OGQ5MDA4MZGTNJMWNS0ZY2Y2LWFJNZYTOTBINMZIYTGZZDUYYesStringThe access token used to access the CelerData Cloud BYOC API. Format: Bearer <access_token>.

See Obtain access token.

Response

Sample response

{
    "code": 20000,
    "data": {
        "total": 2,
        "list": [
            {
                "cluster_id": "ec7faafa-e155-4ae0-bccc-57b3c5f3b0fa",
                "cluster_name": "test1"
            },
            {
                "cluster_id": "d517c508-a2ef-4318-9f97-484f66028177",
                "cluster_name": "test2"
            }
        ]
    }
}

Response elements

ParameterExample valueTypeDescription
code20000IntegerThe error code. If the error code returned is 20000, the request succeeded. If any other error code is returned, the request failed.
data-ObjectThe result of the API call. The data object may not be returned for some API actions. It consists of the following elements: total and list.
data.total-IntegerThe total number of clusters in the account.
data.list-ArrayAn array of one or more objects, each of which consists of the details of the clusters in the account.
data.list[0]-ObjectThe details of a cluster presented as an object. Each object consists of the following elements: cluster_id and cluster_name.
data.list[0].cluster_id-StringThe ID of the cluster.
data.list[0].cluster_name-StringThe name of the cluster.