Deleting Nodes from a Node Group

Function

Deletes nodes from a node group in batches, evicts nodes from a node group, and uninstalls and deletes containerized applications on the nodes.

Syntax

Operation type: POST

URL: https://{ip}:{port}/edgemanager/v1/nodegroup/node/batch-delete

Request message body:

{
    "groupID": NodeGroupId,
    "nodeIDs": [NodeId]
}

Request Parameters

Table 1 Description

Parameter

Mandatory/Optional

Description

Value

groupID

Mandatory

ID of the node group from which a node is deleted

32-bit unsigned number. The minimum value is 1 and the maximum value is 2^32-1.

nodeIDs

Mandatory

ID array of the node to be deleted

32-bit unsigned numeric array. The maximum number of elements in an array is 1024. The minimum value is 1 and the maximum value is 2^32-1.

Usage Example

Request:

POST https://10.10.10.10:30035/edgemanager/v1/nodegroup/node/batch-delete

Request message body:

{
    "groupID": 1,
    "nodeIDs": [1,2]
}

Response:

{
    "status": "00000000",
    "msg": "success"
}

Response status code: 200

Output Description

Table 2 Operation output description

Parameter

Type

Description

status

String

Error code

msg

String

Description

data

Object

Batch operation result. If all batch operations are successful, this parameter is not returned.

Table 3 data field description

Parameter

Type

Description

successIDs

Array

IDs of nodes that are successfully deleted

failedInfos

Hash table. The key and value are character strings.

key is the ID of the node that fails to be deleted, and value is the failure cause.