Scale an app or agent
scale_serviceSet how many processes of one type an app or agent runs. For an app, give process_type, such as web, and a count from 0 up to the organization's cap. For an agent, count is 0 (paused) or 1 (running). Scaling down stops running processes, and scaling web to 0 takes an app's URL offline, so confirm with the user first. Setting the count it already has changes nothing. Websites run no process and are refused. Changing an agent's model is not offered here. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | The kind you mean. Omit to scale whatever the name holds; give it to have a name holding another kind refused. | |
| name | Yes | Required. The app's or agent's name. | |
| count | Yes | Required. How many processes of the type to run. An agent takes 0 or 1. | |
| org_name | No | The Valet organization it belongs to. Omit to use the organization the account joined first. | |
| process_type | No | Required for an app: the Procfile process type to scale, such as web. An agent has none; omit it. |