This topic describes how to query all tenant information in the recycle bin through the API.
Request parameters
The following table describes the request parameters.
| Parameter | Type | Description |
|---|---|---|
| object_name | string | The name of the tenant in the recycle bin. |
| original_tenant_name | string | The original name of the tenant. |
| can_undrop | string | Whether the tenant can be restored (YES/NO). |
| can_purge | string | Whether the tenant can be purged (YES/NO). |
Example
Request example
GET 10.10.10.1:2886/api/v1/recyclebin/tenants
Response example
{
"successful": true,
"timestamp": "2024-10-14T16:12:44.394940604+08:00",
"duration": 40,
"status": 200,
"traceId": "5b7f4130ec2be90f",
"data": {
"contents": [
{
"object_name": "__recycle_$_123456_1728893438913560",
"original_tenant_name": "t1",
"can_undrop": "YES",
"can_purge": "YES"
}
]
}
}
References
You can also call API methods through SDKs.
For more information about how to call the API method through the obshell-sdk-python SDK, see Query all tenant information in the recycle bin.
For more information about how to call the API method through the obshell-sdk-go SDK, see Query all tenant information in the recycle bin.