Uninstalling Containerized Applications

Function

Removes a node from the corresponding node group (that is, deletes the pod of a single application) to uninstall a containerized application.

Syntax

Operation type: POST

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

Request message body:

[
  {
     "nodeID": nodeId,
     "groupID":groupId
  }
 {
     "nodeID": nodeId,
     "groupID": groupId
  }
...
]

Multiple containerized applications can be uninstalled at a time in a list. The value of a list ranges from 1 to 1024. At least one of the node ID and node group ID in each list must be different from those in other lists.

Request Parameters

Table 1 Description

Parameter

Mandatory/Optional

Description

Value

nodeID

Mandatory

Node ID

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

groupID

Mandatory

Node group ID

32-bit unsigned number. 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/pod/batch-delete

Request message body:

[
  {
   "nodeID": 1,
   "groupID":2
},
{
   "nodeID": 3,
   "groupID":4
}
]

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

Operation result

Table 3 data field description

Parameter

Type

Description

successIDs

Array

ID pairs of nodes and node groups that are successfully uninstalled

failedInfos

Hash table. The key and value are character strings.

key is the ID pair of the node group and node that fail to be uninstalled, and value is the failure cause.