Querying Instances in the Recycle Bin
Function
This API is used to query instances in the recycle bin.
- Before calling an API, you need to understand the API in Authentication.
URI
- 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.
offset
Yes
Index offset. The query starts from the next piece of data indexed by this parameter. The value must be a number and cannot be a negative number.
limit
Yes
Number of data records on each page. The value range is from 1 to 50.
Request
Response
- Normal response
Table 2 Parameters Parameter
Type
Description
total_count
Integer
Number of data records in the recycle bin.
instances
Array of objects
Instance information. For details, see Table 3.
Table 3 instances field data structure description Parameter
Type
Description
id
String
Instance ID.
name
String
Instance name.
ha_mode
String
Instance type. The value can be Ha (primary/standby) or Single (single-node) and is case-insensitive.
engine_name
String
DB engine name.
engine_version
String
DB engine version.
pay_model
String
Billing mode. The value can be 0 (pay-per-use) or 1 (yearly/monthly).
created_at
String
Creation time in the "yyyy-mm-ddThh:mm:ssZ" format.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, if the time zone offset is one hour, the value of Z is +0100.
deleted_at
String
Deletion time in the "yyyy-mm-ddThh:mm:ssZ" format.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, if the time zone offset is one hour, the value of Z is +0100.
volume_type
String
Storage type. The value can be any of the following (case-sensitive):
- ULTRAHIGH: ultra-high I/O storage.
- ULTRAHIGHPRO: ultra-high I/O (advanced) storage. This storage type is supported only with ultra-high performance (advanced) instances (permission required).
- CLOUDSSD: cloud SSD storage. This storage type is supported only with general-purpose and dedicated instances.
- LOCALSSD: local SSD storage.
volume_size
Integer
Storage space in GB. The value must be a multiple of 10 and the value range is from 40 GB to 4,000 GB.
If you want to create an instance with storage space up to 6,000 GB or scale the storage up to 10,000 GB, contact customer service to apply for required permissions.
This parameter is invalid for read replicas. The storage space of a read replica is the same as that of the primary instance by default.
data_vip
String
Floating IP address.
data_vip_v6
String
Private IPv6 address.
enterprise_project_id
String
Enterprise project ID.
retained_until
String
Retention time in the "yyyy-mm-ddThh:mm:ssZ" format.
T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, if the time zone offset is one hour, the value of Z is +0100.
recycle_backup_id
String
Backup ID.
recycle_status
String
Backup status. The value can be any of the following (case-sensitive):
- BUILDING: The instance is being backed up and cannot be rebuilt.
- COMPLETED: The backup is complete and the instance can be rebuilt.
is_serverless
Boolean
Instance type.
- true: serverless
- false: non-serverless
- Example normal response
{ "total_count" : 2, "instances" : [ { "id" : "b7dea08c0f0e4fed9f1951fff9013639in01", "name" : "rds-8b86", "ha_mode" : "Ha", "engine_name" : "mysql", "engine_version" : "5.7.38", "pay_model" : "0", "created_at" : "2022-12-26T03:38:10+0000", "deleted_at" : "2023-01-09T08:57:10+0000", "volume_type" : "SSD", "volume_size" : 80, "data_vip" : "192.168.226.188", "enterprise_project_id" : "0", "retained_until" : "2023-01-16T09:20:48+0000", "recycle_backup_id" : "e8e3c329c20442f5aec21b95a8cdaa52br01", "recycle_status" : "COMPLETED", "is_serverless" : false }, { "id" : "cc6d0dff4a9145d0a1335c35a866de23in01", "name" : "rds-82b2", "ha_mode" : "Ha", "engine_name" : "mysql", "engine_version" : "5.7.38", "pay_model" : "0", "created_at" : "2022-12-26T06:17:58+0000", "deleted_at" : "2023-01-09T08:56:49+0000", "volume_type" : "SSD", "volume_size" : 200, "data_vip" : "192.168.2.24", "enterprise_project_id" : "0", "retained_until" : "2023-01-16T09:20:45+0000", "recycle_backup_id" : "3f35a348ae0943979bd302a9788f49e7br01", "recycle_status" : "COMPLETED", "is_serverless" : false } ] }
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, 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