Streaming Locators - Create

Streamelési lokátor létrehozása a Media Services-fiókban

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}?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.

resourceGroupName
path True

string

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

streamingLocatorName
path True

string

A Streamelési lokátor 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.

Kérelem törzse

Name Kötelező Típus Description
properties.assetName True

string

Eszköz neve

properties.streamingPolicyName True

string

A streamelési lokátor által használt streamelési szabályzat neve. Adja meg a létrehozott streamelési szabályzat nevét, vagy használja az előre definiált streamelési szabályzatok egyikét. Az előre definiált streamelési szabályzatok a következők: "Predefined_DownloadOnly", "Predefined_ClearStreamingOnly", "Predefined_DownloadAndClearStreaming", "Predefined_ClearKey", "Predefined_MultiDrmCencStreaming" és "Predefined_MultiDrmStreaming"

properties.alternativeMediaId

string

A streamelési lokátor alternatív médiaazonosítója

properties.contentKeys

StreamingLocatorContentKey[]

A streamelési lokátor által használt ContentKeys.

properties.defaultContentKeyPolicyName

string

A streamelési lokátor által használt alapértelmezett ContentKeyPolicy neve.

properties.endTime

string

A Streamelési lokátor befejezési időpontja.

properties.filters

string[]

A streamelési lokátorra vonatkozó eszköz- vagy fiókszűrők listája

properties.startTime

string

A Streamelési lokátor kezdő időpontja.

properties.streamingLocatorId

string

A Streamelési lokátor StreamingLocatorId azonosítója.

Válaszok

Name Típus Description
201 Created

StreamingLocator

Létrehozva

Other Status Codes

ErrorResponse

Részletes hibainformációk.

Példák

Creates a Streaming Locator with clear streaming
Creates a Streaming Locator with secure streaming
Creates a Streaming Locator with user defined content keys

Creates a Streaming Locator with clear streaming

Sample Request

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

{
  "properties": {
    "streamingPolicyName": "clearStreamingPolicy",
    "assetName": "ClimbingMountRainier"
  }
}

Sample Response

{
  "name": "UserCreatedClearStreamingLocator",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator",
  "type": "Microsoft.Media/mediaservices/streamingLocators",
  "properties": {
    "assetName": "ClimbingMountRainier",
    "created": "2018-08-08T18:29:32.4323237Z",
    "endTime": "9999-12-31T23:59:59.9999999Z",
    "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013",
    "streamingPolicyName": "clearStreamingPolicy",
    "contentKeys": []
  }
}

Creates a Streaming Locator with secure streaming

Sample Request

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

