GIS Cloud Suite

deleted

URI

http://{server}:{port}/manager/web/api/service/instances/deleted

Supported Method

POST

Parent Resource

instances

Introduction

Delete the service instance 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/instances/deleted

POST Request

Delete the service instance.

The Format of Headers

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

Request Params

The necessary parameters to delete service instance:

Name Type Explanation
serviceInfos componentName ServiceBaseInfo[] The name of service component
interfaceName The name of service interface

Response Structure

Returned the result of the request, made up by the following fields:

Field Type Explanation
isSucceed Boolean The result of the request. Ture 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:32507/manager/web/api/service/instances/deleted, delete the service instance map-China400-astczjug0f/rest and data-China400-6n1xhv9emt/rest:

[
    {
        "componentName": "map-China400-astczjug0f",
        "interfaceName": "rest"
    },
    {
        "componentName": "data-China400-6n1xhv9emt",
        "interfaceName": "rest"
    }
]

The returned response in json format:

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