GetExistUserResourceRegion
Returns a deduplicated list of regions where the current account has MaxCompute user resources. The list can be filtered by billing method and region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetExistUserResourceRegion |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/userResources/regions HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| billingMethod |
string |
No |
Filters by billing method. Valid values: payasyougo for pay-as-you-go, and subscription for subscription. |
payasyougo |
| regionId |
string |
No |
The region ID used to filter user resources. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult<List |
||
| requestId |
string |
The request ID of the API call. You can use this ID to query request logs and troubleshoot issues. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| httpCode |
integer |
The HTTP status code of the error response. The example indicates that the server encountered an unexpected exception. |
500 |
| errorCode |
string |
The error code returned when the call fails. The example indicates an internal server error. |
INTERNAL_SERVER_ERROR |
| errorMsg |
string |
The error message returned when the call fails. The example indicates an internal server error. |
Internal Server Error |
| data |
array |
The list of region IDs that have matching resources. An empty list is returned if no matching resources are found. |
|
|
string |
The region ID where matching resources exist. |
cn-hangzhou |
Examples
Success response
JSON format
{
"requestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"httpCode": 500,
"errorCode": "INTERNAL_SERVER_ERROR",
"errorMsg": "Internal Server Error",
"data": [
"cn-hangzhou"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.