ci.cloud-spend-cap.setSet, raise or remove the organization cap on CI cloud spend
At the cap no runner pool of the organization rents a cloud machine; cloud machines finish their job and leave, and jobs wait for own-host slots (a cloud-only pool’s jobs wait until the month ends). Owners and admins get one mail at 80 % and one when runs have waited 30 minutes because of the cap. A pool can carry its own cap as well (monthlyCloudCapEur on the pool); whichever is reached first applies.
Request syntax
PUT /ci/api/cloud-spend-cap
{
"monthlyCloudCapEur": "number"
}Request body
monthlyCloudCapEurRequirednumber
Most all runner pools of the organization together may spend on cloud machines per billing month, euros net, to the cent; 0 keeps every pool on own hosts; null removes the cap
Constraints: 0-1000000
May be null.
Response
200 with the cap as get shows it. Every pool is rescaled at once: a cap raised above this month’s spend resumes cloud overflow, one at or below it pauses it.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
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 ci:PutCloudSpendCap 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 ci cloud-spend-cap set --monthly-cloud-cap-eur 1curl -X PUT "https://console.platform.deutschecloud.app/ci/api/cloud-spend-cap" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"monthlyCloudCapEur":1}'import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.ci.cloudSpendCap.set({ monthlyCloudCapEur: 0 });from dcloud import Client
client = Client()
result = client.ci.cloud_spend_cap.set(monthly_cloud_cap_eur=0)Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_ci_cloud-spend-cap_set.