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>
19 KiB
Querying Instances in the Recycle Bin
Function
This API is used to query all instances in the recycle bin.
URI
GET https://{Endpoint}/v3/{project_id}/recycle-instances
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
offset |
No |
Integer |
Index offset.
|
limit |
No |
Integer |
Maximum records to be queried.
|
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
total_count |
Integer |
Total number of records. |
instances |
Array of objects |
Instance information. For details, see Table 5. |
Parameter |
Type |
Description |
|---|---|---|
id |
String |
Instance ID. |
name |
String |
Instance name. |
mode |
String |
Instance type. The value can be:
|
data_store |
object |
Database information For details, see Table 6. |
charge_type |
String |
Billing mode.
|
enterprise_project_id |
String |
Enterprise project ID. The value 0 indicates that the default enterprise project is used. |
backup_id |
String |
Backup ID. |
created_at |
String |
Instance creation time. |
deleted_at |
String |
Instance deletion time. |
retained_until |
String |
Retention end time. |
Example Requests
Example Responses
Status code: 200
Successful request
{
"total_count" : 1,
"instances" : [ {
"id" : "07fc12a8e0e94df7a3fcf53d0b5e1605in06",
"name" : "test",
"mode" : "Cluster",
"data_store" : {
"type" : "cassandra",
"version" : "3.11"
},
"charge_type" : "postPaid",
"enterprise_project_id" : "0",
"backup_id" : "bf9ee62a7f7044c583c6765c916c36edbr02",
"created_at" : "2022-01-01T10:00:00",
"deleted_at" : "2022-02-01T11:00:00",
"retained_until" : "2022-02-02T11:00:00"
} ]
}
Status Codes
See Status Codes.
Error Codes
See Error Codes.