Uninstalling a Containerized Application

Function

Uninstalls a containerized application and stops the running of the corresponding containerized application instance. This API performs uninstallation in batches on one or more node groups within a specified node group ID list based on specified container IDs.

Syntax

Operation type: POST

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

Request header:

Content-Type: application/json

Request message body:

{
    "appID": AppId,
    "nodeGroupIds": [NodeGroupId]
}

Request Parameters

Table 1 Description

Parameter

Type

Description

Value

appID

Mandatory

Containerized application ID

The value is an integer ranging from 1 to 2^32-1. The application ID must exist.

nodeGroupIds

Mandatory

List of node group IDs

Array with a length ranging from 1 to 1024. The node group ID must be unique.

Usage Example

Request:

POST https://10.10.10.10:30035/edgemanager/v1/app/deployment/batch-delete

Request message body:

{
    "appID": 1,
    "nodeGroupIds": [
      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

ID of the node group that is successfully uninstalled

failedInfos

Hash table. The key and value are character strings.

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