Terminate a service

Last Updated: Jan 09, 2018

Description

Send signals to all containers in a service. The default signal terminates all the containers.

Request information

Request line (RequestLine)

  1. POST /services/{service_id}/kill?signal={signal} 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}.
signal string No The default value is KILL.

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/kill HTTP/1.1

Return example

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