Assets interface

Interface representing a Assets.

Methods

createOrUpdate(string, string, string, Asset, AssetsCreateOrUpdateOptionalParams)

Creates or updates an Asset in the Media Services account

delete(string, string, string, AssetsDeleteOptionalParams)

Deletes an Asset in the Media Services account

get(string, string, string, AssetsGetOptionalParams)

Get the details of an Asset in the Media Services account

getEncryptionKey(string, string, string, AssetsGetEncryptionKeyOptionalParams)

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API

list(string, string, AssetsListOptionalParams)

List Assets in the Media Services account with optional filtering and ordering

listContainerSas(string, string, string, ListContainerSasInput, AssetsListContainerSasOptionalParams)

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.

listStreamingLocators(string, string, string, AssetsListStreamingLocatorsOptionalParams)

Lists Streaming Locators which are associated with this asset.

update(string, string, string, Asset, AssetsUpdateOptionalParams)

Updates an existing Asset in the Media Services account

Method Details

createOrUpdate(string, string, string, Asset, AssetsCreateOrUpdateOptionalParams)

Creates or updates an Asset in the Media Services account

function createOrUpdate(resourceGroupName: string, accountName: string, assetName: string, parameters: Asset, options?: AssetsCreateOrUpdateOptionalParams): Promise<AssetsCreateOrUpdateResponse>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

assetName

string

The Asset name.

parameters
Asset

The request parameters

options
AssetsCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, AssetsDeleteOptionalParams)

Deletes an Asset in the Media Services account

function delete(resourceGroupName: string, accountName: string, assetName: string, options?: AssetsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

assetName

string

The Asset name.

options
AssetsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, AssetsGetOptionalParams)

Get the details of an Asset in the Media Services account

function get(resourceGroupName: string, accountName: string, assetName: string, options?: AssetsGetOptionalParams): Promise<AssetsGetResponse>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

assetName

string

The Asset name.

options
AssetsGetOptionalParams

The options parameters.

Returns

getEncryptionKey(string, string, string, AssetsGetEncryptionKeyOptionalParams)

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API

function getEncryptionKey(resourceGroupName: string, accountName: string, assetName: string, options?: AssetsGetEncryptionKeyOptionalParams): Promise<AssetsGetEncryptionKeyResponse>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

assetName

string

The Asset name.

options
AssetsGetEncryptionKeyOptionalParams

The options parameters.

Returns

list(string, string, AssetsListOptionalParams)

List Assets in the Media Services account with optional filtering and ordering

function list(resourceGroupName: string, accountName: string, options?: AssetsListOptionalParams): PagedAsyncIterableIterator<Asset>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

options
AssetsListOptionalParams

The options parameters.

Returns

PagedAsyncIterableIterator<Asset>

listContainerSas(string, string, string, ListContainerSasInput, AssetsListContainerSasOptionalParams)

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.

function listContainerSas(resourceGroupName: string, accountName: string, assetName: string, parameters: ListContainerSasInput, options?: AssetsListContainerSasOptionalParams): Promise<AssetsListContainerSasResponse>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

assetName

string

The Asset name.

parameters
ListContainerSasInput

The request parameters

options
AssetsListContainerSasOptionalParams

The options parameters.

Returns

listStreamingLocators(string, string, string, AssetsListStreamingLocatorsOptionalParams)

Lists Streaming Locators which are associated with this asset.

function listStreamingLocators(resourceGroupName: string, accountName: string, assetName: string, options?: AssetsListStreamingLocatorsOptionalParams): Promise<AssetsListStreamingLocatorsResponse>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

assetName

string

The Asset name.

options
AssetsListStreamingLocatorsOptionalParams

The options parameters.

Returns

update(string, string, string, Asset, AssetsUpdateOptionalParams)

Updates an existing Asset in the Media Services account

function update(resourceGroupName: string, accountName: string, assetName: string, parameters: Asset, options?: AssetsUpdateOptionalParams): Promise<AssetsUpdateResponse>

Parameters

resourceGroupName

string

The name of the resource group within the Azure subscription.

accountName

string

The Media Services account name.

assetName

string

The Asset name.

parameters
Asset

The request parameters

options
AssetsUpdateOptionalParams

The options parameters.

Returns