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

Querying the Recycling Policy

Function

This API is used to query the recycling policy of the recycle bin.

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:listAll

read

-

-

rds:instance:list

-

URI

  • URI format

    GET /v3/{project_id}/instances/recycle-policy

  • 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

    N/A

    Range

    N/A

    Default Value

    N/A

Request

  • Parameter description

    None

  • URI example

    GET https://rds.ap-southeast-1.myhuaweicloud.com/v3/054ea741f700d4a32f1bc00f5c80dd4c/instances/recycle-policy

Response

  • Normal response
    Table 2 Parameters

    Parameter

    Type

    Description

    retention_period_in_days

    Integer

    Definition

    Number of days for retaining instances in the recycle bin.

    Range

    N/A

  • Example normal response
    {
       "retention_period_in_days" : 7
    }

Status Code

Error Code

For details, see Error Codes.