API

restart

URI

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

Supported Methods

POST

Introduction

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

Supported methods:

  • POST: Restarts 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/restart.json

POST Request

Send the request to restart nodes. 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

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

["528"]

The returned json format response is as follows:

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