Querying AS Policies (V2)

Function

This API is used to query AS policies based on search criteria. The results are displayed by page.

URI

GET /autoscaling-api/v2/{project_id}/scaling_policy/{scaling_resource_id}/list

You can type the question mark (?) and ampersand (&) at the end of the URI to define multiple search criteria. AS policies can be searched by all optional parameters in the following table. For details, see the example request.

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

scaling_resource_id

Yes

String

Specifies the scaling resource ID.

scaling_policy_name

No

String

Specifies the AS policy name.

Supports fuzzy search.

scaling_policy_type

No

String

Specifies the AS policy type.

  • ALARM: alarm policy
  • SCHEDULED: scheduled policy
  • RECURRENCE: periodic policy

scaling_policy_id

No

String

Specifies the AS policy ID.

start_number

No

Integer

Specifies the start line number. The default value is 0. The minimum parameter value is 0.

limit

No

Integer

Specifies the number of query records. The default value is 20. The value range is 0 to 100.

Request Message

Response Message

Returned Values

Error Codes

See Error Codes.