/// <summary> /// Get the security metadata for a provisioning service. /// </summary> /// <remarks> /// List the primary and secondary keys for a provisioning service. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='provisioningServiceName'> /// The provisioning service name to get the shared access keys for. /// </param> /// <param name='resourceGroupName'> /// resource group name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <SharedAccessSignatureAuthorizationRuleAccessRightsDescription> > ListKeysAsync(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListKeysWithHttpMessagesAsync(provisioningServiceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }