DescribeTransitRouterPolicyBasedRoutes
Queries the policy-based route rules in the policy route table of an Enterprise Edition transit router.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeTransitRouterPolicyBasedRoutes |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyTableId |
string |
No |
The instance ID of the policy routing table. |
ptbl-abc123xyz |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. |
20 |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| Filter |
array<object> |
No |
The filter conditions. You can specify up to 5 filter conditions at a time. |
|
|
object |
No |
The filter conditions. You can specify up to 5 filter conditions at a time. |
||
| Key |
string |
No |
The filter condition. Valid values:
By default, multiple filter conditions are evaluated by using the AND operator. A resource matches the filter only if it meets all the specified conditions. You can specify up to 5 filter conditions at a time. |
PolicyBasedRouteId |
| Value |
array |
No |
The value of the filter condition. Specify the filter value based on the Key. You can specify multiple values for a single Key. Multiple values are evaluated by using the OR operator. A resource matches the filter condition if it meets at least one of the specified values. You can specify up to 5 values for each filter condition. |
|
|
string |
No |
The value of the filter condition. Specify the filter value based on the Key. You can specify multiple values for a single Key. Multiple values are evaluated by using the OR operator. A resource matches the filter condition if it meets at least one of the specified values. You can specify up to 5 values for each filter condition. |
pbr-123qweasd |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| NextToken |
string |
The token that is used to retrieve the next page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The request ID. |
F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1 |
| TotalCount |
integer |
The total number of entries. |
4 |
| MaxResults |
integer |
The number of entries returned on each page. Default value: 20. |
20 |
| PolicyBasedRoutes |
array<object> |
The policy-based route rules. |
|
|
object |
|||
| PolicyBasedRouteId |
string |
The instance ID of the policy-based routing rule. |
pbr-123qwead |
| PolicyTableId |
string |
The instance ID of the policy routing table. |
ptbl-123adsfzc |
| Priority |
integer |
The priority of the policy-based route. Valid values: 1 to 100. The priority of each policy-based route in a transit router policy route table must be unique. A smaller value indicates a higher priority. |
1 |
| SourceCidr |
string |
The source CIDR block. |
10.0.0.0/8 |
| DestinationCidr |
string |
The destination CIDR block. |
10.185.33.0/24 |
| Protocol |
string |
The protocol type of the traffic packets. Traffic classification rules support matching traffic of various protocol types, such as HTTP, HTTPS, TCP, UDP, SSH, and Telnet. For more protocol types, log on to the Cloud Enterprise Network (CEN) console. |
TCP |
| SourcePortRange |
string |
The source port. Valid values: -1 or 1 to 65535. Matches traffic whose port number falls within the source port range. If this parameter is not specified, traffic from any source port is matched. The port range format is described as follows:
|
80/80 |
| DestPortRange |
string |
The destination port. Valid values: -1 or 1 to 65535. Matches traffic whose port number falls within the destination port range. If this parameter is not specified, traffic to any destination port is matched. The port range format is described as follows:
|
80/80 |
| Dscp |
string |
The Differentiated Services Code Point (DSCP) value of the traffic packets to match. Valid values: 0 to 63. The input format is described as follows:
|
1/10 |
| TargetRouteTableId |
string |
The target route table. |
vtb-123adf |
| Name |
string |
The name of the policy-based route rule. The name can be empty or 1 to 128 characters in length. It cannot start with http:// or https://. |
None |
| Description |
string |
The description of the policy route table instance. |
OK |
| Status |
string |
The status of the policy-based route. Valid values:
|
Active |
| AddressFamily |
string |
The address family. Valid values:
|
IPv4 |
Examples
Success response
JSON format
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1",
"TotalCount": 4,
"MaxResults": 20,
"PolicyBasedRoutes": [
{
"PolicyBasedRouteId": "pbr-123qwead",
"PolicyTableId": "ptbl-123adsfzc",
"Priority": 1,
"SourceCidr": "10.0.0.0/8",
"DestinationCidr": "10.185.33.0/24",
"Protocol": "TCP",
"SourcePortRange": "80/80",
"DestPortRange": "80/80",
"Dscp": "1/10",
"TargetRouteTableId": "vtb-123adf",
"Name": "None",
"Description": "OK",
"Status": "Active",
"AddressFamily": "IPv4"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.