[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy

Get Security Policy Stats

Description

Get statistics of a security policy.

  • no enforcement point path specified: Stats will be evaluated on each enforcement point.
  • {enforcement_point_path}: Stats are evaluated only on the given enforcement point.

Request

Request

URL

URL


get
https://nsxmanager.your.domain/policy/api/v1/infra/domains/{domain-id}/security-policies/{security-policy-id}/statistics
Copy

Path Parameters

Path Parameters

string
domain-id Required

Domain id


string
security-policy-id Required

Security policy id


Query Parameters

Query Parameters

string
enforcement_point_path Optional

String Path of the enforcement point


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns SecurityPolicyStatisticsListResult of type(s) application/json
This response body class contains all of the following: ListResult, InlineSecurityPolicyStatisticsListResult1
Errors

Errors

400

Bad Request


403

Forbidden


404

Not Found


412

Precondition Failed


500

Internal Server Error


503

Service Unavailable

Code Samples

Code Samples

PowerCLI Client SDK Example

Invoke-GetSecurityPolicyStatistics -domainId "MydomainId" -securityPolicyId "MysecurityPolicyId" -containerClusterPath "MycontainerClusterPath" -enforcementPointPath "MyenforcementPointPath"

cURL Command

curl https://nsxmanager.your.domain/policy/api/v1/infra/domains/{domain-id}/security-policies/{security-policy-id}/statistics
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-operation: get-security-policy-stats
x-vmw-nsx-module: DfwSecurityPolicy


Feedback

Was this page helpful?