Stop a service instance

Last Updated: Mar 09, 2017

Description

Stops all containers in a service instance.

Request information

Request line (RequestLine)

  1. POST /services/{service_id}/stop?t={timeout} HTTP/1.1

Request line parameter (URI Param)

Name Type Required? Description
service_id string Yes Service instance ID, in the format of {project_name}_{service_name}.
timeout int No Timeout time (in seconds) to stop the container. The default value is 10.

Special request header (RequestHead)

None

Request body (RequestBody)

None

Response information

Response line (ResponseLine)

  1. HTTP/1.1 200 OK

Special response header (ResponseHead)

None

Response body (ResponseBody)

None

Example

Request example

  1. POST /services/test_web/stop HTTP/1.1

Return example

  1. HTTP/1.1 200 OK
Thank you! We've received your feedback.