Jobs /
Scale job
Modifies the scaling settings for the given job.
Required permission
Project > Jobs > Deployment > Scale Job
Path parameters
projectId
string requiredID of the projectjobId
string requiredID of the job
Request body
- {object}
deploymentPlan
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 MBone of1024, 2048, 5120, 10240, 20480, 30720, 40960, 51200, 61440, 81920, 102400, 122880, 153600, 204800, 256000, 307200, 409600, 512000min1024max204800shmSize
integerConfigures the amount of available memory-backed disk space available to /dev/shmone of64, 128, 256, 512, 1024, 2048, 5120, 10240, 20480, 30720, 40960, 51200, 61440, 81920, 102400, 122880, 143360min64max61440
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
POST /v1/projects/{projectId}/jobs/{jobId}/scale
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"deploymentPlan":"nf-compute-20","storage":{"ephemeralStorage":{"storageSize":1024}}}' \
https://api.northflank.com/v1/projects/{projectId}/jobs/{jobId}/scale
Example response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}