GetTenant
Queries the MaxCompute tenant ID and the settings for a specified region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetTenant |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tenants HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The MaxCompute tenant ID. If omitted, the tenant of the current caller is used. |
1234567890123456 |
| region |
string |
No |
The region ID. If omitted, the region of the current request is used. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The unique ID of the API request. Provide this ID when you troubleshoot API call issues. |
0be3e0aa16667684362147582e038f |
| httpCode |
integer |
The HTTP status code of the request. |
200 |
| errorCode |
string |
The error code returned if the request fails. |
InvalidArgument |
| errorMsg |
string |
The error message returned if the request fails. |
The specified parameter is invalid. |
| data |
object |
The tenant ID and settings. |
|
| tenantId |
string |
The MaxCompute tenant ID. |
1234567890123456 |
| settings |
object |
The tenant settings. The key represents the setting item, and the value is a Boolean value. true indicates that the setting is enabled, and false indicates that the setting is disabled. |
{"namespaceSchema":true,"openStorage":false} |
|
boolean |
The status of the corresponding setting. |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"httpCode": 200,
"errorCode": "InvalidArgument",
"errorMsg": "The specified parameter is invalid.",
"data": {
"tenantId": "1234567890123456",
"settings": {
"key": false
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.