Skip to main content

outbound_endpoints

Creates, updates, deletes, gets or lists an outbound_endpoints resource.

Overview

Nameoutbound_endpoints
TypeResource
Idazure.dns_resolver.outbound_endpoints

Fields

The following fields are returned by SELECT queries:

The outbound endpoint for the DNS resolver was found.

NameDatatypeDescription
etagstringETag of the outbound endpoint.
locationstringThe geo-location where the resource lives
propertiesobjectProperties of the outbound endpoint.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, dnsResolverName, outboundEndpointNameGets properties of an outbound endpoint for a DNS resolver.
listselectsubscriptionId, resourceGroupName, dnsResolverName$topLists outbound endpoints for a DNS resolver.
create_or_updateinsertsubscriptionId, resourceGroupName, dnsResolverName, outboundEndpointName, data__propertiesIf-Match, If-None-MatchCreates or updates an outbound endpoint for a DNS resolver.
updateupdatesubscriptionId, resourceGroupName, dnsResolverName, outboundEndpointNameIf-MatchUpdates an outbound endpoint for a DNS resolver.
deletedeletesubscriptionId, resourceGroupName, dnsResolverName, outboundEndpointNameIf-MatchDeletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
dnsResolverNamestringThe name of the DNS resolver.
outboundEndpointNamestringThe name of the outbound endpoint for the DNS resolver.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
$topinteger (int32)The maximum number of results to return. If not specified, returns up to 100 results.
If-MatchstringETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
If-None-MatchstringSet to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.

SELECT examples

Gets properties of an outbound endpoint for a DNS resolver.

SELECT
etag,
location,
properties,
systemData,
tags
FROM azure.dns_resolver.outbound_endpoints
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND dnsResolverName = '{{ dnsResolverName }}' -- required
AND outboundEndpointName = '{{ outboundEndpointName }}' -- required
;

INSERT examples

Creates or updates an outbound endpoint for a DNS resolver.

INSERT INTO azure.dns_resolver.outbound_endpoints (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
dnsResolverName,
outboundEndpointName,
If-Match,
If-None-Match
)
SELECT
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ dnsResolverName }}',
'{{ outboundEndpointName }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
etag,
location,
properties,
systemData,
tags
;

UPDATE examples

Updates an outbound endpoint for a DNS resolver.

UPDATE azure.dns_resolver.outbound_endpoints
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND dnsResolverName = '{{ dnsResolverName }}' --required
AND outboundEndpointName = '{{ outboundEndpointName }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
etag,
location,
properties,
systemData,
tags;

DELETE examples

Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.

DELETE FROM azure.dns_resolver.outbound_endpoints
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND dnsResolverName = '{{ dnsResolverName }}' --required
AND outboundEndpointName = '{{ outboundEndpointName }}' --required
AND If-Match = '{{ If-Match }}'
;