Deleting Nodes Managed by MindEdge Framework

Function

Deletes nodes that have been managed by MindEdge Framework in batches based on the specified node ID array. Nodes will be deleted from a Kubernetes cluster. If you want to manage them again, you need to interconnect MEF Edge with the NMS again. MindEdge Framework allows you to delete only the nodes where applications are not deployed. Before deleting a specified node, you need to uninstall all applications deployed on the node. For details, see Uninstalling a Containerized Application.

Syntax

Operation type: POST

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

Request message body:

{
  "nodeIDs": [nodeId]
}

Request Parameters

Table 1 Description

Parameter

Mandatory/Optional

Description

Value

nodeIDs

Mandatory

ID array of nodes 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/node/batch-delete

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 the node that fails to be deleted, and value is the failure cause.