Partilhar via


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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to