Files
doc-exports/docs/ddm/api-ref/en-us_topic_0000002332869369.html
wangdengke2 823df869a9 ddm_api
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: wangdengke2 <wangdengke2@huawei.com>
Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
2026-03-03 12:01:43 +00:00

24 KiB

Querying Instances Available for Restoration (a V3 API)

Function

This API is used to query instances available for restoration.

Constraints

None

URI

GET /v3/{project_id}/instances/{instance_id}/backups/restorable-instances

Table 1 Path parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Project ID of a tenant in a region

instance_id

String

Yes

Instance ID

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

You can obtain the token by calling the IAM API used to obtain a user token.

Table 3 Query parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Index offset.

The query starts from the next piece of data indexed by this parameter. The value is 0 by default.

The value must be a number but cannot be a negative number.

limit

No

Integer

Maximum records to be queried.

Value range: 1 to 128

If the parameter value is not specified, 10 records are queried by default.

Example Request

Querying instances available for restoration
GET https://ddm.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/1f5c9fd6cd984056ba89c8c87cc03278in09/backups/restorable-instances

Response

  • Normal response
    Table 4 Response body parameters

    Parameter

    Type

    Description

    instances

    Array of QueryDDM4RestoreResp objects

    Associated data node instances.

    offset

    Integer

    Which page the server starts returning items

    limit

    Integer

    Number of records displayed on each page

    total

    Integer

    Total number of records

    Table 5 QueryDDM4RestoreResp

    Parameter

    Type

    Description

    instance_id

    String

    Instance ID

    instance_name

    String

    Instance name

    status

    String

    Instance status. It can be obtained from DDM Instance Statuses.

    available

    Boolean

    Available or not

    unavailable_reason

    String

    Unavailability cause, which can be:

    • There is a common account for the target instance.
    • Another action is being performed on the target instance.
    • The target instance has been associated with another DN.
    • The instance has been frozen.

    vpc_name

    String

    Name of a VPC

  • Normal response example
    {
      "instances": [
        {
          "instance_id": "3b65c609427c4b20bc0ae93e161dc7adin09",
          "instance_name": "ddm-agent-create-instance1",
          "status": "normal",
          "available": true,
          "unavailable_reason": "",
          "vpc_name": "vpc-ddm-172"
        }
      ],
      "offset": 0,
      "limit": 10,
      "total": 1
    }
  • Abnormal response

    For details, see Abnormal Request Results.

Status Codes

Error Codes

For details, see Error Codes.