service update

POST /services/(name)/update

Update the service.

Example request:

Scale replicas to 2:

POST /services/http/update HTTP/1.1
Content-Type: application/json

{
  "Replicas": 2
}

Attach a floating IP to service:

POST /services/http/update HTTP/1.1
Content-Type: application/json

{
  "FIP": "211.98.26.102"
}

Detach a floating IP to service:

POST /services/http/update HTTP/1.1
Content-Type: application/json

{
  "FIP": ""
}

Rolling update container image for a service:

Example response:

JSON parameters:

  • Image - new image for containers.

  • FIP - the fip to attach. Set fip to "" for detaching it.

  • Replicas - new replicas of the service.

Status Codes:

  • 200 – no error

  • 500 – server error

Last updated