Queries details of the active tenant.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetUserActiveTenant |
The operation that you want to perform. Set the value to GetUserActiveTenant. |
RegionId | String | No | cn-hangzhou |
The ID of the region in which Data Management (DMS) is activated. Set this parameter to the ID of the region that is in proximity to your applications. For more information about the valid values of this parameter, see RegionID parameter. |
Tid | Long | No | 3*** |
The ID of the tenant. You can call the GetUserActiveTenant operation to query the tenant ID. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Tenant | Object |
The details of the tenant. |
|
Status | String | ACTIVE |
The status of the tenant. Valid values:
|
Tid | Long | 3*** |
The ID of the tenant. |
TenantName | String | test_name |
The name of the tenant. |
RequestId | String | 4B63CAC5-BD7F-5C7C-82C9-59DFFBC3C5C2 |
The ID of the request. |
ErrorCode | String | TenantNotExist |
The error code. |
ErrorMessage | String | The specified tenant does not exist. |
The error message. |
Success | Boolean | true |
Indicates whether the request is successful. Valid values:
|
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=GetUserActiveTenant
&Tid=3***
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetUserActiveTenantResponse>
<Tenant>
<Status>ACTIVE</Status>
<TenantName>test_name</TenantName>
<Tid>3***</Tid>
</Tenant>
<RequestId>4B63CAC5-BD7F-5C7C-82C9-59DFFBC3****</RequestId>
<Success>true</Success>
</GetUserActiveTenantResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Tenant" : {
"Status" : "ACTIVE",
"TenantName" : "test_name",
"Tid" : "3***"
},
"RequestId" : "4B63CAC5-BD7F-5C7C-82C9-59DFFBC3****",
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.