Get NAT Rule Stats
Get NAT Rule Statistics from Tier-0 denoted by Tier-0 ID, under NAT section
denoted by
Request
URLURL
https://nsxmanager.your.domain/policy/api/v1/infra/tier-0s/{tier-0-id}/nat/{nat-id}/nat-rules/{nat-rule-id}/statistics
Parameters
Parameters
string
tier-0-id
Required
Tier-0 ID
string
nat-id
Required
NAT id
string
nat-rule-id
Required
Rule ID
Query Parameters
Query Parameters
string
enforcement_point_path
Optional
String Path of the enforcement point
Response
Response
Response BodyResponse Body
200 OK returns
PolicyNatRuleStatisticsListResult
{
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_self": {
"action": "string",
"href": "string",
"rel": "string"
},
"cursor": "string",
"result_count": 0,
"results": [
{
"enforcement_point_path": "string",
"rule_path": "string",
"rule_statistics": [
{
"active_sessions": 0,
"last_update_timestamp": 0,
"total_bytes": 0,
"total_packets": 0,
"warning_message": "string"
}
]
}
],
"sort_ascending": false,
"sort_by": "string"
}
array of
ResourceLink
_links
Optional
The server will populate this field when returing the resource. Ignored on PUT and POST.
string
_schema
Optional
Schema for this resource
string
cursor
Optional
Opaque cursor to be used for getting next page of records (supplied by current result page)
integer
result_count
Optional
Count of results found (across all pages), set only on first page
results
Optional
NAT rules statistics per enforcement point
boolean
sort_ascending
Optional
If true, results are sorted in ascending order
string
sort_by
Optional
Field by which records are sorted
cURL Command
curl https://nsxmanager.your.domain/policy/api/v1/infra/tier-0s/{tier-0-id}/nat/{nat-id}/nat-rules/{nat-rule-id}/statistics
Errors
500
The server encountered an unexpected condition which prevented it from fulfilling the request.
503
The server is currently unavailable (because it is overloaded or down for maintenance).
On This Page
NAT Operations
put
delete
get
get
patch