Megosztás a következőn keresztül:


Assets - Get

Eszköz lekérése
Eszköz adatainak lekérése a Media Services-fiókban

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

URI-paraméterek

Name In Kötelező Típus Description
accountName
path True

string

A Media Services-fiók neve.

assetName
path True

string

Az eszköz neve.

resourceGroupName
path True

string

Az Azure-előfizetésen belüli erőforráscsoport neve.

subscriptionId
path True

string

A Microsoft Azure-előfizetés egyedi azonosítója.

api-version
query True

string

Az ügyfélkéréshez használni kívánt API verziója.

Válaszok

Name Típus Description
200 OK

Asset

OK

Other Status Codes

ErrorResponse

Részletes hibainformációk.

Példák

Get an Asset by name

Mintakérelem

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

Mintaválasz

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

Definíciók

Name Description
Asset

Egy objektum.

AssetStorageEncryptionFormat

Az Eszköz titkosítási formátuma. A Nincs vagy a MediaStorageEncryption egyike.

createdByType

Az erőforrást létrehozó identitás típusa.

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

ErrorDetail

A hiba részletei.

ErrorResponse

Hibaválasz

systemData

Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.

Asset

Egy objektum.

Name Típus Description
id

string

Az erőforrás teljes erőforrás-azonosítója. Például : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Az erőforrás neve

properties.alternateId

string

Az objektum alternatív azonosítója.

properties.assetId

string

Az eszköz azonosítója.

properties.container

string

Az objektumblobtároló neve.

properties.created

string

Az eszköz létrehozásának dátuma.

properties.description

string

Az eszköz leírása.

properties.lastModified

string

Az eszköz utolsó módosításának dátuma.

properties.storageAccountName

string

A tárfiók neve.

properties.storageEncryptionFormat

AssetStorageEncryptionFormat

Az Eszköz titkosítási formátuma. A Nincs vagy a MediaStorageEncryption egyike.

systemData

systemData

Az erőforráshoz kapcsolódó rendszer metaadatai.

type

string

Az erőforrás típusa. Például"Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts"

AssetStorageEncryptionFormat

Az Eszköz titkosítási formátuma. A Nincs vagy a MediaStorageEncryption egyike.

Name Típus Description
MediaStorageClientEncryption

string

Az objektum titkosítása Media Services ügyféloldali titkosítással történik.

None

string

Az objektum nem használ ügyféloldali tárolótitkosítást (ez az egyetlen engedélyezett érték az új objektumok esetében).

createdByType

Az erőforrást létrehozó identitás típusa.

Name Típus Description
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

Az erőforrás-kezelési hiba további információi.

Name Típus Description
info

object

A további információk.

type

string

A további adattípus.

ErrorDetail

A hiba részletei.

Name Típus Description
additionalInfo

ErrorAdditionalInfo[]

A hiba további információi.

code

string

A hibakód.

details

ErrorDetail[]

A hiba részletei.

message

string

A hibaüzenet.

target

string

A hiba célja.

ErrorResponse

Hibaválasz

Name Típus Description
error

ErrorDetail

A hibaobjektum.

systemData

Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.

Name Típus Description
createdAt

string

Az erőforrás-létrehozás időbélyege (UTC).

createdBy

string

Az erőforrást létrehozó identitás.

createdByType

createdByType

Az erőforrást létrehozó identitás típusa.

lastModifiedAt

string

Az erőforrás utolsó módosításának időbélyege (UTC)

lastModifiedBy

string

Az erőforrást utoljára módosító identitás.

lastModifiedByType

createdByType

Az erőforrást legutóbb módosító identitás típusa.