[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
Get Gateway Policy Rule Statistics
DescriptionGet statistics of a gateway rule.
- 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
URLURL
https://nsxmanager.your.domain/policy/api/v1/infra/domains/{domain-id}/gateway-policies/{gateway-policy-id}/rules/{rule-id}/statistics
Path Parameters
Path Parameters
string
domain-id
Required
string
gateway-policy-id
Required
string
rule-id
Required
Query Parameters
Query Parameters
string
enforcement_point_path
Optional
String Path of the enforcement point
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
RuleStatisticsListResult
of type(s) application/json
This response body class contains all of the following:
ListResult, InlineRuleStatisticsListResult1
Errors
ApiError
400
Bad Request
ApiError
403
Forbidden
404
Not Found
ApiError
412
Precondition Failed
ApiError
500
Internal Server Error
ApiError
503
Service Unavailable
Code Samples
PowerCLI Client SDK Example
Invoke-GetGatewayRuleStatistics -domainId "MydomainId" -gatewayPolicyId "MygatewayPolicyId" -ruleId "MyruleId" -containerClusterPath "MycontainerClusterPath" -enforcementPointPath "MyenforcementPointPath"
cURL Command
curl https://nsxmanager.your.domain/policy/api/v1/infra/domains/{domain-id}/gateway-policies/{gateway-policy-id}/rules/{rule-id}/statistics
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-operation: get-gateway-policy-rule-statistics
x-vmw-nsx-module: PolicyEdgeFirewall
[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
On This Page
Domains Operations
delete
delete