Share via


DeviceProvisioningServiceResource.GetKeysAsync(CancellationToken) Method

Definition

List the primary and secondary keys for a provisioning service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys
  • Operation Id: IotDpsResource_ListKeys
public virtual Azure.AsyncPageable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesSharedAccessKey> GetKeysAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetKeysAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesSharedAccessKey>
override this.GetKeysAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesSharedAccessKey>
Public Overridable Function GetKeysAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DeviceProvisioningServicesSharedAccessKey)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of DeviceProvisioningServicesSharedAccessKey that may take multiple service requests to iterate over.

Applies to