Queries the information about all access control policies that are created for NAT firewalls.
Operation description
You can use this operation to query the information about all access control policies that are created for NAT firewalls by page.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-cloudfirewall:DescribeNatFirewallControlPolicy | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the response. Valid values:
| zh |
NatGatewayId | string | Yes | The ID of the NAT gateway. | ngw-xxxxxx |
CurrentPage | string | No | The page number. | 1 |
PageSize | string | No | The number of entries per page. Default value: 10. | 10 |
Source | string | No | The source address in the access control policy. Fuzzy match is supported. The value of this parameter varies based on the value of the SourceType parameter.
Note
If you do not specify this parameter, all types of source addresses are queried.
| 1.1.1.1/32 |
Destination | string | No | The destination address in the access control policy. Fuzzy match is supported. The value of this parameter varies based on the value of the DestinationType parameter.
Note
If you do not specify this parameter, all types of destination addresses are queried.
| x.x.x.x/32 |
Description | string | No | The description of the access control policy. Fuzzy match is supported. Note
If you do not specify this parameter, the descriptions of all policies are queried.
| test |
Proto | string | No | The type of the protocol in the access control policy. Valid values:
Note
If you do not specify this parameter, access control policies of all protocol types are queried.
| ANY |
AclAction | string | No | The action that Cloud Firewall performs on the traffic. Valid values:
| accept |
AclUuid | string | No | The UUID of the access control policy. | 303f0697-2a21-4e43-b142-4a77adf7b358 |
Release | string | No | Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values:
| true |
Direction | string | Yes | The direction of the traffic to which the access control policy applies. Valid values:
| out |
RepeatType | string | No | The recurrence type for the access control policy to take effect. Valid values:
| Permanent |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": "28",
"RequestId": "F183567D-8A52-5BAE-9472-F1C427378C28",
"Policys": [
{
"Destination": "x.x.x.x/32",
"Order": 1,
"DestPortGroup": "my_port_group",
"SourceType": "net",
"DnsResultTime": 1579261141,
"DnsResult": "111.0.XX.XX,112.0.XX.XX",
"ApplicationNameList": [
"['HTTP', 'HTTPS']"
],
"AclUuid": "00281255-d220-4db1-8f4f-c4df221a****",
"DestPortType": "port",
"Source": "192.0.XX.XX/24",
"DestinationType": "net",
"HitTimes": 100,
"HitLastTime": 1579261141,
"DestPort": "80",
"Description": "test",
"AclAction": "accept",
"Proto": "TCP",
"DestinationGroupCidrs": [
"[\n \"112.0.XX.XX/24\",\n \"112.0.XX.XX/32\"\n]"
],
"DestPortGroupPorts": [
"[80,443]"
],
"SourceGroupCidrs": [
"['192.0.XX.XX/24', '192.0.XX.XX/32']"
],
"Release": "true",
"SourceGroupType": "ip",
"DestinationGroupType": "ip",
"NatGatewayId": "ngw-xxxxxx",
"DomainResolveType": 1,
"SpreadCnt": "10,000",
"CreateTime": 1761062400,
"ModifyTime": 1761062400,
"RepeatType": "Permanent",
"RepeatDays": [
1
],
"RepeatStartTime": "08:00",
"RepeatEndTime": "23:30",
"StartTime": 1694761200,
"EndTime": 1694764800
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
400 | ErrorParametersPageSizeOrNo | Either pageSize or pageNo is invalid. | Either pageSize or pageNo is invalid. |
400 | ErrorParameterIpVersion | The IP version is invalid. | The IP version is invalid. |
400 | ErrorParametersDirection | The direction is invalid. | The direction is invalid. |
400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
400 | ErrorUnmarshalJSON | An error occurred while parsing JSON. | An error occurred while decoding JSON. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-31 | The Error code has changed | View Change Details |
2024-03-13 | The Error code has changed | View Change Details |
2023-10-12 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-08-29 | The Error code has changed | View Change Details |