Assets - List

Wyświetlanie listy zasobów na koncie usługi Media Services z opcjonalnym filtrowaniem i porządkowaniem

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}

Parametry identyfikatora URI

Nazwa W Wymagane Typ Opis
accountName
path True

string

Nazwa konta usługi Media Services.

resourceGroupName
path True

string

Nazwa grupy zasobów w ramach subskrypcji platformy Azure.

subscriptionId
path True

string

Unikatowy identyfikator subskrypcji platformy Microsoft Azure.

api-version
query True

string

Wersja interfejsu API, która ma być używana z żądaniem klienta.

$filter
query

string

Ogranicza zestaw zwracanych elementów.

$orderby
query

string

Określa klucz, za pomocą którego ma być uporządkowana kolekcja wyników.

$top
query

integer

int32

Określa nieujemną liczbę całkowitą n, która ogranicza liczbę elementów zwracanych z kolekcji. Usługa zwraca liczbę dostępnych elementów do , ale nie większą niż określona wartość n.

Odpowiedzi

Nazwa Typ Opis
200 OK

AssetCollection

OK

Other Status Codes

ErrorResponse

Szczegółowe informacje o błędzie.

Przykłady

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"
      }
    }
  ]
}

Definicje

Nazwa Opis
Asset

Zasób.

AssetCollection

Kolekcja elementów zawartości.

AssetStorageEncryptionFormat

Format szyfrowania elementów zawartości. Jeden z elementów None lub MediaStorageEncryption.

createdByType

Typ tożsamości, która utworzyła zasób.

ErrorAdditionalInfo

Dodatkowe informacje o błędzie zarządzania zasobami.

ErrorDetail

Szczegóły błędu.

ErrorResponse

Odpowiedź na błąd

systemData

Metadane dotyczące tworzenia i ostatniej modyfikacji zasobu.

Asset

Zasób.

Nazwa Typ Opis
id

string

W pełni kwalifikowany identyfikator zasobu dla zasobu. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Nazwa zasobu

properties.alternateId

string

Alternatywny identyfikator elementu zawartości.

properties.assetId

string

Identyfikator zasobu.

properties.container

string

Nazwa kontenera obiektów blob zasobów.

properties.created

string

Data utworzenia elementu zawartości.

properties.description

string

Opis zasobu.

properties.lastModified

string

Data ostatniej modyfikacji elementu zawartości.

properties.storageAccountName

string

Nazwa konta magazynu.

properties.storageEncryptionFormat

AssetStorageEncryptionFormat

Format szyfrowania elementów zawartości. Jeden z elementów None lub MediaStorageEncryption.

systemData

systemData

Metadane systemowe odnoszące się do tego zasobu.

type

string

Typ zasobu. Np. "Microsoft.Compute/virtualMachines" lub "Microsoft.Storage/storageAccounts"

AssetCollection

Kolekcja elementów zawartości.

Nazwa Typ Opis
@odata.nextLink

string

Link do następnej strony kolekcji (gdy kolekcja zawiera zbyt wiele wyników do zwrócenia w jednej odpowiedzi).

value

Asset[]

Kolekcja elementów zawartości.

AssetStorageEncryptionFormat

Format szyfrowania elementów zawartości. Jeden z elementów None lub MediaStorageEncryption.

Nazwa Typ Opis
MediaStorageClientEncryption

string

Zasób jest szyfrowany przy użyciu szyfrowania po stronie klienta usługi Media Services.

None

string

Zasób nie używa szyfrowania magazynu po stronie klienta (jest to jedyna dozwolona wartość dla nowych zasobów).

createdByType

Typ tożsamości, która utworzyła zasób.

Nazwa Typ Opis
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

Dodatkowe informacje o błędzie zarządzania zasobami.

Nazwa Typ Opis
info

object

Dodatkowe informacje.

type

string

Dodatkowy typ informacji.

ErrorDetail

Szczegóły błędu.

Nazwa Typ Opis
additionalInfo

ErrorAdditionalInfo[]

Dodatkowe informacje o błędzie.

code

string

Kod błędu.

details

ErrorDetail[]

Szczegóły błędu.

message

string

Komunikat o błędzie.

target

string

Element docelowy błędu.

ErrorResponse

Odpowiedź na błąd

Nazwa Typ Opis
error

ErrorDetail

Obiekt error.

systemData

Metadane dotyczące tworzenia i ostatniej modyfikacji zasobu.

Nazwa Typ Opis
createdAt

string

Sygnatura czasowa tworzenia zasobów (UTC).

createdBy

string

Tożsamość, która utworzyła zasób.

createdByType

createdByType

Typ tożsamości, która utworzyła zasób.

lastModifiedAt

string

Sygnatura czasowa ostatniej modyfikacji zasobu (UTC)

lastModifiedBy

string

Tożsamość, która ostatnio zmodyfikowała zasób.

lastModifiedByType

createdByType

Typ tożsamości, która ostatnio zmodyfikowała zasób.