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

Get DNS Forwarder Stats

Description

Get statistics of tier-0 DNS forwarder.

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

Request

Request

URL

URL


get
https://nsxmanager.your.domain/policy/api/v1/infra/tier-0s/{tier-0-id}/dns-forwarder/statistics
Copy

Path Parameters

Path Parameters

string
tier-0-id Required

Tier-0 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 AggregateDNSForwarderStatistics of type(s) application/json
{
	"intent_path": "string",
	"statistics_per_enforcement_point": [
		{
			"enforcement_point_path": "string",
			"resource_type": "NsxTDNSForwarderStatistics"
		}
	]
}
string
intent_path Required

String path of the DNS forwarder intent.


statistics_per_enforcement_point Optional

List of DNS forwarder statistics per enforcement point.

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-GetTier0DNSForwarderStatistics -tier0Id -enforcementPointPath

cURL Command

curl https://nsxmanager.your.domain/policy/api/v1/infra/tier-0s/{tier-0-id}/dns-forwarder/statistics
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-operation: get-dns-forwarder-stats
x-vmw-nsx-module: PolicyDNSStatistics


Feedback

Was this page helpful?