EventHubsOperationsExtensions.RegenerateKeysAsync(IEventHubsOperations, String, String, String, String, RegenerateAccessKeyParameters, CancellationToken) Method

Definition

Regenerates the ACS and SAS connection strings for the Event Hub.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EventHub.Models.AccessKeys> RegenerateKeysAsync (this Microsoft.Azure.Management.EventHub.IEventHubsOperations operations, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName, Microsoft.Azure.Management.EventHub.Models.RegenerateAccessKeyParameters parameters, System.Threading.CancellationToken cancellationToken = null);
static member RegenerateKeysAsync : Microsoft.Azure.Management.EventHub.IEventHubsOperations * string * string * string * string * Microsoft.Azure.Management.EventHub.Models.RegenerateAccessKeyParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EventHub.Models.AccessKeys>

Parameters

operations
IEventHubsOperations

The operations group for this extension method.

resourceGroupName
System.String

Name of the resource group within the azure subscription.

namespaceName
System.String

The Namespace name

eventHubName
System.String

The Event Hub name

authorizationRuleName
System.String

The authorization rule name.

parameters
RegenerateAccessKeyParameters

Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<AccessKeys>

Applies to