Advanced
Тема интерфейса

Adding Independent Masters and Clients

Function

This API is used to add dedicated master and client nodes to an existing cluster that previously does not have such nodes.

URI

POST /v1.0/{project_id}/clusters/{cluster_id}/type/{type}/independent

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Parameter description:

The project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name.

Constraints:

N/A

Options:

For details about how to obtain the project ID and name, see Obtaining the Project ID and Name.

Default value:

N/A

cluster_id

Yes

String

Parameter description:

Specifies the ID of the cluster to add dedicated master and client nodes for. For details, see Obtaining the Cluster ID.

Constraints:

N/A

Options:

For details about how to obtain the cluster ID, see Obtaining the Cluster ID.

Default value:

N/A

type

Yes

String

Parameter description:

Types of dedicated nodes to add.

Constraints:

N/A

Options:

  • ess-master: master node

  • ess-client: client node

    Default value:

    N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

type

Yes

Parameter description:

Master/Client request body parameter.

Table 3 IndependentTypeReq

Parameter

Mandatory

Type

Description

flavor_ref

Yes

String

Parameter description:

Specifies the flavor ID.

Constraints:

N/A

Options:

You can obtain the value of this parameter by calling the API for Obtaining the Instance Specifications List. Select the flavor ID suitable for your cluster version.

Default value:

N/A

node_size

Yes

Integer

Parameter description:

Number of nodes.

Constraints:

N/A.

Options:

  • If the node type is ess-master, the number of nodes must be an odd number in the range 3 to 10.

  • If the node type is ess-client, the number of nodes must be in the range 1 to 32.

    Default value:

    N/A

volume_type

Yes

String

Parameter description:

Node storage type.

Constraints:

N/A

Options:

  • COMMON: common I/O

  • HIGH: high I/O

  • ULTRAHIGH: ultra-high I/O

  • ESSD: ultra-fast SSD

Default value:

N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

id

String

Cluster ID.

Example Requests

Add independent 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"
}
}

Example Responses

Status code: 200

Request succeeded.

{
"id" : "320afa24-ff2a-4f44-8460-6ba95e512ad4"
}

Status Codes

Status Code

Description

200

Request succeeded.

403

Request rejected.The server has received the request and understood it, but refused to respond to it. The client should not repeat the request without modifications.

500

The server has received the request but could not understand it.

Error Codes