API

deleted

URI

http://<server>:<port>/imanager/cloud/web/nodes/deleted[.<format>]

Supported Methods

POST

Introduction

Delete node resources, where nodes include GIS servers, GIS desktops, GIS portals, general platforms, and load balancers.

Supported methods:

  • POST: Deletes nodes.

Supported representation format: JSON.

HTTP Request Method

An HTTP request is performed on the following URI. Here we take JSON output format for illustration, where supermapimanager is the server name.

http://supermapimanager:8390/imanager/cloud/web/nodes/deleted.json

POST Request

Sends a request to delete a node. The request body contains the following parameters:

Name Type Definition
id String[] [Required] Environment id.

Response Structure

Field Type Description
failures List Failed operations.
isSucceed boolean Whether the operation is successful.
msg String The error information.
success List Successful operations.

OperationResult indicates the operations results, which include the following fields:

Field Type Description
id String The id of the entity operated.
name String The name of the entity operated.
msg String The message.

Response Example

Delete nodes, that is, perform the POST request on http://localhost:8390/imanager/cloud/web/nodes/deleted.json to return the json fomat request body as shown below:

["528","532"]

The returned json format response is as follows:

{
  "failures": [],
  "isSucceed": true,
  "msg": "",
  "success": [
    {
      "id": "532",
      "name": "sm_iserver-73"
    },
    {
      "id": "528",
      "name": "GIS server"
    }
  ]
}