All Products
Search
Document Center

:Fix issues on nodes in a node pool

更新时间:Aug 31, 2023

You can call the RepairClusterNodePool operation to fix issues on nodes in a node pool.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request syntax

POST /clusters/cluster_id/nodepools/nodepool_id/repair HTTP/1.1
Content-Type:application/json

{
  "nodes" : [ "String" ]
}

Request parameters

Table 1. Request path parameters
Parameter Type Required Example Description
cluster_id String Yes c2273b7f4a30d4ef6b43e0926cdd8****

The ID of the cluster that you want to manage.

nodepool_id String Yes np613940c3593c4bea96faa8600cb9****

The ID of the node pool that you want to manage.

Table 2. Request body parameters
Parameter Type Required Example Description
nodes Array of String No cn-beijing.10.0.1.26

The name of the node that you want to manage.

Response syntax

HTTP/1.1 200 OK
Content-Type:application/json

{
  "request_id" : "String",
  "task_id" : "String"
}

Response parameters

Table 3. Response body parameters
Parameter Type Example Description
request_id String db82195b-75a8-40e5-9be4-16f1829dc624

The ID of the request.

task_id String T-613b19bbd160ad4928000001

The ID of the task.

Example 1

POST /clusters/c2273b7f4a30d4ef6b43e0926cdd8****/nodepools/np613940c3593c4bea96faa8600cb9****/repair HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json

{
  "nodes" : [ "cn-beijing.10.0.1.26" ]
}

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RepairClusterNodePoolResponse>
    <request_id>db82195b-75a8-40e5-9be4-16f1829dc624</request_id>
    <task_id>T-613b19bbd160ad4928000001</task_id>
</RepairClusterNodePoolResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "request_id" : "db82195b-75a8-40e5-9be4-16f1829dc624",
  "task_id" : "T-613b19bbd160ad4928000001"
}

Error codes

For a list of error codes, visit the API Error Center.