Updated on 2026-01-06 GMT+08:00

Querying the Recycling Policy

Function

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

URI

  • URI format

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

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Explanation:

    Project ID of a tenant in a region.

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

    Constraints:

    N/A

    Value 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

    Explanation:

    Number of days for retaining instances in the recycle bin.

    Value range:

    N/A

  • Example normal response
    {
       "retention_period_in_days" : 7
    }

Status Code

Error Code

For details, see Error Codes.