Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Vineet Pruthi <Vineet.Pruthi@t-systems.com> Co-committed-by: Vineet Pruthi <Vineet.Pruthi@t-systems.com>
14 KiB
Adding Master and Client Nodes
Function
This API is used to add master and client nodes to a cluster.
Calling Method
For details, see Calling APIs.
URI
POST /v1.0/{project_id}/clusters/{cluster_id}/type/{type}/independent
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain a project ID, see Obtaining a Project ID and Name. |
cluster_id |
Yes |
String |
ID of the cluster that needs an independent master or client. |
type |
Yes |
String |
Node type. The value can be:
|
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
type |
Yes |
IndependentBodyReq object |
Master/Client request body parameter |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
flavor_ref |
Yes |
String |
Flavor ID. You can obtain the value of this parameter by calling the API Obtaining the Instance Specifications List. Select the flavor ID suitable for your cluster version. |
node_size |
Yes |
Integer |
Number of nodes.
|
volume_type |
Yes |
String |
Node storage type. Its value can be ULTRAHIGH, COMMON, or HIGH. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
id |
String |
Cluster ID. |
Request Example
Add the master and client nodes.
POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/type/ess-client/independent
{
"type" : {
"flavor_ref" : "d9dc06ae-b9c4-4ef4-acd8-953ef4205e27",
"node_size" : 3,
"volume_type" : "COMMON"
}
}
Response Example
Status code: 200
The request is processed.
{
"id" : "320afa24-ff2a-4f44-8460-6ba95e512ad4"
}
Status Codes
Status Code |
Description |
|---|---|
200 |
The request is processed. |
403 |
The request is rejected. The server has received and understood the request, but refused to respond to it. Modify the request directly and do not attempt to retry it. |
500 |
The server can be accessed by the request, but it cannot understand the user's request. |
Error Codes
For details, see Error Code.