Delete Scaling Policy
DELETE
/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/environments/example/scaling-policies?metric=CPUUtilization';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/environments/example/scaling-policies?metric=CPUUtilization' \ --header 'Authorization: Bearer <token>'Deletes a specific scaling policy for the environment. Specify the metric type or policy name to delete a single policy. If neither is provided, all policies will be deleted.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
application
required
string
environment
required
string
Query Parameters
Section titled “Query Parameters”metric
string
Optional. Delete by metric type.
policyName
string
Optional. Delete by exact policy name.
Responses
Section titled “Responses”Scaling policy deleted successfully.
