AccountOperationsExtensions.RegenerateKeyAsync Method (IAccountOperations, String, MediaServicesKeyType)

 

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)

Namespace:   Microsoft.WindowsAzure.Management.MediaServices
Assembly:  Microsoft.WindowsAzure.Management.MediaServices (in Microsoft.WindowsAzure.Management.MediaServices.dll)

public static Task<AzureOperationResponse> RegenerateKeyAsync(
	this IAccountOperations operations,
	string accountName,
	MediaServicesKeyType keyType
)

Parameters

operations
Type: Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations

Reference to the Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations.

accountName
Type: System.String

Required. The name of the Media Services Account.

keyType
Type: Microsoft.WindowsAzure.Management.MediaServices.Models.MediaServicesKeyType

Required. The type of key to regenerate (primary or secondary)

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

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

Return to top
Show: