Get Rules
Return all firewall rule(s) information for a given firewall section.
Use the following Policy API -
GET /policy/api/v1/infra/domains/<domain-id>/security-policies/<security-policy-id>
section-id
AppliedTo's referenced by this section or section's Distributed Service Rules .
Limits results to sections having rules with specific Context Profiles.
Opaque cursor to be used for getting next page of records (supplied by current result page)
Toggle to search with direct or indirect references.
Destinations referenced by this section's Distributed Service Rules .
Limits results to sections having rules with specific Extended Sources.
Filter type
Comma separated list of fields that should be included in query result
Maximum number of results to return in this page (server may return fewer)
Return invalid references in results.
NSService referenced by this section's Distributed Service Rules .
sort_ascending
Field by which records are sorted
Sources referenced by this section's Distributed Service Rules .
OK
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"cursor": "string",
"result_count": 0,
"sort_ascending": false,
"sort_by": "string",
"results": [
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {},
"_revision": 0,
"_owner": {},
"description": "string",
"display_name": "string",
"id": "string",
"resource_type": "string",
"action": "string",
"applied_tos": [
{
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string"
}
],
"destinations": [
{
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string"
}
],
"destinations_excluded": false,
"direction": "string",
"disabled": false,
"ip_protocol": "string",
"is_default": false,
"logged": false,
"notes": "string",
"priority": 0,
"rule_tag": "string",
"sources": [
{
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string"
}
],
"sources_excluded": false,
"context_profiles": [
{
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string"
}
],
"extended_sources": [
{
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string"
}
],
"section_id": "string",
"services": [
{
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string",
"service": {
"resource_type": "string"
}
}
]
}
]
}
Not Found
curl -H 'Authorization: <value>' https://{api_host}/api/v1/firewall/sections/{section-id}/rules