[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
Get L2VPN Stats
DescriptionGet statistics of an L2Vpn.
- 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.
This API is deprecated. Please use GET /infra/tier-0s/
/locale-services/ /l2vpn-services/default/sessions/L2VPN_ /statistics instead.
Request
URLURL
https://nsxmanager.your.domain/policy/api/v1/infra/tier-0s/{tier-0-id}/locale-services/{locale-service-id}/l2vpn-context/l2vpns/{l2vpn-id}/statistics
Path Parameters
Path Parameters
string
tier-0-id
Required
string
locale-service-id
Required
string
l2vpn-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
AggregateL2VpnStatistics
of type(s) application/json
{
"intent_path": "string",
"l2vpn_statistics_per_enforcement_point": [
{
"enforcement_point_path": "string",
"resource_type": "L2VpnSessionStatistics"
}
]
}
string
intent_path
Required
Intent path of object, forward slashes must be escaped using %2F.
array of
L2VpnStatisticsPerEnforcementPoint
l2vpn_statistics_per_enforcement_point
Optional
List of L2Vpn Statistics per Enforcement Point.
Errors
404
Not Found
Code Samples
Code Samples
PowerCLI Client SDK Example
Invoke-GetL2VpnStatistics -tier0Id -localeServiceId -l2vpnId -containerClusterPath -enforcementPointPath
cURL Command
curl https://nsxmanager.your.domain/policy/api/v1/infra/tier-0s/{tier-0-id}/locale-services/{locale-service-id}/l2vpn-context/l2vpns/{l2vpn-id}/statistics
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-deprecated: null
x-vmw-doc-operation: get-l2vpn-stats
x-vmw-nsx-module: PolicyVPNStatistics
[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
On This Page
Tier 0s Operations
put
delete
delete
delete
get
get
get
patch
patch
patch