Query Network Policy Rules (v2.2)
POST/sdwan/v2.2/api/networkpolicyrules/query
Query all the network policy rules.
Request
- application/json
Body
Details to query the Network policy rules.
- Array [
- ]
- Array [
- ]
- Array [
- ]
The app definition IDs that have applied network policy rules. The number of applications for a policy rule is limited to 256.
The description of the network policy rule. Max size = 256.
The destination prefix ID.
The network policy rule based on rules that are enabled.
The network policy rule ID.
The name of the network policy rule. Max size = 128.
The network context applied to the network policy rule. Network context segments network traffic for the purpose of applying different network policy rules for the same application.
The network policy rule order number. The default order number for a policy rule is 1024.
paths_allowed PathsAllowedV2N1required
The paths allowed for the application.
active_paths WANPath[]
The configured active path for the rule.
The label to identify the path.
Possible values: [vpn
, direct
, servicelink
]
The path type.
backup_paths WANPath[]
The configured backup path for the rule.
The label to identify the path.
Possible values: [vpn
, direct
, servicelink
]
The path type.
l3_failure_paths WANPath[]
The configured l3 failure path for the rule.
The label to identify the path.
Possible values: [vpn
, direct
, servicelink
]
The path type.
The policy set ID.
service_context ServiceContext
Information on the service context.
The configured active service label ID.
Possible values: [CG_TRANSIT
, NON_CG_TRANSIT
, SASE
]
The configured active service label type.
The configured backup service label ID.
Possible values: [CG_TRANSIT
, NON_CG_TRANSIT
, SASE
]
The configured backup service label type.
Possible values: [ALLOWED_TRANSIT
, REQUIRED_TRANSIT
]
The type of service context.
The ID of the source prefixes.
A information field that can be added to identify the network policy rule. Maximum 10 unique tags of length 1024 each are allowed.
user_or_group UserGroup
The details of the user or group.
The user group IDs.
The user IDs.
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 NetworkPolicyRuleQueryFilterV2N2[]
The app definition IDs that have applied network policy rules. The number of applications for a policy rule is limited to 256.
The description of the network policy rule. Max size = 256.
The destination prefix ID.
The network policy rule based on rules that are enabled.
The network policy rule ID.
The name of the network policy rule. Max size = 128.
The network context applied to the network policy rule. Network context segments network traffic for the purpose of applying different network policy rules for the same application.
The network policy rule order number. The default order number for a policy rule is 1024.
paths_allowed PathsAllowedV2N1required
The paths allowed for the application.
active_paths WANPath[]
The configured active path for the rule.
The label to identify the path.
Possible values: [vpn
, direct
, servicelink
]
The path type.
backup_paths WANPath[]
The configured backup path for the rule.
The label to identify the path.
Possible values: [vpn
, direct
, servicelink
]
The path type.
l3_failure_paths WANPath[]
The configured l3 failure path for the rule.
The label to identify the path.
Possible values: [vpn
, direct
, servicelink
]
The path type.
The policy set ID.
service_context ServiceContext
Information on the service context.
The configured active service label ID.
Possible values: [CG_TRANSIT
, NON_CG_TRANSIT
, SASE
]
The configured active service label type.
The configured backup service label ID.
Possible values: [CG_TRANSIT
, NON_CG_TRANSIT
, SASE
]
The configured backup service label type.
Possible values: [ALLOWED_TRANSIT
, REQUIRED_TRANSIT
]
The type of service context.
The ID of the source prefixes.
A information field that can be added to identify the network policy rule. Maximum 10 unique tags of length 1024 each are allowed.
user_or_group UserGroup
The details of the user or group.
The user group IDs.
The user IDs.
{
"count": 0,
"deleted_count": 0,
"deleted_ids": [
"string"
],
"id": "string",
"next_query": {},
"total_count": 0,
"items": [
{
"app_def_ids": [
"string"
],
"destination_prefixes_id": "string",
"enabled": true,
"id": "string",
"name": "string",
"network_context_id": "string",
"order_number": 0,
"paths_allowed": {
"active_paths": [
{
"label": "string",
"path_type": "vpn"
}
],
"backup_paths": [
{
"label": "string",
"path_type": "vpn"
}
],
"l3_failure_paths": [
{
"label": "string",
"path_type": "vpn"
}
]
},
"policyset_id": "string",
"service_context": {
"active_service_label_id": "string",
"active_service_label_type": "CG_TRANSIT",
"backup_service_label_id": "string",
"backup_service_label_type": "CG_TRANSIT",
"type": "ALLOWED_TRANSIT"
},
"source_prefixes_id": "string",
"tags": [
"string"
],
"user_or_group": {
"user_group_ids": [
"string"
],
"user_ids": [
"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"
}
]
}
}