[{"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

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

Code Samples

PowerCLI Client SDK Example

Invoke-GetTier0DNSForwarderStatistics -tier0Id "Mytier0Id" -enforcementPointPath "MyenforcementPointPath"

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?