Updated on 2025-08-20 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

    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.