Querying DB Instances in the Recycle Bin
API Description
This API is used to query DB instances in the recycle bin.
URI
- URI format
GET https://{Endpoint}/v3/{project_id}/recycle-instances
Table 1 Path parameters Name
Mandatory
Type
Description
project_id
Yes
String
Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.
Table 2 Query parameters Parameter
Mandatory
Type
Description
offset
No
Integer
Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The default value is 0, indicating that the query starts from the first piece of data. The value must be a positive integer.
limit
No
Integer
Number of records displayed on each page. The default value is 100.
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token |
Response Parameters
|
Name |
Type |
Description |
|---|---|---|
|
total_count |
Integer |
Total number of records. |
|
instances |
Array of Table 4 objects |
Instance information. |
|
Name |
Type |
Description |
|---|---|---|
|
id |
String |
DB instance ID. |
|
name |
String |
DB instance name. |
|
mode |
String |
Instance type. Clusters and replica sets are supported. The value can be:
|
|
datastore |
Table 5 object |
Database information. |
|
pay_mode |
String |
Billing mode.
|
|
enterprise_project_id |
String |
Enterprise project ID. The value 0 indicates the default enterprise project. |
|
backup_id |
String |
Backup ID. |
|
created_at |
String |
Creation time. |
|
deleted_at |
String |
Deletion time. |
|
retained_until |
String |
Retention end time. |
|
Name |
Type |
Description |
|---|---|---|
|
type |
String |
Database version type. The value is DDS-Community. Enumerated values:
|
|
version |
String |
Database version. Versions 3.4, 4.0, 4.2, and 4.4 are supported. The value can be 3.4, 4.0, 4.2, or 4.4. |
- Example response
{ "total_count" : 1, "instances" : [ { "id" : "07fc12a8e0e94df7a3fcf53d0b5e1605in02", "name" : "test1", "mode" : "ReplicaSet", "datastore" : { "type" : "DDS-Community", "version" : "4.0" }, "pay_mode" : "0", "enterprise_project_id" : "0", "backup_id" : "bf9ee62a7f7044c583c6765c916c36edbr02", "created_at" : "2022-01-01T10:00:00", "deleted_at" : "2022-02-01T10:00:00", "retained_until" : "2022-05-01T10:00:00" } ] }
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