deploy.autoscaling.deleteTurn off an app's replica autoscaling
Request syntax
DELETE /deploy/api/apps/{id}/autoscalingPath parameters
idRequiredstring
Constraints: uuid
Response
200 with `data`: the app stays on its current machines. 404 when autoscaling is off; 409 while a machine is draining.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Fields of data
appIdAlwaysstring
The appconfigAlwaysobject, may be null
null: replicas are fixedconfig.minReplicasAlwaysnumber
Fewest machinesconfig.maxReplicasAlwaysnumber
Most machines; above 1 puts the app behind its load balancer at every sizeconfig.policiesAlwaysarray of object
The scaling policy, a list of exactly oneconfig.policies[].metricAlwaysone of cpu, memory, requests, queue
What is read per machine: cpu or memory (%), requests (per second), queue (messages waiting)config.policies[].targetAlwaysnumber
The reading per machine to hold: a percentage (≤ 100), requests per second, or messagesconfig.policies[].queueIdWhen presentstring, may be null
The queue whose backlog is read; only and always for metric queueconfig.scaleOutCooldownSecondsWhen presentnumber
Seconds after a scale-out before the next oneconfig.scaleInCooldownSecondsWhen presentnumber
Seconds after any change before a scale-inconfig.drainSecondsWhen presentnumber
Most seconds a machine out of the load balancer may finish its requests before it is deletedstateAlwaysobject
What the controller remembersstate.lastScaleOutAtWhen presentstring, may be null
The last scale-outstate.lastScaleInAtWhen presentstring, may be null
The last scale-instate.lastReadingWhen presentobject, may be null
The last checkstate.lastReading.atAlwaysstring
When the check ranstate.lastReading.metricAlwaysone of cpu, memory, requests, queue
The metric readstate.lastReading.valueAlwaysnumber, may be null
The reading per machine; null when there was nonestate.lastReading.machinesAlwaysnumber
Machines measuredstate.lastReading.desiredAlwaysnumber
Machines the check asked forstate.lastReading.noteAlwaysstring
The decision, in a sentencestate.drainingWhen presentobject, may be null
A machine out of the load balancer, finishing its requests before it is deletedstate.draining.instanceIdAlwaysstring
The machinestate.draining.sinceAlwaysstring
When it left the load balancerreplicasAlwaysnumber
Machines the app runs on now (the controller owns it while on)loadBalancedAlwaysboolean
Whether the app sits behind its own load balancermachinesAlwaysarray of object
The app’s machines, oldest firstmachines[].instanceIdAlwaysstring
The machine’s instance idmachines[].nameAlwaysstring, may be null
Its namemachines[].createdAtAlwaysstring
When it was boughtmachines[].drainingAlwaysboolean
Out of the load balancer, about to be deletedmachines[].requestsInFlightAlwaysnumber, may be null
Requests it was serving on its last report; null before its agent sent onemetricsAlwaysarray of one of cpu, memory, requests, queue
Metrics an app can scale onhistoryAlwaysmap
Per-minute series recorded by each pass, oldest firsteventsAlwaysarray of object
The 50 newest autoscaling decisions, newest firstevents[].atAlwaysstring
Whenevents[].levelAlwaysstring
info, warn or errorevents[].messageAlwaysstring
What was decided or done, and why
Checked against the handlers: every route test validates their answers against this schema.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow deploy:DeleteAutoscaling on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud deploy autoscaling delete idcurl -X DELETE "https://console.platform.deutschecloud.app/deploy/api/apps/id/autoscaling" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.deploy.autoscaling.delete({ id: "id" });from dcloud import Client
client = Client()
result = client.deploy.autoscaling.delete(id="id")Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_deploy_autoscaling_delete.