Retrieves the list of routing policies for a VPC firewall for a transit router.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribeTrFirewallV2RoutePolicyList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
|
zh |
| FirewallId |
string |
No |
The instance ID of the virtual private cloud (VPC) firewall. Note
FirewallId is required. If this parameter is not specified, the ErrorParameters (400) error is returned. You can call DescribeTrFirewallsV2List to obtain the FirewallId. Prerequisites: CEN Enterprise Edition with a transit router and VPC mount are configured, and the FirewallId is obtained by calling DescribeTrFirewallsV2List. |
vfw-tr-d5ba592ac6c84aff**** |
| PageSize |
integer |
No |
The maximum number of entries per page in a paged query. Default value: 10. For more information about paging, see the corresponding parameter descriptions. |
10 |
| CurrentPage |
integer |
No |
The page number in a paged query. Default value: 1. For more information about paging, see the corresponding parameter descriptions. |
1 |
| PolicyId |
string |
No |
The ID of the firewall routing policy. |
policy-7b66257c14e141fb**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TrFirewallRoutePolicies |
array<object> |
The list of firewall routing policies. |
|
|
array<object> |
The firewall routing policy. |
||
| PolicyType |
string |
The traffic redirection scenario type for the virtual private cloud (VPC) firewall on CEN Enterprise Edition. Valid values:
|
fullmesh |
| PolicyName |
string |
The policy name. |
Singapore Point to Multipoint |
| PolicyDescription |
string |
The policy description. |
Point to multipoint |
| SrcCandidateList |
array<object> |
The list of primary traffic redirection instances. |
|
|
object |
The primary traffic redirection instance. |
||
| CandidateId |
string |
The ID of the traffic redirection instance. |
vpc-2ze9epancaw8t4sha**** |
| CandidateType |
string |
The type of the traffic redirection instance. |
VPC |
| DestCandidateList |
array<object> |
The list of secondary traffic redirection instances. |
|
|
object |
The secondary traffic redirection instance. |
||
| CandidateId |
string |
The ID of the traffic redirection instance. |
vpc-2ze9epancaw8t4sha**** |
| CandidateType |
string |
The type of the traffic redirection instance. |
VPC |
| TrFirewallRoutePolicyId |
string |
The ID of the firewall routing policy. |
policy-7b66257c14e141fb**** |
| PolicyStatus |
string |
The policy status. Valid values:
|
opened |
| RequestId |
string |
The request ID. |
95EB5F3A-67FE-5780-92BD-5ECBA772AB7E |
| TotalCount |
string |
The total number of entries returned. |
1 |
Examples
Success response
JSON format
{
"TrFirewallRoutePolicies": [
{
"PolicyType": "fullmesh",
"PolicyName": "Singapore Point to Multipoint",
"PolicyDescription": "Point to multipoint",
"SrcCandidateList": [
{
"CandidateId": "vpc-2ze9epancaw8t4sha****",
"CandidateType": "VPC"
}
],
"DestCandidateList": [
{
"CandidateId": "vpc-2ze9epancaw8t4sha****",
"CandidateType": "VPC"
}
],
"TrFirewallRoutePolicyId": "policy-7b66257c14e141fb****",
"PolicyStatus": "opened"
}
],
"RequestId": "95EB5F3A-67FE-5780-92BD-5ECBA772AB7E",
"TotalCount": "1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorAliUid | Aliuid invalid. | The aliuid is invalid. |
| 400 | ErrorParameters | Error Parameters | The parameter is invalid. |
| 400 | ErrorAuthentication | authentication error | The authentication failed. |
| 400 | ErrorDBSelectError | A database select error occurred. | The error message returned because an internal error has occurred in querying the database. |
| 400 | ErrorTrFirewallNotExist | Cen TR firewall not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.