Stop all the containers in a service.

Request information

Request line (RequestLine)

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

Request line parameter (URI Param)

Name  Type  Required  Description 
service_id string  Yes  The service ID in the format of {project_name}_{service_name}
timeout  int  No  The timeout time (in seconds) for stopping containers. The default value is  10.

Special request header (RequestHead)

None.

Request body (RequestBody)

None.

Response information

Response line (ResponseLine)

HTTP/1.1 200 OK

Special response header (ResponseHead)

None.

Response body (ResponseBody)

None.

Example 

Request example 

POST /services/test_web/stop HTTP/1.1

Response example 

HTTP/1.1 200 OK