Services /
Scale service
Deprecated
This endpoint is deprecated and will be removed in the future. Please avoid making requests to this endpoint.
Requests should instead use the relevant PATCH endpoint.
Modifies the scaling settings for the given service.
Required permission
Project > Services > Deployment > Scale Service
Path parameters
projectId
string requiredID of the projectserviceId
string requiredID of the service
Request body
- {object}
instances
integerThe number of instances to scale the service todeploymentPlan
stringID of the deployment plan to switch to.min length3max length100pattern^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$storage
{object}ephemeralStorage
{object}storageSize
integerEphemeral storage per container in MBmin1024shmSize
integerConfigures the amount of available memory-backed disk space available to /dev/shmmin64gracePeriodSeconds
integerThe maximum amount of time the process has to shut down after receiving a SIGTERM signal before it is forcefully shut down SIGKILL by the system.min15max600
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
POST /v1/projects/{projectId}/services/{serviceId}/scale
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"instances":1,"deploymentPlan":"nf-compute-20","storage":{"ephemeralStorage":{"storageSize":1024}}}' \
https://api.northflank.com/v1/projects/{projectId}/services/{serviceId}/scaleExample response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}