Share via


IotHubDescriptionResource.GetKeysAsync(CancellationToken) Method

Definition

Get the security metadata for an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/listkeys
  • Operation Id: IotHubResource_ListKeys
  • Default Api Version: 2023-06-30
  • Resource: IotHubDescriptionResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.IotHub.Models.SharedAccessSignatureAuthorizationRule> GetKeysAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetKeysAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.IotHub.Models.SharedAccessSignatureAuthorizationRule>
override this.GetKeysAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.IotHub.Models.SharedAccessSignatureAuthorizationRule>
Public Overridable Function GetKeysAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SharedAccessSignatureAuthorizationRule)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to