GetQuotaRoutingRule
Queries the routing rule configurations under a specified sub-quota, including matching conditions, routing modes, and additional settings.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetQuotaRoutingRule |
get |
*QuotaRoutingRule
|
None | None |
Request syntax
GET /api/v1/quotaRoutingRules/{ruleName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ruleName |
string |
Yes |
The name of the routing rule. |
example_route_rule |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| quotaPath |
string |
Yes |
The name path of the sub-quota, which consists of the parent quota name and the sub-quota name joined by a number sign. |
example_quota#example_subquota |
| pathType |
string |
No |
The quota path type. Only nickname is supported. If omitted, the default value nickname is used. |
nickname |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The ID of the request. You can use the request ID to query request logs and troubleshoot issues. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| data |
object |
The configuration of the specified routing rule. |
|
| name |
string |
The name of the routing rule. |
example_route_rule |
| mode |
string |
The routing mode of the rule. The example indicates the exclusive mode. |
EXCLUSIVE |
| projectList |
array |
The list of matched project names. |
|
|
string |
The project name. |
example_project |
|
| typeList |
array |
The list of matched job types. |
|
|
string |
The job type. |
SQL |
|
| userList |
array |
The list of matched user identifiers. |
|
|
string |
The user identifier. |
1234567890123456 |
|
| productIdList |
array |
The list of matched product IDs. |
|
|
string |
The product ID. |
ODPS |
|
| priorityRange |
array |
The matched job priority range. |
|
|
integer |
The priority boundary value. |
-1 |
|
| settings |
object |
The additional settings of the rule, returned as key-value pairs. |
{"odps.sql.type.system.odps2":"true"} |
|
string |
The string value of an additional setting. |
true |
Examples
Success response
JSON format
{
"requestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"data": {
"name": "example_route_rule",
"mode": "EXCLUSIVE",
"projectList": [
"example_project"
],
"typeList": [
"SQL"
],
"userList": [
"1234567890123456"
],
"productIdList": [
"ODPS"
],
"priorityRange": [
-1
],
"settings": {
"key": "true"
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.