Assets - List

Перечисление ресурсов в учетной записи Служб мультимедиа с необязательной фильтрацией и упорядочением

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets?api-version=2022-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets?api-version=2022-08-01&$filter={$filter}&$top={$top}&$orderby={$orderby}

Параметры URI

Имя В Обязательно Тип Описание
accountName
path True

string

Имя учетной записи Служб мультимедиа.

resourceGroupName
path True

string

Имя группы ресурсов в подписке Azure.

subscriptionId
path True

string

Уникальный идентификатор подписки Microsoft Azure.

api-version
query True

string

Версия API, которая будет использоваться с клиентским запросом.

$filter
query

string

Ограничивает набор возвращаемых элементов.

$orderby
query

string

Указывает ключ, по которому должна быть упорядочена коллекция результатов.

$top
query

integer

int32

Задает неотрицательное целое число n, которое ограничивает количество элементов, возвращаемых из коллекции. Служба возвращает количество доступных элементов, не превышающее указанное значение n.

Ответы

Имя Тип Описание
200 OK

AssetCollection

ОК

Other Status Codes

ErrorResponse

Подробные сведения об ошибке.

Примеры

List all Assets
List Asset created in a date range
List Asset ordered by date

List all Assets

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets?api-version=2022-08-01

Sample Response

{
  "value": [
    {
      "name": "ClimbingLittleTahoma",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe",
        "created": "2012-04-01T00:00:00Z",
        "lastModified": "2017-11-01T00:00:00Z",
        "alternateId": "CLIMB00003",
        "description": "A documentary showing the ascent of Little Tahoma",
        "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountAdams",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "1b648c1a-2268-461d-a1da-742bde23db40",
        "created": "2013-02-01T00:00:00Z",
        "lastModified": "2017-11-01T00:00:00Z",
        "alternateId": "CLIMB00002",
        "description": "A documentary showing the ascent of Mount Adams",
        "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountBaker",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b",
        "created": "2011-02-01T00:00:00Z",
        "lastModified": "2017-11-01T00:00:00Z",
        "alternateId": "CLIMB00004",
        "description": "A documentary showing the ascent of Mount Baker",
        "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountRainer",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "258878ef-fe05-4518-988f-052e86dc19f6",
        "created": "2018-08-08T18:29:24.3948982Z",
        "lastModified": "2018-08-08T21:29:24.3948982Z",
        "alternateId": "altClimbingMountRainer",
        "description": "descClimbingMountRainer",
        "container": "testasset0",
        "storageAccountName": "storage0",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountRainier",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c",
        "created": "2012-11-01T00:00:00Z",
        "lastModified": "2012-11-01T00:00:00Z",
        "alternateId": "CLIMB00001",
        "description": "A documentary showing the ascent of Mount Rainier",
        "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountSaintHelens",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d",
        "created": "2013-03-01T00:00:00Z",
        "lastModified": "2013-04-01T00:00:00Z",
        "alternateId": "CLIMB00005",
        "description": "A documentary showing the ascent of Saint Helens",
        "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d",
        "storageEncryptionFormat": "MediaStorageClientEncryption"
      }
    }
  ]
}

List Asset created in a date range

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets?api-version=2022-08-01&$filter=properties/created gt 2012-06-01 and properties/created lt 2013-07-01&$orderby=properties/created

Sample Response

{
  "value": [
    {
      "name": "ClimbingMountRainier",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c",
        "created": "2012-11-01T00:00:00Z",
        "lastModified": "2012-11-01T00:00:00Z",
        "alternateId": "CLIMB00001",
        "description": "A documentary showing the ascent of Mount Rainier",
        "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountAdams",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "1b648c1a-2268-461d-a1da-742bde23db40",
        "created": "2013-02-01T00:00:00Z",
        "lastModified": "2017-11-01T00:00:00Z",
        "alternateId": "CLIMB00002",
        "description": "A documentary showing the ascent of Mount Adams",
        "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountSaintHelens",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d",
        "created": "2013-03-01T00:00:00Z",
        "lastModified": "2013-04-01T00:00:00Z",
        "alternateId": "CLIMB00005",
        "description": "A documentary showing the ascent of Saint Helens",
        "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d",
        "storageEncryptionFormat": "MediaStorageClientEncryption"
      }
    }
  ]
}

List Asset ordered by date

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets?api-version=2022-08-01&$orderby=properties/created

Sample Response

