Updated on 2024-06-07 GMT+08:00

Querying the Recycling Policy

Function

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

  • Before calling an API, you need to understand the API in Authentication.

URI

  • URI format

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

  • Parameter description
    Table 1 Parameters

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Project ID of a tenant in a region.

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

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

    Number of days for retaining instances in the recycle bin.

  • Example normal response
    {
       "retention_period_in_days" : 7
    }

Status Code

Error Code

For details, see Error Codes.