Udostępnij za pośrednictwem


TrafficManagerExtensions.CheckTrafficManagerNameAvailabilityV2Async Method

Definition

Checks the availability of a Traffic Manager Relative DNS name.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2
  • Operation Id: Profiles_checkTrafficManagerNameAvailabilityV2
  • Default Api Version: 2022-04-01
  • Resource: TrafficManagerProfileResource
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.TrafficManager.Models.TrafficManagerNameAvailabilityResult>> CheckTrafficManagerNameAvailabilityV2Async (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.TrafficManager.Models.TrafficManagerRelativeDnsNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckTrafficManagerNameAvailabilityV2Async : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.TrafficManager.Models.TrafficManagerRelativeDnsNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.TrafficManager.Models.TrafficManagerNameAvailabilityResult>>
<Extension()>
Public Function CheckTrafficManagerNameAvailabilityV2Async (subscriptionResource As SubscriptionResource, content As TrafficManagerRelativeDnsNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TrafficManagerNameAvailabilityResult))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

content
TrafficManagerRelativeDnsNameAvailabilityContent

The Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or content is null.

Applies to