Udostępnij za pośrednictwem


IAccountOperations.RegenerateKeyAsync Method

Definition

The Regenerate Media Services Account Key operation regenerates an account key for the given Media Services account in Windows Azure. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn167010.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> RegenerateKeyAsync (string accountName, Microsoft.WindowsAzure.Management.MediaServices.Models.MediaServicesKeyType keyType, System.Threading.CancellationToken cancellationToken);
abstract member RegenerateKeyAsync : string * Microsoft.WindowsAzure.Management.MediaServices.Models.MediaServicesKeyType * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function RegenerateKeyAsync (accountName As String, keyType As MediaServicesKeyType, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

accountName
String

The name of the Media Services Account.

keyType
MediaServicesKeyType

The type of key to regenerate (primary or secondary)

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to