Executing, Enabling, or Disabling an AS Policy

Function

This interface is used to immediately execute, enable, or disable a specified AS policy.

An AS policy can be executed only when the AS group and AS policy are in the INSERVICE state. Otherwise, the execution fails.

URI

POST /autoscaling-api/v1/{project_id}/scaling_policy/{scaling_policy_id}/action

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

scaling_policy_id

Yes

String

Specifies the AS policy ID.

Request Message

Response Message

Returned Values

Error Codes

See Error Codes.