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

Get Gateway Policy Stats

Description

Get statistics of a gateay 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}/gateway-policies/{gateway-policy-id}/statistics
Copy

Path Parameters

Path Parameters

string
domain-id Required

string
gateway-policy-id Required

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-GetGatewayPolicyStatistics -domainId "MydomainId" -gatewayPolicyId "MygatewayPolicyId" -containerClusterPath "MycontainerClusterPath" -enforcementPointPath "MyenforcementPointPath"

cURL Command

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

Vendor Extensions

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


Feedback

Was this page helpful?