Updated on 2025-08-22 GMT+08:00

Updating a Backup Download Policy

Function

This API is used to update a backup download policy.

URI

PUT /v3/{project_id}/backups/download-policy

Table 1 Request Parameters

Name

Type

IN

Mandatory

Description

project_id

string

path

Yes

Definition

Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

Request Parameters

Table 2 Request header parameters

Name

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

User token obtained from IAM. For details, see Authentication.

Constraints

N/A

Range

N/A

Default Value

N/A

Table 3 Request body parameters

Name

Mandatory

Type

Description

id

Yes

String

Definition

Backup download policy ID. You can obtain the backup download policy ID by calling the API for Querying a Backup Download Policy.

Constraints

N/A

Range

N/A

Default Value

N/A

action

Yes

String

Definition

Backup download switch.

Constraints

N/A

Range

  • open: The backup download function is enabled, and backups can be downloaded from the Internet.
  • close: The backup download function is disabled, and backups cannot be downloaded from the Internet.

Default Value

N/A

Response Parameters

Status code: 200

Example Request

PUT https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/backups/download-policy 
{
 "id" : "fa56a711-4474-308b-b291-e57ab2812aed",
 "action" : "open" 
}

Example Response

Status code: 200

Success.

{ }

SDK

Click Document Database Service DDS SDK to download the SDK or view the SDK document. To learn how to install and authenticate an SDK, read the Usage section.

Status Code

For details, see Status Code.

Error Code

For details, see Error Code.