Querying the Recycling Policy of a DB Instance
Function
This API is used to query the recycling policy of a DB instance.
URI
- URI format
- URI example
https://dds.cn-north-1.myhuaweicloud.com/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/recycle-policy
Table 1 Path parameters Name
Mandatory
Type
Description
project_id
Yes
String
Definition
Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.
Constraints
N/A
Range
N/A
Default Value
N/A
Request Parameters
|
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token obtained from IAM. For details, see Authentication. Constraints N/A Range N/A Default Value N/A |
Response Parameters
|
Name |
Type |
Description |
|---|---|---|
|
recycle_policy |
Table 4 object |
Definition Instance recycling policy. Range N/A |
Example Requests
GET https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/recycle-policy
Example Responses
{
"recycle_policy" : {
"enabled" : true,
"retention_period_in_days" : 3
}
}
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot