示例#1
0
 /// <summary>
 /// Get a shared access policy by name from a provisioning service.
 /// </summary>
 /// <remarks>
 /// List primary and secondary keys for a specific key name
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='provisioningServiceName'>
 /// Name of the provisioning service.
 /// </param>
 /// <param name='keyName'>
 /// Logical key name to get key-values for.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the provisioning service.
 /// </param>
 public static SharedAccessSignatureAuthorizationRuleAccessRightsDescription ListKeysForKeyName(this IIotDpsResourceOperations operations, string provisioningServiceName, string keyName, string resourceGroupName)
 {
     return(operations.ListKeysForKeyNameAsync(provisioningServiceName, keyName, resourceGroupName).GetAwaiter().GetResult());
 }