Files
doc-exports/docs/ddm/api-ref/en-us_topic_0000002181783554.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

28 KiB

Querying Backups (a V3 API)

Function

This API is used to query backups.

Constraints

None

URI

GET /v3/{project_id}/backups

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region

For how to obtain a project ID, see Obtaining a Project 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 obtained by default.

Example Request

This API is used to query backups.

GET https://ddm.eu-de.otc.t-systems.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/backups?offset=0&limit=10

Response

  • Normal response
Table 4 Response body parameters

Parameter

Type

Description

backups

Array of BackupInfo objects

Backup list.

offset

Integer

Which page the server starts returning items

limit

Integer

Number of records displayed on each page

total

Integer

Total number of backup records

Table 5 BackupInfo

Parameter

Type

Description

id

String

Backup ID

name

String

Parameter template name

description

String

Parameter template description

status

String

Backup status. It can be obtained from Backup Statuses.

instance_id

String

Instance ID

instance_name

String

Instance name

instance_status

String

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

file_size

Number

Backup size, in KB

created

String

Creation time. The format is yyyy-MM-ddTHH:mm:ssZ.

T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Central European time zone, the offset is +0100.

updated

String

Update time. The format is yyyy-MM-ddTHH:mm:ssZ.

T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, in the Central European time zone, the offset is +0100.

backup_type

String

Backup type:

auto_metadata: Metadata backup is triggered by a scheduled task every day.

metadata: Metadata backup is not triggered by a scheduled task. For example, metadata is backed up before instance deletion.

  • Normal response example
{
  "backups": [
    {
      "id": "c131f9339****5cdebe350228br09",
      "name": "Backup",
      "description": "auto metadata backup",
      "status": "normal",
      "instance_id": "169f4f2fd6****04385a18ain09",
      "instance_name": "ddm-test",
      "instance_status": "normal",
      "file_size": 5.419922,
      "created": "2025-02-19T02:50:20+0000",
      "updated": "2025-02-19T02:50:37+0000",
      "backup_type": "auto_metadata"
    }
  ],
  "total": 1,
  "offset": 0,
  "limit": 10
}

Status Codes

Error Codes

For details, see Error Codes.