Share via


IotHubResourceOperationsExtensions.GetKeysForKeyName Method

Definition

Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security

public static Microsoft.Azure.Management.IotHub.Models.SharedAccessSignatureAuthorizationRule GetKeysForKeyName (this Microsoft.Azure.Management.IotHub.IIotHubResourceOperations operations, string resourceGroupName, string resourceName, string keyName);
static member GetKeysForKeyName : Microsoft.Azure.Management.IotHub.IIotHubResourceOperations * string * string * string -> Microsoft.Azure.Management.IotHub.Models.SharedAccessSignatureAuthorizationRule
<Extension()>
Public Function GetKeysForKeyName (operations As IIotHubResourceOperations, resourceGroupName As String, resourceName As String, keyName As String) As SharedAccessSignatureAuthorizationRule

Parameters

operations
IIotHubResourceOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group that contains the IoT hub.

resourceName
String

The name of the IoT hub.

keyName
String

The name of the shared access policy.

Returns

Remarks

Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.

Applies to