DeviceProvisioningServiceResource.GetKeys(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.Pageable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesSharedAccessKey> GetKeys (System.Threading.CancellationToken cancellationToken = default);
abstract member GetKeys : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesSharedAccessKey>
override this.GetKeys : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesSharedAccessKey>
Public Overridable Function GetKeys (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DeviceProvisioningServicesSharedAccessKey)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to