DeviceProvisioningServiceResource.GetKeysAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.