Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
16 KiB
Scaling Out a DDM Instance (a V3 API)
Function
This API is used to scale out a specified DDM instance.
Constraints
Make sure that the associated RDS instances are available and not undergoing other operations.
URI
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Content-Type |
Yes |
String |
MIME type of the request body. Value range:
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
group_id |
No |
String |
Group ID, which specifies the group that is scaled out. This parameter must be specified if there are more than one node group. It can be obtained from Obtaining the Instance Group Information (a V3 API). |
subnet_id |
No |
String |
Subnet ID. This parameter is mandatory when there are more than one subnet in the node group. |
nodes |
Yes |
Array of Table EnlargeNodeInfo objects |
Node information list. The list can include at least one node. The list can include a maximum of 32 nodes. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
available_zone |
Yes |
String |
AZ where the node is located. The value cannot be empty. For details, see Regions and Endpoints. |
Example Request
Scaling out a DDM instance. The number of nodes to be added is 1.
POST https://ddm.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/1f5c9fd6cd984056ba89c8c87cc03278in09/nodes
{
"nodes": [
{
"available_zone": "az1"
}
]
}
Scaling out a DDM instance that has more than one group. The number of nodes to be added is 1.
POST https://ddm.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/1f5c9fd6cd984056ba89c8c87cc03278in09/nodes
{
"group_id": "efd077a3a50e460c8ba62e1956363299gr09",
"subnet_id": "ead1e945-ca89-45dd-bcce-4a30b2054c22",
"nodes": [
{
"available_zone": "az1"
}
]
}
Response
- Normal response
Table 5 Response body parameters Parameter
Type
Description
job_id
String
ID of a node scale-out task.
- Normal response example
{ "job_id": "eff1d289-4d03-4942-8b9f-463ea07c000c" }
- Abnormal response
For details, see Abnormal Request Results.
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see Error Codes.