Updated on 2025-12-09 GMT+08:00

Querying Distributor Instances

Function

This API is used to query instances that can be configured as distributors of the current instance.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
  • If you are using role/policy-based authorization, see Permissions and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

rds:instance:update

write

-

-

rds:instance:modify

-

URI

  • URI format

    GET /v3/{project_id}/instances/{instance_id}/replication/distributors?offset={offset}&limit={limit}

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Definition

    Project ID of a tenant in a region.

    To obtain the value, see Obtaining a Project ID.

    Constraints

    The value cannot be empty.

    Range

    N/A

    Default Value

    N/A

    instance_id

    Yes

    Definition

    Instance ID.

    Constraints

    The value cannot be empty.

    Range

    N/A

    Default Value

    N/A

    offset

    No

    Definition

    Index offset. The query starts from the next piece of data indexed by this parameter.

    Constraints

    N/A

    Range

    The value must be a non-negative number.

    Default Value

    0: The query starts from the first data record.

    limit

    No

    Definition

    Number of records returned by a query.

    Constraints

    N/A

    Range

    1–100

    Default Value

    10

Request

  • Request parameters

    None

  • URI example

    GET https://rds.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/72ee4cc4607347049df9ad50f615bbd8in04/replication/distributors?offset=0&limit=10

Response

  • Normal response
    Table 2 Parameters

    Parameter

    Type

    Description

    instances

    Array of objects

    Definition

    List of instances.

    For details, see Table 3.

    total_count

    Integer

    Definition

    Total number of instances.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    Table 3 instances element structure description

    Parameter

    Type

    Description

    instance_id

    String

    Definition

    Instance ID.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    instance_name

    String

    Definition

    Instance name.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

    data_vip

    String

    Definition

    Floating IP address.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

  • Example normal response
    {
        "instances": [
            {
                "instance_id": "5a0269d7b18442888e16c31341114312in04",
                "instance_name": "rds-5898",
                "data_vip": "192.168.0.140"
            },
            {
                "instance_id": "e76b3f4020464f92a9824a78e2183f62in04",
                "instance_name": "rds-6c62",
                "data_vip": "192.168.0.216"
            }
        ],
        "total_count": 2
    }
  • Abnormal response

    For details, see Abnormal Request Results.

Status Code

Error Code

For details, see Error Codes.