Skip to main content
PUT
/
v1
/
deletion-cost
Replace Container Instance Deletion Cost
curl --request PUT \
  --url http://169.254.169.254/v1/deletion-cost \
  --header 'Content-Type: application/json' \
  --header 'Metadata: <metadata>' \
  --data '
{
  "deletion_cost": -1
}
'
{
  "code": "<string>",
  "detail": "<string>",
  "errors": {},
  "instance": "<string>",
  "status": 349,
  "title": "<string>",
  "type": "about:blank"
}

Documentation Index

Fetch the complete documentation index at: https://docs.salad.com/llms.txt

Use this file to discover all available pages before exploring further.

Last Updated: May 10, 2025

Headers

Metadata
string
required

A custom request header required by all operations.

Allowed value: "true"

Body

application/json

The deletion cost of the current container instance.

deletion_cost
integer<int32>
required

An integer value that identifies the relative cost to the application running across the container group if the current container instance is deleted. A higher value indicates a higher cost, and a lower value indicates a lower cost. If the container group is scaled down, the scheduler will attempt to delete the container instances with the lowest deletion costs first.

Required range: -2147483648 <= x <= 2147483647
Example:

100

Response

No Content