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

Perform DNS Forwarder Action

Description

Perform the specified action for Tier0 DNS forwarder on specified enforcement point.

Request

Request

URL

URL


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

Path Parameters

Path Parameters

string
tier-1-id Required

Query Parameters

Query Parameters

string
action Required

An action to be performed for DNS forwarder on EP

Possible values are: clear_cache


string
enforcement_point_path Optional

An enforcement point path, on which the action is to be performed


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

200 OK

OK

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-PerformEPActionForDnsForwarderAtTier1 -tier1Id "Mytier1Id" -action "clear_cache" -enforcementPointPath "MyenforcementPointPath"

cURL Command

curl -X POST https://nsxmanager.your.domain/policy/api/v1/infra/tier-1s/{tier-1-id}/dns-forwarder?action=string
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-operation: perform-dns-forwarder-action
x-vmw-nsx-module: PolicyDnsForwarder


Feedback

Was this page helpful?