Deleting a Node Group
Function
Deletes node groups in batches based on the specified number of node group IDs. MindEdge Framework allows you to delete node groups with containerized applications undeployed. If containerized application instances have been deployed in a node group, it cannot be deleted.
Syntax
Operation type: POST
URL: https://{ip}:{port}/edgemanager/v1/nodegroup/batch-delete
Request message body:
{
"groupIDs": [NodeGroupId]
}
Request Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
groupIDs |
Mandatory |
ID array of node groups 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/batch-delete
Request message body:
{
"groupIDs": [1,2]
}
Response:
{
"status": "00000000",
"msg": "success"
}
Response status code: 200
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. |
Parameter |
Type |
Description |
|---|---|---|
successIDs |
Array |
ID of the node group that is successfully deleted |
failedInfos |
Hash table. The key and value are character strings. |
key is the ID of the node group that fails to be deleted, and value is the failure cause. |