Retrieves the list of tenants accessible to the current user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListUserTenants |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. You can call the GetUserActiveTenant operation to obtain the tenant ID. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
C478D9DA-3615-50F6-A2BC-7855AD65**** |
| TenantList |
array<object> |
The returned tenants. |
|
|
object |
|||
| Status |
string |
The tenant status. Valid values:
|
ACTIVE |
| Tid |
integer |
The tenant ID. |
3*** |
| TenantName |
string |
The tenant name. |
test_name |
| ErrorCode |
string |
The error code. |
TenantNotExist |
| ErrorMessage |
string |
The error message. |
The specified tenant does not exist. |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "C478D9DA-3615-50F6-A2BC-7855AD65****",
"TenantList": [
{
"Status": "ACTIVE",
"Tid": 0,
"TenantName": "test_name"
}
],
"ErrorCode": "TenantNotExist",
"ErrorMessage": "The specified tenant does not exist.",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.