Enabling or Disabling an AS Group

Function

This interface is used to enable or disable a specified AS group.

For a disabled AS group, AS does not automatically trigger any scaling actions. When an AS group has an in-progress scaling action, the scaling action does not stop immediately after the AS group is disabled.

URI

POST /autoscaling-api/v1/{project_id}/scaling_group/{scaling_group_id}/action

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

scaling_group_id

Yes

String

Specifies the AS group ID.

Request

Table 2 Request parameters

Parameter

Mandatory

Type

Description

action

Yes

String

Specifies a flag for enabling or disabling an AS group.

  • resume: enables the AS group.
  • pause: disables the AS group.

Example Request

Response

None

Example Response

None

Returned Values

Error Codes

See Error Codes.