Deleting Nodes That Are Not Managed by MEF

Function

MEF Center can add nodes in a Kubernetes cluster to the database, resulting in these nodes becoming unmanaged. You can use the API for deleting unmanaged nodes to delete them from the cluster.

Syntax

Operation type: POST

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

Request message body:

{
    "nodeIDs": [NodeId]
}

Request Parameters

Table 1 Description

Parameter

Mandatory/Optional

Description

Value

nodeIDs

Mandatory

Node ID array

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/node/batch-delete/unmanaged

Request message body:

{
     "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 a failed node, and value is the failure cause.