GET
/
v1
/
deletion-cost
Get Container Instance Deletion Cost
curl --request GET \
  --url http://169.254.169.254/v1/deletion-cost \
  --header 'Metadata: <metadata>'
{
  "deletion_cost": 100
}
Last Updated: May 10, 2025

Headers

Metadata
enum<string>
required

Required header to indicate metadata request

Available options:
true

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