servicesCheckStatus


URI

<services_uri>/checkstatus[.<format>]

Supported methods

PUT

Parent resource

services

Introduction

serviceCheckStatus resource is to update the service checking status in batch. Only administrator can update the service checking status.

Supported Methods:

Supported output formats: RJSON, JSON, HTML, XML.

Resource hierarchy

HTTP request methods

Implement the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.

http://supermapiportal:8090/iportal/web/services/checkstatus.rjson

PUT request

Update service checking status in batch. The service checking status includes SUCCESSFUL, FAILED, UNCHECKED.

Request parameter

Execute PUT request for servicesCheckStatus resource. Parameters passed in the request body are as follows:

Name Type Description
serviceIds Integer[] The service ID that needs to update the status.
checkInfo CheckInfo Service checking information.

Response structure

The response result returned is as the following:

Field Type Description
succeed boolean Whether the service checking status is updated successfully or not.
error Httperror Error information. This field will not be displayed if the service checking statu is updated successfully.

Response example

Execute PUT request for servicesCheckStatus resource: http://localhost:8090/iportal/web/services/checkstatus.rjson, and update the service checking status. The request body is as follows:

{

    "serviceIds": [

        3,

        4

    ],

    "checkInfo": {

        "checkStatus": "SUCCESSFUL",

        "verifyReason": ""

    }

}

The response result in rjson format returned is as follows:

{ "succeed": true}

See