This is documentation for v3 of the PHP API clients, which is not the latest version. To see the documentation for the latest version, see PHP v4.

Required API Key: Admin

Method signature
$client->listClusters()

About this method # A

List the clusters available in a multi-clusters setup for a single appID.

Examples # A

List clusters#

1
var_dump($client->listClusters());

Parameters # A

This method doesn't take any parameters.

Response # A

This section shows the JSON response returned by the API. Each API client encapsulates this response inside objects specific to the programming language, so that the actual response might be different. You can view the response by using the getLogs method. Don’t rely on the order of attributes in the response, as JSON doesn’t guarantee the ordering of keys in objects.

JSON format#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "clusters": [
    {
      "clusterName": "c10-test",
      "nbRecords": 139,
      "nbUserIDs": 19,
      "dataSize": 23544
    },
    {
      "clusterName": "c11-test",
      "nbRecords": 223,
      "nbUserIDs": 7,
      "dataSize": 40311
    }
  ]
}
Field Description
clusters #
list of {cluster object}

List of clusters (of type cluster object) inside your multiCluster setup.

clusters âž” cluster object #

Field Description
clusterName #
string

Name of the cluster.

nbRecords #
integer

Number of records in the cluster.

nbUserIDs #
integer

Number of users assigned to the cluster.

dataSize #
integer

Data size taken by all the users assigned to the cluster.

Did you find this page helpful?
PHP API clients v3