{
  "properties": {
    "streamingPolicyName": "UserCreatedSecureStreamingPolicy",
    "assetName": "ClimbingMountRainier",
    "startTime": "2018-03-01T00:00:00Z",
    "endTime": "2028-12-31T23:59:59.9999999Z"
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingLocator",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator",
  "type": "Microsoft.Media/mediaservices/streamingLocators",
  "properties": {
    "assetName": "ClimbingMountRainier",
    "created": "2018-08-08T18:29:32.6243295Z",
    "startTime": "2018-03-01T00:00:00Z",
    "endTime": "2028-12-31T23:59:59.9999999Z",
    "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945",
    "streamingPolicyName": "UserCreatedSecureStreamingPolicy",
    "contentKeys": [
      {
        "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4",
        "type": "CommonEncryptionCbcs",
        "labelReferenceInStreamingPolicy": "cbcsDefaultKey",
        "tracks": []
      },
      {
        "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4",
        "type": "CommonEncryptionCenc",
        "labelReferenceInStreamingPolicy": "cencDefaultKey",
        "tracks": []
      },
      {
        "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1",
        "type": "EnvelopeEncryption",
        "labelReferenceInStreamingPolicy": "aesDefaultKey",
        "tracks": []
      }
    ]
  }
}

Creates a Streaming Locator with user defined content keys

Sample Request

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

{
  "properties": {
    "assetName": "ClimbingMountRainier",
    "streamingPolicyName": "secureStreamingPolicy",
    "streamingLocatorId": "90000000-0000-0000-0000-00000000000A",
    "contentKeys": [
      {
        "labelReferenceInStreamingPolicy": "aesDefaultKey",
        "id": "60000000-0000-0000-0000-000000000001",
        "value": "1UqLohAfWsEGkULYxHjYZg=="
      },
      {
        "labelReferenceInStreamingPolicy": "cencDefaultKey",
        "id": "60000000-0000-0000-0000-000000000004",
        "value": "4UqLohAfWsEGkULYxHjYZg=="
      },
      {
        "labelReferenceInStreamingPolicy": "cbcsDefaultKey",
        "id": "60000000-0000-0000-0000-000000000007",
        "value": "7UqLohAfWsEGkULYxHjYZg=="
      }
    ]
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys",
  "type": "Microsoft.Media/mediaservices/streamingLocators",
  "properties": {
    "assetName": "ClimbingMountRainier",
    "created": "2018-08-08T18:29:32.7859424Z",
    "endTime": "9999-12-31T23:59:59.9999999Z",
    "streamingLocatorId": "90000000-0000-0000-0000-00000000000a",
    "streamingPolicyName": "secureStreamingPolicy",
    "contentKeys": [
      {
        "id": "60000000-0000-0000-0000-000000000007",
        "type": "CommonEncryptionCbcs",
        "labelReferenceInStreamingPolicy": "cbcsDefaultKey",
        "tracks": []
      },
      {
        "id": "60000000-0000-0000-0000-000000000004",
        "type": "CommonEncryptionCenc",
        "labelReferenceInStreamingPolicy": "cencDefaultKey",
        "tracks": []
      },
      {
        "id": "60000000-0000-0000-0000-000000000001",
        "type": "EnvelopeEncryption",
        "labelReferenceInStreamingPolicy": "aesDefaultKey",
        "tracks": []
      }
    ]
  }
}

Definíciók

Name Description
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

StreamingLocator

Streamelési lokátor erőforrás

StreamingLocatorContentKey

Tartalomkulcs osztálya a Streamelési lokátorban

StreamingLocatorContentKeyType

A tartalomkulcs titkosítási típusa

systemData

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

TrackPropertyCompareOperation

Tulajdonságfeltétel-művelet nyomon követése

TrackPropertyCondition

Osztály egy track tulajdonság feltételének megadásához

TrackPropertyType

Tulajdonságtípus nyomon követése

TrackSelection

Osztály a zeneszám kiválasztásához

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.

StreamingLocator

Streamelési lokátor erőforrás

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.alternativeMediaId

string

A streamelési lokátor alternatív médiaazonosítója

properties.assetName

string

Eszköz neve

properties.contentKeys

StreamingLocatorContentKey[]

A streamelési lokátor által használt ContentKeys.

properties.created

string

A Streamelési lokátor létrehozási ideje.

properties.defaultContentKeyPolicyName

string

A streamelési lokátor által használt alapértelmezett ContentKeyPolicy neve.

properties.endTime

string

A Streamelési lokátor befejezési időpontja.

properties.filters

string[]

A streamelési lokátorra vonatkozó eszköz- vagy fiókszűrők listája

properties.startTime

string

A Streamelési lokátor kezdő időpontja.

properties.streamingLocatorId

string

A Streamelési lokátor StreamingLocatorId azonosítója.

properties.streamingPolicyName

string

A streamelési lokátor által használt streamelési szabályzat neve. Adja meg a létrehozott streamelési szabályzat nevét, vagy használja az előre definiált streamelési szabályzatok egyikét. Az előre definiált streamelési szabályzatok a következők: "Predefined_DownloadOnly", "Predefined_ClearStreamingOnly", "Predefined_DownloadAndClearStreaming", "Predefined_ClearKey", "Predefined_MultiDrmCencStreaming" és "Predefined_MultiDrmStreaming"

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"

StreamingLocatorContentKey

Tartalomkulcs osztálya a Streamelési lokátorban

Name Típus Description
id

string

A tartalomkulcs azonosítója

labelReferenceInStreamingPolicy

string

A tartalomkulcs címkéje a streamelési szabályzatban meghatározottak szerint

policyName

string

Tartalomkulcs által használt ContentKeyPolicy

tracks

TrackSelection[]

Nyomon követi a tartalomkulcsot használó számokat

type

StreamingLocatorContentKeyType

A tartalomkulcs titkosítási típusa

value

string

Tartalomkulcs értéke

StreamingLocatorContentKeyType

A tartalomkulcs titkosítási típusa

Name Típus Description
CommonEncryptionCbcs

string

Gyakori titkosítás a CBCS használatával

CommonEncryptionCenc

string

Gyakori titkosítás a CENC használatával

EnvelopeEncryption

string

Borítéktitkosítás

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.

TrackPropertyCompareOperation

Tulajdonságfeltétel-művelet nyomon követése

Name Típus Description
Equal

string

Egyenlő művelet

Unknown

string

Ismeretlen track tulajdonság összehasonlítása művelet

TrackPropertyCondition

Osztály egy track tulajdonság feltételének megadásához

Name Típus Description
operation

TrackPropertyCompareOperation

Tulajdonságfeltétel-művelet nyomon követése

property

TrackPropertyType

Tulajdonságtípus nyomon követése

value

string

Tulajdonságérték nyomon követése

TrackPropertyType

Tulajdonságtípus nyomon követése

Name Típus Description
FourCC

string

Track FourCC

Unknown

string

Ismeretlen track tulajdonság

TrackSelection

Osztály a zeneszám kiválasztásához

Name Típus Description
trackSelections

TrackPropertyCondition[]

A TrackSelections egy track tulajdonságfeltétel-lista, amely megadhatja a track(ek)et