Querying AS Groups

Function

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

URI

GET /autoscaling-api/v1/{project_id}/scaling_group

You can type the question mark (?) and ampersand (&) at the end of the URI to define multiple search criteria. AS groups 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_group_name

No

String

Specifies the AS group name.

Fuzzy search is supported.

scaling_configuration_id

No

String

Specifies the AS configuration ID, which can be obtained using the API for listing AS configurations. For details, see Querying AS configurations.

scaling_group_status

No

String

Specifies the AS group status. The options are as follows:

  • INSERVICE: indicates that the AS group is functional.
  • PAUSED: indicates that the AS group is paused.
  • ERROR: indicates that the AS group malfunctions.
  • DELETING: indicates that the AS group is being deleted.

start_number

No

Integer

Specifies the start line number. The default value is 0. The minimum value is 0, and there is no limit on the maximum value.

limit

No

Integer

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

enterprise_project_id

No

String

Specifies the enterprise project ID. If all_granted_eps is specified, AS groups in all enterprise projects you have permissions to are listed..

Request Message

Response Message

Returned Values

Error Codes

See Error Codes.