APIs

create

URI

http://{server}:{port}/imanager/dashboard/web/api/appset

Supported Methods

POST

Parent Resource

appset

Introduction

Create GIS environments by API, the GIS environments include GIS Server, GIS Portal, GIS Desktop, GIS Tiling Cluster, GIS Site, GIS Cloud Suite, GIS Big Data, Data Science Service, and different types of databases.

Supported representation format: JSON.

HTTP Request Method

An HTTP request is performed on the following URI. Here we take JSON output format for illustration. {server} is the server IP of iManager, you need to replace it by the actual server IP; {port} is the port number of iManager, you need to replace it by the actual port.

http://{server}:{port}/imanager/dashboard/web/api/appset

POST Request

Create GIS environments.

Request Params

The name and type of the GIS environment(refer to API > appset > menu to get the information)

Name Type Explanation
name String GIS environment name
type String GIS environment type

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 request. 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.

Response Case

Execute POST request for http://192.168.17.139:31100/imanager/dashboard/web/api/appset to create GIS Server:

{
"name":"Example",
"type":"iserver"
}

The returned response in json format:

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