forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
8.2 KiB
8.2 KiB
Querying the Recycling Policy
Function
This API is used to query the recycling policy.
URI
GET https://{Endpoint}/v3/{project_id}/instances/recycle-policy
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID of a user in a region. To obtain this value, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
recycle_policy |
object |
Recycling policy. For details, see Table 4. |
Example Requests
Example Responses
Status code: 200
Success
{
"recycle_policy": {
"retention_period_in_days": 7
}
}
Status Codes
See Status Codes.
Error Codes
See Error Codes.
Parent topic: Backups and Restorations