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": 100
}'
{
  "deletion_cost": 100
}
Last Updated: May 10, 2025

Headers

Metadata
enum<string>
required

Required header to indicate metadata request

Available options:
true

Body

application/json

The deletion cost of the current container instance.

deletion_cost
integer
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
Examples:

100

Response

OK

The deletion cost of the current container instance.

deletion_cost
integer
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
Examples:

100