Querying AS Policy Execution Logs

Function

This API is used to query the historical records of AS policy execution based on search criteria. The results are displayed by page.

URI

GET /autoscaling-api/v1/{project_id}/scaling_policy_execute_log/{scaling_policy_id}

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

Yes

String

Specifies the AS policy ID.

log_id

No

String

Specifies the ID of an AS policy execution log.

scaling_resource_type

No

String

Specifies the scaling resource type.

  • AS group: SCALING_GROUP
  • Bandwidth: BANDWIDTH

scaling_resource_id

No

String

Specifies the scaling resource ID.

execute_type

No

String

Specifies the AS policy execution type.

  • SCHEDULED: automatically triggered at a specified time point
  • RECURRENCE: automatically triggered at a specified time period
  • ALARM: alarm-triggered
  • MANUAL: manually triggered

start_time

No

String

Specifies the start time that complies with UTC for querying AS policy execution logs. The format of the start time is yyyy-MM-ddThh:mm:ssZ.

end_time

No

String

Specifies the end time that complies with UTC for querying AS policy execution logs. The format of the end time is yyyy-MM-ddThh:mm:ssZ.

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.