Querying Instances in the Recycle Bin
Function
This API is used to query all instances in the recycle bin.
URI
GET /v3/{project_id}/recycle-instances
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        project_id  | 
      
        Yes  | 
      
        String  | 
      
        Explanation: Project ID of a user in a region. To obtain this value, see Obtaining a Project ID. Constraints: N/A Values: N/A Default value: N/A  | 
     
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        offset  | 
      
        No  | 
      
        Integer  | 
      
        Explanation: Index offset. The query starts from the next piece of data indexed by this parameter. Constraints: The value must be greater than or equal to 0. Values: N/A Default value: 0: The query starts from the first piece of data.  | 
     
| 
        limit  | 
      
        No  | 
      
        Integer  | 
      
        Explanation: Maximum records to be queried Constraints: N/A Values: 1–100 Default value: 100  | 
     
Request Parameters
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        X-Auth-Token  | 
      
        Yes  | 
      
        String  | 
      
        Explanation: User token You can obtain the token by calling the IAM API by following Obtaining a User Token Through Password Authentication. Constraints: N/A Values: N/A Default value: N/A  | 
     
Response Parameters
Status code: 200
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        total_count  | 
      
        Integer  | 
      
        Explanation: Total number of records Values: N/A  | 
     
| 
        instances  | 
      
        Array of objects  | 
      
        Explanation: Instance information. For details, see Table 5. Values: N/A  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        id  | 
      
        String  | 
      
        Explanation: Instance ID Values: N/A  | 
     
| 
        name  | 
      
        String  | 
      
        Explanation: Instance name Values: N/A  | 
     
| 
        mode  | 
      
        String  | 
      
        Explanation: Instance type Values: 
  | 
     
| 
        product_type  | 
      
        String  | 
      
        Explanation: Product type Values: This parameter is used for GeminiDB Redis instances with cloud native storage. The value can be: 
  | 
     
| 
        datastore  | 
      
        object  | 
      
        Explanation: Database information For details, see Table 6. Values: N/A  | 
     
| 
        charge_mode  | 
      
        String  | 
      
        Explanation: Billing mode Values: 
  | 
     
| 
        enterprise_project_id  | 
      
        String  | 
      
        Explanation: Enterprise project ID. 0 indicates that the default enterprise project is used. Values: N/A  | 
     
| 
        backup_id  | 
      
        String  | 
      
        Explanation: Backup ID Values: N/A  | 
     
| 
        created_at  | 
      
        String  | 
      
        Explanation: Instance creation time Values: N/A  | 
     
| 
        deleted_at  | 
      
        String  | 
      
        Explanation: Instance deletion time Values: N/A  | 
     
| 
        retained_until  | 
      
        String  | 
      
        Explanation: Retention end time Values: N/A  | 
     
Example Request
Example Response
Status code: 200
Successful request
{ 
  "total_count" : 1, 
  "instances" : [ { 
    "id" : "07fc12a8e0e94df7a3fcf53d0b5e1605in06", 
    "name" : "test", 
    "mode" : "Cluster", 
    "datastore" : { 
      "type" : "cassandra", 
      "version" : "3.11" 
    }, 
    "charge_mode" : "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
For details, see Status Codes.
Error Codes
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