Queries the virtual private cloud (VPC) firewalls that are created for transit routers.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the response. Valid values:
| zh |
RegionNo | string | No | The region ID of the transit router. | cn-hangzhou |
FirewallSwitchStatus | string | No | The status of the VPC firewall. Valid values:
Note
If you do not specify this parameter, VPC firewalls in all states are queried.
| opened |
CurrentPage | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Default value: 10. | 10 |
FirewallId | string | No | The instance ID of the VPC firewall. | vfw-tr-f1799baa9e254651**** |
FirewallName | string | No | The name of the VPC firewall. | test |
RouteMode | string | No | The routing mode of the VPC firewall. Valid values:
Note
If you do not specify this parameter, VPC firewalls in all routing modes are queried.
| managed |
CenId | string | No | The ID of the Cloud Enterprise Network (CEN) instance. | cen-rig0t5zi96crkl**** |
TransitRouterId | string | No | The ID of the transit router. | tr-uf6egtvyaedvt20xl**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": "6",
"RequestId": "1471E2EC-F706-5F11-A79B-BD583ACB8297",
"VpcTrFirewalls": [
{
"VpcFirewallName": "test",
"FirewallSwitchStatus": "opened",
"CenId": "cen-03f8s0z052ka3v****",
"CenName": "cen_swas",
"RouteMode": "managed",
"RegionStatus": "enable",
"ResultCode": " RegionDisable",
"RegionNo": "cn-hangzhou",
"TransitRouterId": "tr-2vcmhjs88nil55fvu****",
"FirewallId": "vfw-tr-99bc4f0fc88b4d00****",
"IpsConfig": {
"BasicRules": 1,
"EnableAllPatch": 1,
"RunMode": 1
},
"OwnerId": 0,
"PrecheckStatus": "passed",
"ProtectedResource": {
"Count": 1,
"VpcList": [
"[\"vpc-2zegxdvs5f2je81ph****\"]"
],
"VbrList": [
"[\n \"vbr-2zegxdvs5f2je81ph****\"\n]"
],
"VpnList": [
"[\n \"vpn-2zegxdvs5f2je81ph****\"\n]"
],
"PeerTrList": [
"[\n \"tr-2zegxdvs5f2je81ph****\"\n]"
]
},
"UnprotectedResource": {
"Count": 1,
"VpcList": [
"[\n \"vpc-2zegxdvs5f2je81ph****\"\n]"
],
"VbrList": [
"[\n \"vbr-2zegxdvs5f2je81ph****\"\n]"
],
"VpnList": [
"[\n \"vpn-2zegxdvs5f2je81ph****\"\n]"
],
"PeerTrList": [
"[\n \"tr-2zegxdvs5f2je81ph****\"\n]"
]
}
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-15 | The response structure of the API has changed | View Change Details |
2023-06-13 | The response structure of the API has changed | View Change Details |