你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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<Asset>

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

Promise<Asset>

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<Asset>

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

Promise<Asset>

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<StorageEncryptedAssetDecryptionData>

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, Asset[], PageSettings>

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

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<AssetContainerSas>

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<ListStreamingLocatorsResponse>

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<Asset>

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

Promise<Asset>