Deleting a Containerized Application

Function

Delete containerized applications in batches based on the specified containerized application ID array. MindEdge Framework allows you to delete only applications that are not deployed. If the deletion fails, the returned fields include the failed ID and the successful ID array.

Syntax

Operation type: POST

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

Request header:

Content-Type: application/json

Request message body:

{
    "appIDs": [AppId]
}

Request Parameters

Table 1 Description

Parameter

Type

Description

Value

appIDs

Mandatory

Containerized application ID array

The maximum number of elements in an array is 1024. The application ID must exist, with a value ranging from 1 to 2^32-1.

Usage Example

Request:

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

Request message body:

{
    "appIDs": [
        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 containerized application that is successfully deleted

failedInfos

Hash table. The key and value are character strings.

key is the ID of the containerized application that fails to be deleted, and value is the failure cause.