Querying the Recycle Bin Configuration
Function
This API is used to query the recycle bin configuration.
URI
GET /v1/{project_id}/recycle-bin
Table 1 describes the parameters in the URI.
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. |
Request
None.
Response
Table 2 describes the response parameter.
Parameter |
Type |
Description |
---|---|---|
project_id |
String |
Specifies the project ID. |
switch |
String |
Specifies whether the recycle bin is enabled. |
policy |
Object |
Specifies the recycle bin policy. For details, see Table 3. |
Example Request
Query the recycle bin configuration.
GET https://{endpoint}/v1/{project_id}/recycle-bin
Example Response
{ "project_id": "74d4d6ac2da84aa5bdc6fed4efc20413", "switch": "off", "policy": { "recycle_threshold_day": 8, "retention_hour": 8 } }
Returned Values
Error Codes
See Error Codes.
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