Clusters
Available API Paths
- /api/projects/{projectId}/clusters/{clusterId}
 - /api/projects/{projectId}/clusters/{clusterId}/join
 - /api/projects/{projectId}/clusters/{clusterId}/leave
 - /api/projects/{projectId}/clusters
 - /api/projects/{projectId}/clusters/status
 
/api/projects/{projectId}/clusters/{clusterId}
The following methods are available for this path:
GET
Return general information about specified cluster.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| clusterId | path | string | A broker id representing the cluster to get the info for | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | General cluster information. | |
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 500 | Internal server error |  | 
DELETE
Delete cluster from project.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| clusterId | path | string | A broker id representing the cluster to get the info for | 
| clustername | query | string | The name of the cluster to delete. | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | Flag indicating delete was successful or not. | |
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 500 | Internal server error |  | 
| 503 | Service unavailable. E.g. if platform is not able to connect to broker |  | 
/api/projects/{projectId}/clusters/{clusterId}/join
The following methods are available for this path:
PUT
Adds defined node to specified cluster.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| clusterId | path | string | A broker id representing the cluster to add node to. | 
Request Body
| Name | Location | Type | Description | 
| body | body | object | Properties: | 
Responses
| Status | Description | Response Content or Scheme | 
| 204 | ||
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/clusters/{clusterId}/leave
The following methods are available for this path:
PUT
Removes a node from specified cluster.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
| clusterId | path | string | A broker id representing the cluster to remove node from | 
Request Body
| Name | Location | Type | Description | 
| body | body | object | Properties: | 
Responses
| Status | Description | Response Content or Scheme | 
| 204 | ||
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/clusters
The following methods are available for this path:
GET
Return a list of all clusters currently defined in specified project.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | A list of project clusters. | |
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 405 | Method not supported for this resource |  | 
| 500 | Internal server error |  | 
POST
Create a new cluster for specified project.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
Request Body
| Name | Location | Type | Description | 
| body | body | object | Properties: | 
Responses
| Status | Description | Response Content or Scheme | 
| 200 | Info of newly created cluster. |  | 
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 500 | Internal server error |  | 
DELETE
Delete all clusters currently defined in specified project.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
Responses
| Status | Description | Response Content or Scheme | 
| 207 | ||
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 500 | Internal server error |  | 
/api/projects/{projectId}/clusters/status
The following methods are available for this path:
GET
Return a list of raft status information of each cluster defined in project.
Parameters
| Name | Location | Type | Description | 
|---|---|---|---|
| projectId | path | string | A project id | 
Responses
| Status | Description | Response Content or Scheme | 
| 207 | ||
| 401 | Unauthorized request error |  | 
| 403 | Request is not allowed error |  | 
| 404 | Resource is not found error |  | 
| 500 | Internal server error |  |