Query NAT Policy Rules (v2.0)
POST/sdwan/v2.0/api/natpolicyrules/query
Queries all the NAT policy rules.
Request
- application/json
Body
Details of the query for NAT Policy Rule
- Array [
- ]
aggregate Aggregate
The aggregate number of NAT policy rules that match the query parameters.
data AggregateData[]
The details of the aggregate data.
Value of the aggregate data.
View the aggregate date.
The field value.
The name of the query response.
Possible values: [max
, count
, min
, avg
, sum
]
The operator values.
The aggregate statistics.
The unit.
The destination page.
The number of NAT policy rules deleted for a time frame.
Group the NAT policy rules for the query.
Lists the NAT policy rules by ID.
Return the ID of a specified query in the current session.
The query limit.
The limit.
Retrieve information from a field.
List the fields to query.
The total number of query parameters.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
The actual count.
The deleted number.
The deleted IDs.
Description of the query. Max size = 256.
The ID.
Details of the next query.
Total number.
items NATPolicyRuleQueryFilter[]
actions NATAction[]required
The actions for the configured NAT policy rule. A maximum 4 actions can be specified in a NAT policy rule.
The ID of the the NAT pool used in policy rules and bound to interfaces.
The port range of the action in the NAT policy rule.
The protocol of the action for the NAT policy rule. Supports max 4 protocols.
Possible values: [NO_NAT
, SOURCE_NAT_DYNAMIC
, SOURCE_NAT_STATIC
, DESTINATION_NAT_DYNAMIC
, DESTINATION_NAT_STATIC
, ALG_DISABLE
]
The type of action for NAT policy.
The description of the NAT policy rule. Max size = 256.
destination_ports PortRange[]
The start and end port for Port Ranges. A maximum of 16 port ranges is allowed, and port ranges can only be added for TCP or UDP protocols.
The start port of the destination/source port range.
The end port of the destination/source port range.
The ID of the destination prefix.
The ID of the destination zone. Destination zone is based on the direction of the traffic with respect to the ION device.
Lists if the NAT policy rule is enabled.
The ID of the policy rule.
The name of the NAT policy rule.
The ID of the NAT policy set. NAT policy sets contain policy rules and are a part of NAT policy set stacks.
The protocol for the NAT policy rule. TCP or UDP.
source_ports PortRange[]
The start value of the port range. A maximum of 16 port ranges are allowed, and port ranges can only be added for TCP or UDP protocols.
The start port of the destination/source port range.
The end port of the destination/source port range.
The ID of the source prefixes.
The ID of the NAT policy source zone. Source zones identify traffic that is sourced from a zone.
A information field that can be added to identify the NAT policy rule. Maximum 10 unique tags of length 1024 each are allowed.
{
"count": 0,
"deleted_count": 0,
"deleted_ids": [
"string"
],
"id": "string",
"next_query": {},
"total_count": 0,
"items": [
{
"actions": [
{
"nat_pool_id": "string",
"port": 0,
"protocols": [
"string"
],
"type": "NO_NAT"
}
],
"destination_ports": [
{
"from": 0,
"to": 0
}
],
"destination_prefixes_id": "string",
"destination_zone_id": "string",
"enabled": true,
"id": "string",
"name": "string",
"policyset_id": "string",
"protocol": 0,
"source_ports": [
{
"from": 0,
"to": 0
}
],
"source_prefixes_id": "string",
"source_zone_id": "string",
"tags": [
"string"
]
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "BAD_REQUEST"
}
]
}
}