Get App Related Rules
Returns DFW rules organized by parent security policies for the specified application. Each result entry is a security policy containing its list of related DFW rules.
Notes:
start_timeis required. Eithersite_idorsite_idsmust also be provided.- When
exact_matchistrue, only policies whose applied-to scope exactly matches the application (single-element applied-to equal to the application's policy path) are returned. - When
exact_matchisfalse(default), the system resolves all member computes of the application, finds every group those computes belong to, then returns all rules whose applied-to, source, or destination scope intersects with those groups. filtersaccepts up to 300 filter entries.- Obtain
app-idfrom the topology graph returned byPOST /visualization/topology/apps-flow-topology, where each node represents an application. - To see flow records for this application, use
POST /visualization/flow-analysis/applications/{app-id}/flow-details.
The NSX application group ID. Obtain valid IDs from POST /visualization/topology/apps-flow-topology, where each node in the topology graph represents an application and carries its ID.
When true, returns only policies whose applied-to scope exactly matches the application. When false (default), resolves all member computes and returns all rules whose scope intersects with the groups those computes belong to.
Wrapper request for ApplicationsIdRelatedDfwRules with restricted filter keys
{
"start_time": 0,
"page_size": 10000,
"site_id": "17f7c7e5-7f8c-490a-97e9-b9c9193c45e1"
}
success
{
"offset": 0,
"number_of_results": 1,
"total_result_count": 1,
"total_pages": 1,
"time_interval": {
"start_time": 0,
"end_time": 1782173106038
},
"results": [
{
"site_id": "17f7c7e5-7f8c-490a-97e9-b9c9193c45e1",
"policy_path": "/infra/domains/default/security-policies/default-layer3-section",
"related_rules": [
{
"policy_path": "/infra/domains/default/security-policies/default-layer3-section/rules/default_rule_NDP"
},
{
"policy_path": "/infra/domains/default/security-policies/default-layer3-section/rules/default_rule_DHCP"
},
{
"policy_path": "/infra/domains/default/security-policies/default-layer3-section/rules/default-layer3-rule"
}
]
}
]
}
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Error
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/intelligence/visualization/security-analysis/applications/{app-id}/related-dfw-rules