GetTenantSetting
Queries the setting switches for a specified MaxCompute tenant and region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetTenantSetting |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tenants/settings HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The MaxCompute tenant ID. If omitted, the tenant to which the current caller belongs 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<Map<String, Boolean>> |
||
| requestId |
string |
The unique identifier of the API request. Provide this identifier when troubleshooting call issues. |
0be3e0aa16667684362147582e038f |
| httpCode |
integer |
The HTTP status code of the request. |
200 |
| errorCode |
string |
The error code returned when the request fails. |
InvalidArgument |
| errorMsg |
string |
The error message returned when the request fails. |
The specified parameter is invalid. |
| data |
object |
The keys are tenant settings, and the values are Boolean values. true indicates that the setting is enabled, and false indicates that the setting is disabled. |
{"namespaceSchema":true,"openStorage":false} |
|
boolean |
The switch status of the corresponding setting. |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"httpCode": 200,
"errorCode": "InvalidArgument",
"errorMsg": "The specified parameter is invalid.",
"data": {
"key": false
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.