ContentKeyPolicies interface

Interface representing a ContentKeyPolicies.

Methods

createOrUpdate(string, string, string, ContentKeyPolicy, ContentKeyPoliciesCreateOrUpdateOptionalParams)

Create or update a Content Key Policy in the Media Services account

delete(string, string, string, ContentKeyPoliciesDeleteOptionalParams)

Deletes a Content Key Policy in the Media Services account

get(string, string, string, ContentKeyPoliciesGetOptionalParams)

Get the details of a Content Key Policy in the Media Services account

getPolicyPropertiesWithSecrets(string, string, string, ContentKeyPoliciesGetPolicyPropertiesWithSecretsOptionalParams)

Get a Content Key Policy including secret values

list(string, string, ContentKeyPoliciesListOptionalParams)

Lists the Content Key Policies in the account

update(string, string, string, ContentKeyPolicy, ContentKeyPoliciesUpdateOptionalParams)

Updates an existing Content Key Policy in the Media Services account

Method Details

createOrUpdate(string, string, string, ContentKeyPolicy, ContentKeyPoliciesCreateOrUpdateOptionalParams)

Create or update a Content Key Policy in the Media Services account

function createOrUpdate(resourceGroupName: string, accountName: string, contentKeyPolicyName: string, parameters: ContentKeyPolicy, options?: ContentKeyPoliciesCreateOrUpdateOptionalParams): Promise<ContentKeyPolicy>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

contentKeyPolicyName

string

The Content Key Policy name.

parameters
ContentKeyPolicy

The request parameters

options
ContentKeyPoliciesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<ContentKeyPolicy>

delete(string, string, string, ContentKeyPoliciesDeleteOptionalParams)

Deletes a Content Key Policy in the Media Services account

function delete(resourceGroupName: string, accountName: string, contentKeyPolicyName: string, options?: ContentKeyPoliciesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

contentKeyPolicyName

string

The Content Key Policy name.

options
ContentKeyPoliciesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, ContentKeyPoliciesGetOptionalParams)

Get the details of a Content Key Policy in the Media Services account

function get(resourceGroupName: string, accountName: string, contentKeyPolicyName: string, options?: ContentKeyPoliciesGetOptionalParams): Promise<ContentKeyPolicy>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

contentKeyPolicyName

string

The Content Key Policy name.

options
ContentKeyPoliciesGetOptionalParams

The options parameters.

Returns

Promise<ContentKeyPolicy>

getPolicyPropertiesWithSecrets(string, string, string, ContentKeyPoliciesGetPolicyPropertiesWithSecretsOptionalParams)

Get a Content Key Policy including secret values

function getPolicyPropertiesWithSecrets(resourceGroupName: string, accountName: string, contentKeyPolicyName: string, options?: ContentKeyPoliciesGetPolicyPropertiesWithSecretsOptionalParams): Promise<ContentKeyPolicyProperties>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

contentKeyPolicyName

string

The Content Key Policy name.

Returns

list(string, string, ContentKeyPoliciesListOptionalParams)

Lists the Content Key Policies in the account

function list(resourceGroupName: string, accountName: string, options?: ContentKeyPoliciesListOptionalParams): PagedAsyncIterableIterator<ContentKeyPolicy, ContentKeyPolicy[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

options
ContentKeyPoliciesListOptionalParams

The options parameters.

Returns

update(string, string, string, ContentKeyPolicy, ContentKeyPoliciesUpdateOptionalParams)

Updates an existing Content Key Policy in the Media Services account

function update(resourceGroupName: string, accountName: string, contentKeyPolicyName: string, parameters: ContentKeyPolicy, options?: ContentKeyPoliciesUpdateOptionalParams): Promise<ContentKeyPolicy>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

contentKeyPolicyName

string

The Content Key Policy name.

parameters
ContentKeyPolicy

The request parameters

options
ContentKeyPoliciesUpdateOptionalParams

The options parameters.

Returns

Promise<ContentKeyPolicy>