Querying the Replication Capability

Function

This API is used to query the replication capability of the current region. For example, you can use this API to query the supported destination regions when the current region functions as the source region.

URI

  • URI format

    GET https://{endpoint}/v1/{project_id}/replication_capabilities

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID

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

Request

  • Element description

None

  • Example request
    GET https://{endpoint}/v1/{project_id}/replication_capabilities

Response

  • Element description

    Parameter

    Type

    Description

    regions

    region

    List of regions that support replication

  • Parameter description of field region

    Parameter

    Type

    Description

    name

    String

    Region where the cloud service resides

    replication_destinations

    List<String>

    List of supported destination regions

  • Example response
    {
      "regions" : [ {
        "name" : "cn-north-1",
        "replication_destinations" : [ "cn-south-1", "cn-east-2"]
      } ]
    }

Status Codes

  • Normal

    Status Code

    Description

    200

    OK

  • Abnormal

    Status Code

    Description

    400

    Invalid request parameters.

    401

    Authentication failed.

    403

    No operation permission.

    404

    Requested object not found.

    500

    Service internal error.

    503

    Service unavailable.

Error Codes

For details, see Error Codes.