Assets - List Container Sas

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

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas?api-version=2018-07-01

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

The unique identifier for a Microsoft Azure subscription.

resourceGroupName
path True
  • string

The name of the resource group within the Azure subscription.

accountName
path True
  • string

The Media Services account name.

assetName
path True
  • string

The Asset name.

api-version
query True
  • string

The Version of the API to be used with the client request.

Request Body

Name Type Description
expiryTime
  • string

The SAS URL expiration time. This must be less than 24 hours from the current time.

permissions

The permissions to set on the SAS URL.

Responses

Name Type Description
200 OK

OK

Other Status Codes

Detailed error information.

Examples

List Asset SAS URLs

Sample Request

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountBaker/listContainerSas?api-version=2018-07-01
{
  "permissions": "ReadWrite",
  "expiryTime": "2018-01-01T10:00:00.007Z"
}

Sample Response

{
  "assetContainerSasUrls": [
    "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=<secret-value-from-key-1>&se=2018-01-01T10:00:00Z&sp=lrw",
    "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=<secret-value-from-key-2>&se=2018-01-01T10:00:00Z&sp=lrw"
  ]
}

Definitions

ApiError

The API error.

AssetContainerPermission

The permissions to set on the SAS URL.

AssetContainerSas

The Asset Storage container SAS URLs.

ListContainerSasInput

The parameters to the list SAS request.

ODataError

Information about an error.

ApiError

The API error.

Name Type Description
error

The error properties.

AssetContainerPermission

The permissions to set on the SAS URL.

Name Type Description
Read
  • string

The SAS URL will allow read access to the container.

ReadWrite
  • string

The SAS URL will allow read and write access to the container.

ReadWriteDelete
  • string

The SAS URL will allow read, write and delete access to the container.

AssetContainerSas

The Asset Storage container SAS URLs.

Name Type Description
assetContainerSasUrls
  • string[]

The list of Asset container SAS URLs.

ListContainerSasInput

The parameters to the list SAS request.

Name Type Description
expiryTime
  • string

The SAS URL expiration time. This must be less than 24 hours from the current time.

permissions

The permissions to set on the SAS URL.

ODataError

Information about an error.

Name Type Description
code
  • string

A language-independent error name.

details

The error details.

message
  • string

The error message.

target
  • string

The target of the error (for example, the name of the property in error).