Get Group Related Dfw Rules
Returns DFW rules organized by parent security policies for the specified NSX group. Each result entry is a security policy containing its list of related DFW rules.
Notes:
start_timeis required. Eithersite_idorsite_idsmust also be provided.relationship_type: CONTAINS(default) returns rules whose applied-to scope either explicitly references the group or is unset (ANY), and whose source or destination scope either explicitly references the group, is unset (ANY), or contains an IP range that covers the group's member compute IPs. This includes globally-scoped rules that apply to all workloads.relationship_type: EFFECTIVE_MEMBERSreturns rules affecting individual VMs within the group rather than the group directly.- When both policy-level and rule-level applied-to are set, the policy-level applied-to takes precedence.
filtersaccepts up to 300 filter entries.- Obtain
group-idfrom the group topology graph returned byPOST /visualization/topology/groups-flow-topology, where each node represents a group. - The
group-idis the NSX realization UUID of the group, not its policy path or display name. - To see flow records for this group, use
POST /visualization/flow-analysis/groups/{group-id}/flow-details.
The NSX group realization ID. Obtain valid IDs from POST /visualization/topology/groups-flow-topology, where each node in the topology graph represents a group and carries its ID.
Wrapper request for GroupIdRelatedDfwRules with restricted filter keys
{
"start_time": 0,
"page_size": 10000,
"site_id": "17f7c7e5-7f8c-490a-97e9-b9c9193c45e1"
}
success
{
"offset": 0,
"number_of_results": 10,
"total_result_count": 10,
"total_pages": 1,
"time_interval": {
"start_time": 0,
"end_time": 1782178627104
},
"results": [
{
"site_id": "17f7c7e5-7f8c-490a-97e9-b9c9193c45e1",
"policy_path": "/infra/domains/default/security-policies/default-layer2-section",
"related_rules": [
{
"policy_path": "/infra/domains/default/security-policies/default-layer2-section/rules/default-layer2-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/groups/{group-id}/related-dfw-rules