GIS Cloud Suite

nodes

URI

http://{server}:{port}/manager/web/api/service/nodes

Method

POST

Parent Resource

service

Introduction

Create the service node by API.

Supported Interchange Format: JSON

HTTP Request Method

Execute HTTP request to the URI below. In the URI below, {server} is the server of gateway, replace it by the actual gateway IP. {port} is the port of gateway, replace it by the actual gateway port.

http://{server}:{port}/manager/web/api/service/nodes

POST Request

Create the service node.

The Format of Headers

content-type: application/json
authorization: Bearer {access_token}

Request Params

The parameters when creating service node:

Name Type Explanation
nodeName String The name of the service node
serviceTypes String The type of the service(please refer API > service to check the name of service types)
type String The name of node type(please refer API > service to check the name of node types)

Notes:

  1. If you do not input the parameter ‘type’, the system will create a general node(gisapplication).
  2. If you input both parameters of ‘type’ and ‘serviceTypes’, the value of ‘serviceTypes’ will not take effect.

Response Structure

The returned response would tell whether created successful, and provide the error information if failed.

Field Type Explanation
isSucceed Boolean The result of the execution, true means succeed, false means failed.
msg String If the execution failed, the result would return the error information. The result would be empty if succeed.
nodeName String The name of the service node

Response Case

Execute POST request for http://192.168.17.139:32507/manager/web/api/service/nodes, input the parameters to create service node:

{
    "nodeName": "Node0",
    "serviceTypes": [
        "map-rest"
    ]
}

The returned response in json format:

{
    "isSucceed": true,
    "msg": "",
    "nodeName": "Node0"
}