Double column
curl
API
CLI

Services /

Scale service

Modifies the scaling settings for the given service.

URL parameters

    • project

      string required

      ID of the project

    • service

      string required

      ID of the service

Request attributes

  • object

    • instances

      integer

      The number of instances to scale the service to

    • deploymentPlan

      string

      ID of the deployment plan to switch to.

      pattern: [A-Za-z0-9-]

API
CLI

POST /v1beta/projects/{project}/services/{service}/scale

Example request

request body

curl

curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"instances":1,"deploymentPlan":"micro"}' \
  https://api.northflank.com/v1beta/projects/{project}/services/{service}/scale

Example response

200 OK

success

© 2020 Northflank Ltd. All rights reserved.

TermsPrivacy

contact@northflank.com