다음을 통해 공유


DeviceProvisioningServicesExtensions.CheckDeviceProvisioningServicesNameAvailability Method

Definition

Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability
  • Operation Id: IotDpsResource_CheckProvisioningServiceNameAvailability
public static Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesNameAvailabilityResult> CheckDeviceProvisioningServicesNameAvailability (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckDeviceProvisioningServicesNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesNameAvailabilityResult>
<Extension()>
Public Function CheckDeviceProvisioningServicesNameAvailability (subscriptionResource As SubscriptionResource, content As DeviceProvisioningServicesNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DeviceProvisioningServicesNameAvailabilityResult)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

content
DeviceProvisioningServicesNameAvailabilityContent

Set the name parameter in the OperationInputs structure to the name of the provisioning service to check.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or content is null.

Applies to