{
  "value": [
    {
      "name": "ClimbingMountBaker",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b",
        "created": "2011-02-01T00:00:00Z",
        "lastModified": "2017-11-01T00:00:00Z",
        "alternateId": "CLIMB00004",
        "description": "A documentary showing the ascent of Mount Baker",
        "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingLittleTahoma",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe",
        "created": "2012-04-01T00:00:00Z",
        "lastModified": "2017-11-01T00:00:00Z",
        "alternateId": "CLIMB00003",
        "description": "A documentary showing the ascent of Little Tahoma",
        "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountRainier",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c",
        "created": "2012-11-01T00:00:00Z",
        "lastModified": "2012-11-01T00:00:00Z",
        "alternateId": "CLIMB00001",
        "description": "A documentary showing the ascent of Mount Rainier",
        "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountAdams",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "1b648c1a-2268-461d-a1da-742bde23db40",
        "created": "2013-02-01T00:00:00Z",
        "lastModified": "2017-11-01T00:00:00Z",
        "alternateId": "CLIMB00002",
        "description": "A documentary showing the ascent of Mount Adams",
        "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40",
        "storageEncryptionFormat": "None"
      }
    },
    {
      "name": "ClimbingMountSaintHelens",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d",
        "created": "2013-03-01T00:00:00Z",
        "lastModified": "2013-04-01T00:00:00Z",
        "alternateId": "CLIMB00005",
        "description": "A documentary showing the ascent of Saint Helens",
        "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d",
        "storageEncryptionFormat": "MediaStorageClientEncryption"
      }
    },
    {
      "name": "ClimbingMountRainer",
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer",
      "type": "Microsoft.Media/mediaservices/assets",
      "properties": {
        "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8",
        "created": "2018-08-08T18:29:25.0514734Z",
        "lastModified": "2018-08-08T21:29:25.0514734Z",
        "alternateId": "altClimbingMountRainer",
        "description": "descClimbingMountRainer",
        "container": "testasset0",
        "storageAccountName": "storage0",
        "storageEncryptionFormat": "None"
      }
    }
  ]
}

Определения

Имя Описание
Asset

Ресурс.

AssetCollection

Коллекция элементов ресурса.

AssetStorageEncryptionFormat

Формат шифрования ресурса. Не указан или MediaStorageEncryption.

createdByType

Тип удостоверения, создавшего ресурс.

ErrorAdditionalInfo

Дополнительные сведения об ошибке управления ресурсами.

ErrorDetail

Сведения об ошибке.

ErrorResponse

Сообщение об ошибке

systemData

Метаданные, относящиеся к созданию и последнему изменению ресурса.

Asset

Ресурс.

Имя Тип Описание
id

string

Полный идентификатор ресурса. Например: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Имя ресурса.

properties.alternateId

string

Альтернативный идентификатор ресурса.

properties.assetId

string

Идентификатор ресурса.

properties.container

string

Имя контейнера больших двоичных объектов ресурса.

properties.created

string

Дата создания ресурса.

properties.description

string

Описание ресурса.

properties.lastModified

string

Дата последнего изменения ресурса.

properties.storageAccountName

string

Имя учетной записи хранения.

properties.storageEncryptionFormat

AssetStorageEncryptionFormat

Формат шифрования ресурса. Не указан или MediaStorageEncryption.

systemData

systemData

Системные метаданные, относящиеся к этому ресурсу.

type

string

Тип ресурса. Например, Microsoft.Compute/virtualMachines или Microsoft.Storage/storageAccounts.

AssetCollection

Коллекция элементов ресурса.

Имя Тип Описание
@odata.nextLink

string

Ссылка на следующую страницу коллекции (если коллекция содержит слишком много результатов для возврата в одном ответе).

value

Asset[]

Коллекция элементов ресурса.

AssetStorageEncryptionFormat

Формат шифрования ресурса. Не указан или MediaStorageEncryption.

Имя Тип Описание
MediaStorageClientEncryption

string

Ресурс шифруется с помощью шифрования на стороне клиента Служб мультимедиа.

None

string

Ресурс не использует шифрование хранилища на стороне клиента (это единственное допустимое значение для новых ресурсов).

createdByType

Тип удостоверения, создавшего ресурс.

Имя Тип Описание
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

Дополнительные сведения об ошибке управления ресурсами.

Имя Тип Описание
info

object

Дополнительные сведения.

type

string

Тип дополнительных сведений.

ErrorDetail

Сведения об ошибке.

Имя Тип Описание
additionalInfo

ErrorAdditionalInfo[]

Дополнительные сведения об ошибке.

code

string

Код ошибки.

details

ErrorDetail[]

Сведения об ошибке.

message

string

Сообщение об ошибке.

target

string

Целевой объект ошибки.

ErrorResponse

Сообщение об ошибке

Имя Тип Описание
error

ErrorDetail

Объект error.

systemData

Метаданные, относящиеся к созданию и последнему изменению ресурса.

Имя Тип Описание
createdAt

string

Метка времени создания ресурса (UTC).

createdBy

string

Удостоверение, создающее ресурс.

createdByType

createdByType

Тип удостоверения, создавшего ресурс.

lastModifiedAt

string

Метка времени последнего изменения ресурса (UTC)

lastModifiedBy

string

Удостоверение, которое последним изменял ресурс.

lastModifiedByType

createdByType

Тип удостоверения, которое последним изменял ресурс.