Updated on 2026-01-06 GMT+08:00

Querying the Auto Scaling Policy of a DB Instance

Function

This API is used to query the auto scaling policy of a DB instance.

Constraints

This API is supported for the MySQL DB engine only.

URI

  • URI format

    GET /v3/{project_id}/instances/{instance_id}/auto-scaling/policy

  • Parameter description
    Table 1 Parameters

    Parameter

    Type

    Mandatory

    Description

    project_id

    String

    Yes

    Project ID of a tenant in a region.

    For details about how to obtain the project ID, see Obtaining a Project ID.

    instance_id

    String

    Yes

    Instance ID.

Request

None

Example Request

Query the auto scaling policy of a DB instance.
GET https://{Endpoint}//v3/54623db08b174c858ba779d2aa7923a3/instances/aa650a108f034e83b24486fd1ff7be2fin01/auto-scaling/policy

Response

  • Normal response
    Table 2 Parameters

    Parameter

    Type

    Description

    instance_id

    String

    Instance ID.

    status

    String

    Whether auto scaling is enabled.

    Range

    • ON: Auto scaling is enabled.
    • OFF: Auto scaling is disabled.

    monitor_cycle

    Integer

    Observation window, in seconds.

    silence_cycle

    Integer

    Silent period, in seconds.

    enlarge_threshold

    Integer

    Threshold for triggering auto scale-up, in percentage.

    max_flavor

    String

    Maximum specifications.

    reduce_enabled

    String

    Whether auto scale-down is enabled.

    Range

    • ON: Auto scale-down is enabled.
    • OFF: Auto scale-down is disabled.

    reduce_threshold

    Integer

    Threshold for triggering auto scale-down.

    min_flavor

    String

    Minimum specifications.

  • Example normal response
    {
      "instance_id": "aea4d8a8d302484ea0319f04566e48e2in01",
      "status": "ON",
      "monitor_cycle": 300,
      "silence_cycle": 300,
      "enlarge_threshold": 50,
      "min_flavor": "rds.mysql.n1.large.2.ha",
      "max_flavor": "rds.mysql.n1.4xlarge.2.ha",
      "reduce_enabled": "ON",
      "reduce_threshold": 30
    }

Status Code

Error Code

For details, see Error Codes.