Microsoft.Media mediaServices/streamingPolicies

Bicep-resourcedefinitie

Het resourcetype mediaServices/streamingPolicies kan worden geïmplementeerd in:

Zie wijzigingenlogboek voor een lijst met gewijzigde eigenschappen in elke API-versie.

Resource-indeling

Als u een Microsoft.Media/mediaServices/streamingPolicies-resource wilt maken, voegt u de volgende Bicep toe aan uw sjabloon.

resource symbolicname 'Microsoft.Media/mediaServices/streamingPolicies@2022-08-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    commonEncryptionCbcs: {
      clearKeyEncryptionConfiguration: {
        customKeysAcquisitionUrlTemplate: 'string'
      }
      clearTracks: [
        {
          trackSelections: [
            {
              operation: 'string'
              property: 'string'
              value: 'string'
            }
          ]
        }
      ]
      contentKeys: {
        defaultKey: {
          label: 'string'
          policyName: 'string'
        }
        keyToTrackMappings: [
          {
            label: 'string'
            policyName: 'string'
            tracks: [
              {
                trackSelections: [
                  {
                    operation: 'string'
                    property: 'string'
                    value: 'string'
                  }
                ]
              }
            ]
          }
        ]
      }
      drm: {
        fairPlay: {
          allowPersistentLicense: bool
          customLicenseAcquisitionUrlTemplate: 'string'
        }
        playReady: {
          customLicenseAcquisitionUrlTemplate: 'string'
          playReadyCustomAttributes: 'string'
        }
        widevine: {
          customLicenseAcquisitionUrlTemplate: 'string'
        }
      }
      enabledProtocols: {
        dash: bool
        download: bool
        hls: bool
        smoothStreaming: bool
      }
    }
    commonEncryptionCenc: {
      clearKeyEncryptionConfiguration: {
        customKeysAcquisitionUrlTemplate: 'string'
      }
      clearTracks: [
        {
          trackSelections: [
            {
              operation: 'string'
              property: 'string'
              value: 'string'
            }
          ]
        }
      ]
      contentKeys: {
        defaultKey: {
          label: 'string'
          policyName: 'string'
        }
        keyToTrackMappings: [
          {
            label: 'string'
            policyName: 'string'
            tracks: [
              {
                trackSelections: [
                  {
                    operation: 'string'
                    property: 'string'
                    value: 'string'
                  }
                ]
              }
            ]
          }
        ]
      }
      drm: {
        playReady: {
          customLicenseAcquisitionUrlTemplate: 'string'
          playReadyCustomAttributes: 'string'
        }
        widevine: {
          customLicenseAcquisitionUrlTemplate: 'string'
        }
      }
      enabledProtocols: {
        dash: bool
        download: bool
        hls: bool
        smoothStreaming: bool
      }
    }
    defaultContentKeyPolicyName: 'string'
    envelopeEncryption: {
      clearTracks: [
        {
          trackSelections: [
            {
              operation: 'string'
              property: 'string'
              value: 'string'
            }
          ]
        }
      ]
      contentKeys: {
        defaultKey: {
          label: 'string'
          policyName: 'string'
        }
        keyToTrackMappings: [
          {
            label: 'string'
            policyName: 'string'
            tracks: [
              {
                trackSelections: [
                  {
                    operation: 'string'
                    property: 'string'
                    value: 'string'
                  }
                ]
              }
            ]
          }
        ]
      }
      customKeyAcquisitionUrlTemplate: 'string'
      enabledProtocols: {
        dash: bool
        download: bool
        hls: bool
        smoothStreaming: bool
      }
    }
    noEncryption: {
      enabledProtocols: {
        dash: bool
        download: bool
        hls: bool
        smoothStreaming: bool
      }
    }
  }
}

Eigenschapswaarden

mediaServices/streamingPolicies

Naam Description Waarde
naam De resourcenaam

Meer informatie over het instellen van namen en typen voor onderliggende resources in Bicep.
tekenreeks (vereist)
Bovenliggende In Bicep kunt u de bovenliggende resource voor een onderliggende resource opgeven. U hoeft deze eigenschap alleen toe te voegen wanneer de onderliggende resource buiten de bovenliggende resource wordt gedeclareerd.

Zie Onderliggende resource buiten bovenliggende resource voor meer informatie.
Symbolische naam voor resource van het type: mediaServices
properties Klasse om eigenschappen van streamingbeleid op te geven StreamingPolicyProperties

StreamingPolicyProperties

Naam Description Waarde
commonEncryptionCbcs Configuratie van CommonEncryptionCbcs CommonEncryptionCbcs
commonEncryptionCenc Configuratie van CommonEncryptionCenc CommonEncryptionCenc
defaultContentKeyPolicyName Standaard ContentKey die wordt gebruikt door het huidige streamingbeleid tekenreeks
envelopeEncryption Configuratie van EnvelopeEncryption EnvelopeEncryption
noEncryption Configuraties van NoEncryption NoEncryption

CommonEncryptionCbcs

Naam Description Waarde
clearKeyEncryptionConfiguration Optionele configuratie die ClearKey ondersteunt in het CommonEncryptionCbcs-versleutelingsschema. ClearKeyEncryptionConfiguration
clearTracks Vertegenwoordigen welke sporen niet moeten worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
Drm Configuratie van DRM's voor het huidige versleutelingsschema CbcsDrmConfiguration
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

ClearKeyEncryptionConfiguration

Naam Description Waarde
customKeysAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die inhoudssleutels levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarde is {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId. tekenreeks

TrackSelection

Naam Description Waarde
trackSelections TrackSelections is een lijst met voorwaarden voor trackeigenschappen waarmee track(s) kunnen worden opgegeven TrackPropertyCondition[]

TrackPropertyCondition

Naam Description Waarde
bewerking Bewerking eigenschapsvoorwaarde bijhouden 'Gelijk'
'Onbekend' (vereist)
property Type eigenschap bijhouden 'FourCC'
'Onbekend' (vereist)
waarde Waarde van eigenschap bijhouden tekenreeks

StreamingPolicyContentKeys

Naam Description Waarde
defaultKey Standaardinhoudssleutel voor een versleutelingsschema Standaardsleutel
keyToTrackMappings Voor het weergeven van sporen is een afzonderlijke inhoudssleutel vereist StreamingPolicyContentKey[]

Standaardsleutel

Naam Description Waarde
label Label kan worden gebruikt om inhoudssleutel op te geven bij het maken van een streaming-locator tekenreeks
policyName Beleid dat wordt gebruikt door de standaardsleutel tekenreeks

StreamingPolicyContentKey

Naam Description Waarde
label Label kan worden gebruikt om inhoudssleutel op te geven bij het maken van een streaming-locator tekenreeks
policyName Beleid dat wordt gebruikt door inhoudssleutel tekenreeks
Tracks Houdt bij welke inhoudssleutel wordt gebruikt TrackSelection[]

CbcsDrmConfiguration

Naam Description Waarde
Fairplay FairPlay-configuraties StreamingPolicyFairPlayConfiguration
playReady PlayReady-configuraties StreamingPolicyPlayReadyConfiguration
widevine Widevine-configuraties StreamingPolicyWidevineConfiguration

StreamingPolicyFairPlayConfiguration

Naam Description Waarde
allowPersistentLicense Alle licenties die permanent moeten zijn of niet bool (vereist)
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks

StreamingPolicyPlayReadyConfiguration

Naam Description Waarde
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks
playReadyCustomAttributes Aangepaste kenmerken voor PlayReady tekenreeks

StreamingPolicyWidevineConfiguration

Naam Description Waarde
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks

EnabledProtocols

Naam Description Waarde
Dash DASH-protocol inschakelen of niet bool (vereist)
downloaden Downloadprotocol inschakelen of niet bool (vereist)
hls HLS-protocol inschakelen of niet bool (vereist)
smoothStreaming SmoothStreaming-protocol inschakelen of niet bool (vereist)

CommonEncryptionCenc

Naam Description Waarde
clearKeyEncryptionConfiguration Optionele configuratie die ClearKey ondersteunt in het versleutelingsschema CommonEncryptionCenc. ClearKeyEncryptionConfiguration
clearTracks Vertegenwoordigen welke sporen niet mogen worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
Drm Configuratie van DRM's voor CommonEncryptionCenc-versleutelingsschema CencDrmConfiguration
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

CencDrmConfiguration

Naam Description Waarde
playReady PlayReady-configuraties StreamingPolicyPlayReadyConfiguration
widevine Widevine-configuraties StreamingPolicyWidevineConfiguration

EnvelopeEncryption

Naam Description Waarde
clearTracks Vertegenwoordigen welke sporen niet mogen worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
customKeyAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die sleutels levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het uitgeven van sleutels. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

NoEncryption

Naam Description Waarde
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

Resourcedefinitie van ARM-sjabloon

Het resourcetype mediaServices/streamingPolicies kan worden geïmplementeerd voor:

Zie wijzigingenlogboek voor een lijst met gewijzigde eigenschappen in elke API-versie.

Resource-indeling

Als u een Resource Microsoft.Media/mediaServices/streamingPolicies wilt maken, voegt u de volgende JSON toe aan uw sjabloon.

{
  "type": "Microsoft.Media/mediaServices/streamingPolicies",
  "apiVersion": "2022-08-01",
  "name": "string",
  "properties": {
    "commonEncryptionCbcs": {
      "clearKeyEncryptionConfiguration": {
        "customKeysAcquisitionUrlTemplate": "string"
      },
      "clearTracks": [
        {
          "trackSelections": [
            {
              "operation": "string",
              "property": "string",
              "value": "string"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "string",
          "policyName": "string"
        },
        "keyToTrackMappings": [
          {
            "label": "string",
            "policyName": "string",
            "tracks": [
              {
                "trackSelections": [
                  {
                    "operation": "string",
                    "property": "string",
                    "value": "string"
                  }
                ]
              }
            ]
          }
        ]
      },
      "drm": {
        "fairPlay": {
          "allowPersistentLicense": "bool",
          "customLicenseAcquisitionUrlTemplate": "string"
        },
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "string",
          "playReadyCustomAttributes": "string"
        },
        "widevine": {
          "customLicenseAcquisitionUrlTemplate": "string"
        }
      },
      "enabledProtocols": {
        "dash": "bool",
        "download": "bool",
        "hls": "bool",
        "smoothStreaming": "bool"
      }
    },
    "commonEncryptionCenc": {
      "clearKeyEncryptionConfiguration": {
        "customKeysAcquisitionUrlTemplate": "string"
      },
      "clearTracks": [
        {
          "trackSelections": [
            {
              "operation": "string",
              "property": "string",
              "value": "string"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "string",
          "policyName": "string"
        },
        "keyToTrackMappings": [
          {
            "label": "string",
            "policyName": "string",
            "tracks": [
              {
                "trackSelections": [
                  {
                    "operation": "string",
                    "property": "string",
                    "value": "string"
                  }
                ]
              }
            ]
          }
        ]
      },
      "drm": {
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "string",
          "playReadyCustomAttributes": "string"
        },
        "widevine": {
          "customLicenseAcquisitionUrlTemplate": "string"
        }
      },
      "enabledProtocols": {
        "dash": "bool",
        "download": "bool",
        "hls": "bool",
        "smoothStreaming": "bool"
      }
    },
    "defaultContentKeyPolicyName": "string",
    "envelopeEncryption": {
      "clearTracks": [
        {
          "trackSelections": [
            {
              "operation": "string",
              "property": "string",
              "value": "string"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "string",
          "policyName": "string"
        },
        "keyToTrackMappings": [
          {
            "label": "string",
            "policyName": "string",
            "tracks": [
              {
                "trackSelections": [
                  {
                    "operation": "string",
                    "property": "string",
                    "value": "string"
                  }
                ]
              }
            ]
          }
        ]
      },
      "customKeyAcquisitionUrlTemplate": "string",
      "enabledProtocols": {
        "dash": "bool",
        "download": "bool",
        "hls": "bool",
        "smoothStreaming": "bool"
      }
    },
    "noEncryption": {
      "enabledProtocols": {
        "dash": "bool",
        "download": "bool",
        "hls": "bool",
        "smoothStreaming": "bool"
      }
    }
  }
}

Eigenschapswaarden

mediaServices/streamingPolicies

Naam Description Waarde
type Het resourcetype 'Microsoft.Media/mediaServices/streamingPolicies'
apiVersion De resource-API-versie '2022-08-01'
naam De resourcenaam

Meer informatie over het instellen van namen en typen voor onderliggende resources in JSON ARM-sjablonen.
tekenreeks (vereist)
properties Klasse om eigenschappen van streamingbeleid op te geven StreamingPolicyProperties

StreamingPolicyProperties

Naam Description Waarde
commonEncryptionCbcs Configuratie van CommonEncryptionCbcs CommonEncryptionCbcs
commonEncryptionCenc Configuratie van CommonEncryptionCenc CommonEncryptionCenc
defaultContentKeyPolicyName Standaard ContentKey die wordt gebruikt door het huidige streamingbeleid tekenreeks
envelopeEncryption Configuratie van EnvelopeEncryption EnvelopeEncryption
noEncryption Configuraties van NoEncryption NoEncryption

CommonEncryptionCbcs

Naam Description Waarde
clearKeyEncryptionConfiguration Optionele configuratie die ClearKey ondersteunt in commonEncryptionCbcs-versleutelingsschema. ClearKeyEncryptionConfiguration
clearTracks Vertegenwoordigen welke sporen niet mogen worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
Drm Configuratie van DRM's voor het huidige versleutelingsschema CbcsDrmConfiguration
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

ClearKeyEncryptionConfiguration

Naam Description Waarde
customKeysAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die inhoudssleutels levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarde is {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId. tekenreeks

TrackSelection

Naam Description Waarde
trackSelections TrackSelections is een lijst met voorwaarden voor trackeigenschappen waarmee u track(s) kunt opgeven TrackPropertyCondition[]

TrackPropertyCondition

Naam Description Waarde
bewerking Bewerking eigenschapsvoorwaarde bijhouden 'Gelijk'
Onbekend (vereist)
property Type eigenschap bijhouden 'FourCC'
Onbekend (vereist)
waarde Waarde van eigenschap bijhouden tekenreeks

StreamingPolicyContentKeys

Naam Description Waarde
defaultKey Standaardinhoudssleutel voor een versleutelingsschema Standaardsleutel
keyToTrackMappings Voor het weergeven van sporen is een afzonderlijke inhoudssleutel vereist StreamingPolicyContentKey[]

Standaardsleutel

Naam Description Waarde
label Label kan worden gebruikt om inhoudssleutel op te geven bij het maken van een streaming-locator tekenreeks
policyName Beleid dat wordt gebruikt door de standaardsleutel tekenreeks

StreamingPolicyContentKey

Naam Description Waarde
label Label kan worden gebruikt om inhoudssleutel op te geven bij het maken van een streaming-locator tekenreeks
policyName Beleid dat wordt gebruikt door inhoudssleutel tekenreeks
Tracks Houdt bij welke inhoudssleutel wordt gebruikt TrackSelection[]

CbcsDrmConfiguration

Naam Description Waarde
Fairplay FairPlay-configuraties StreamingPolicyFairPlayConfiguration
playReady PlayReady-configuraties StreamingPolicyPlayReadyConfiguration
widevine Widevine-configuraties StreamingPolicyWidevineConfiguration

StreamingPolicyFairPlayConfiguration

Naam Description Waarde
allowPersistentLicense Alle licenties die permanent moeten zijn of niet bool (vereist)
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks

StreamingPolicyPlayReadyConfiguration

Naam Description Waarde
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks
playReadyCustomAttributes Aangepaste kenmerken voor PlayReady tekenreeks

StreamingPolicyWidevineConfiguration

Naam Description Waarde
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks

EnabledProtocols

Naam Description Waarde
Dash DASH-protocol inschakelen of niet bool (vereist)
downloaden Downloadprotocol inschakelen of niet bool (vereist)
hls HLS-protocol inschakelen of niet bool (vereist)
smoothStreaming SmoothStreaming-protocol inschakelen of niet bool (vereist)

CommonEncryptionCenc

Naam Description Waarde
clearKeyEncryptionConfiguration Optionele configuratie die ClearKey ondersteunt in het CommonEncryptionCenc-versleutelingsschema. ClearKeyEncryptionConfiguration
clearTracks Vertegenwoordigen welke sporen niet moeten worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
Drm Configuratie van DRM's voor CommonEncryptionCenc-versleutelingsschema CencDrmConfiguration
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

CencDrmConfiguration

Naam Description Waarde
playReady PlayReady-configuraties StreamingPolicyPlayReadyConfiguration
widevine Widevine-configuraties StreamingPolicyWidevineConfiguration

EnvelopeEncryption

Naam Description Waarde
clearTracks Vertegenwoordigen welke sporen niet moeten worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
customKeyAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die sleutels levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het uitgeven van sleutels. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

NoEncryption

Naam Description Waarde
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

Resourcedefinitie van Terraform (AzAPI-provider)

Het resourcetype mediaServices/streamingPolicies kan worden geïmplementeerd voor:

  • Resourcegroepen

Zie wijzigingenlogboek voor een lijst met gewijzigde eigenschappen in elke API-versie.

Resource-indeling

Als u een Resource Microsoft.Media/mediaServices/streamingPolicies wilt maken, voegt u de volgende Terraform toe aan uw sjabloon.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Media/mediaServices/streamingPolicies@2022-08-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      commonEncryptionCbcs = {
        clearKeyEncryptionConfiguration = {
          customKeysAcquisitionUrlTemplate = "string"
        }
        clearTracks = [
          {
            trackSelections = [
              {
                operation = "string"
                property = "string"
                value = "string"
              }
            ]
          }
        ]
        contentKeys = {
          defaultKey = {
            label = "string"
            policyName = "string"
          }
          keyToTrackMappings = [
            {
              label = "string"
              policyName = "string"
              tracks = [
                {
                  trackSelections = [
                    {
                      operation = "string"
                      property = "string"
                      value = "string"
                    }
                  ]
                }
              ]
            }
          ]
        }
        drm = {
          fairPlay = {
            allowPersistentLicense = bool
            customLicenseAcquisitionUrlTemplate = "string"
          }
          playReady = {
            customLicenseAcquisitionUrlTemplate = "string"
            playReadyCustomAttributes = "string"
          }
          widevine = {
            customLicenseAcquisitionUrlTemplate = "string"
          }
        }
        enabledProtocols = {
          dash = bool
          download = bool
          hls = bool
          smoothStreaming = bool
        }
      }
      commonEncryptionCenc = {
        clearKeyEncryptionConfiguration = {
          customKeysAcquisitionUrlTemplate = "string"
        }
        clearTracks = [
          {
            trackSelections = [
              {
                operation = "string"
                property = "string"
                value = "string"
              }
            ]
          }
        ]
        contentKeys = {
          defaultKey = {
            label = "string"
            policyName = "string"
          }
          keyToTrackMappings = [
            {
              label = "string"
              policyName = "string"
              tracks = [
                {
                  trackSelections = [
                    {
                      operation = "string"
                      property = "string"
                      value = "string"
                    }
                  ]
                }
              ]
            }
          ]
        }
        drm = {
          playReady = {
            customLicenseAcquisitionUrlTemplate = "string"
            playReadyCustomAttributes = "string"
          }
          widevine = {
            customLicenseAcquisitionUrlTemplate = "string"
          }
        }
        enabledProtocols = {
          dash = bool
          download = bool
          hls = bool
          smoothStreaming = bool
        }
      }
      defaultContentKeyPolicyName = "string"
      envelopeEncryption = {
        clearTracks = [
          {
            trackSelections = [
              {
                operation = "string"
                property = "string"
                value = "string"
              }
            ]
          }
        ]
        contentKeys = {
          defaultKey = {
            label = "string"
            policyName = "string"
          }
          keyToTrackMappings = [
            {
              label = "string"
              policyName = "string"
              tracks = [
                {
                  trackSelections = [
                    {
                      operation = "string"
                      property = "string"
                      value = "string"
                    }
                  ]
                }
              ]
            }
          ]
        }
        customKeyAcquisitionUrlTemplate = "string"
        enabledProtocols = {
          dash = bool
          download = bool
          hls = bool
          smoothStreaming = bool
        }
      }
      noEncryption = {
        enabledProtocols = {
          dash = bool
          download = bool
          hls = bool
          smoothStreaming = bool
        }
      }
    }
  })
}

Eigenschapswaarden

mediaServices/streamingPolicies

Naam Description Waarde
type Het resourcetype "Microsoft.Media/mediaServices/streamingPolicies@2022-08-01"
naam De resourcenaam tekenreeks (vereist)
parent_id De id van de resource die het bovenliggende item voor deze resource is. Id voor resource van het type: mediaServices
properties Klasse om eigenschappen van streamingbeleid op te geven StreamingPolicyProperties

StreamingPolicyProperties

Naam Description Waarde
commonEncryptionCbcs Configuratie van CommonEncryptionCbcs CommonEncryptionCbcs
commonEncryptionCenc Configuratie van CommonEncryptionCenc CommonEncryptionCenc
defaultContentKeyPolicyName Standaard ContentKey die wordt gebruikt door het huidige streamingbeleid tekenreeks
envelopeEncryption Configuratie van EnvelopeEncryption EnvelopeEncryption
noEncryption Configuraties van NoEncryption NoEncryption

CommonEncryptionCbcs

Naam Description Waarde
clearKeyEncryptionConfiguration Optionele configuratie die ClearKey ondersteunt in commonEncryptionCbcs-versleutelingsschema. ClearKeyEncryptionConfiguration
clearTracks Vertegenwoordigen welke sporen niet mogen worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
Drm Configuratie van DRM's voor het huidige versleutelingsschema CbcsDrmConfiguration
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

ClearKeyEncryptionConfiguration

Naam Description Waarde
customKeysAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die inhoudssleutels levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarde is {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId. tekenreeks

TrackSelection

Naam Description Waarde
trackSelections TrackSelections is een lijst met voorwaarden voor trackeigenschappen waarmee u track(s) kunt opgeven TrackPropertyCondition[]

TrackPropertyCondition

Naam Description Waarde
bewerking Bewerking eigenschapsvoorwaarde bijhouden "Gelijk aan"
'Onbekend' (vereist)
property Type eigenschap bijhouden "FourCC"
'Onbekend' (vereist)
waarde Waarde van eigenschap bijhouden tekenreeks

StreamingPolicyContentKeys

Naam Description Waarde
defaultKey Standaardinhoudssleutel voor een versleutelingsschema Standaardsleutel
keyToTrackMappings Voor het weergeven van sporen is een afzonderlijke inhoudssleutel vereist StreamingPolicyContentKey[]

Standaardsleutel

Naam Description Waarde
label Label kan worden gebruikt om inhoudssleutel op te geven bij het maken van een streaming-locator tekenreeks
policyName Beleid dat wordt gebruikt door de standaardsleutel tekenreeks

StreamingPolicyContentKey

Naam Description Waarde
label Label kan worden gebruikt om inhoudssleutel op te geven bij het maken van een streaming-locator tekenreeks
policyName Beleid dat wordt gebruikt door inhoudssleutel tekenreeks
Tracks Houdt bij welke inhoudssleutel wordt gebruikt TrackSelection[]

CbcsDrmConfiguration

Naam Description Waarde
Fairplay FairPlay-configuraties StreamingPolicyFairPlayConfiguration
playReady PlayReady-configuraties StreamingPolicyPlayReadyConfiguration
widevine Widevine-configuraties StreamingPolicyWidevineConfiguration

StreamingPolicyFairPlayConfiguration

Naam Description Waarde
allowPersistentLicense Alle licenties die permanent moeten zijn of niet bool (vereist)
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks

StreamingPolicyPlayReadyConfiguration

Naam Description Waarde
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks
playReadyCustomAttributes Aangepaste kenmerken voor PlayReady tekenreeks

StreamingPolicyWidevineConfiguration

Naam Description Waarde
customLicenseAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist wanneer u Azure Media Services gebruikt voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks

EnabledProtocols

Naam Description Waarde
Dash DASH-protocol inschakelen of niet bool (vereist)
downloaden Downloadprotocol inschakelen of niet bool (vereist)
hls HLS-protocol inschakelen of niet bool (vereist)
smoothStreaming SmoothStreaming-protocol inschakelen of niet bool (vereist)

CommonEncryptionCenc

Naam Description Waarde
clearKeyEncryptionConfiguration Optionele configuratie die ClearKey ondersteunt in het versleutelingsschema CommonEncryptionCenc. ClearKeyEncryptionConfiguration
clearTracks Vertegenwoordigen welke sporen niet mogen worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
Drm Configuratie van DRM's voor CommonEncryptionCenc-versleutelingsschema CencDrmConfiguration
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

CencDrmConfiguration

Naam Description Waarde
playReady PlayReady-configuraties StreamingPolicyPlayReadyConfiguration
widevine Widevine-configuraties StreamingPolicyWidevineConfiguration

EnvelopeEncryption

Naam Description Waarde
clearTracks Vertegenwoordigen welke sporen niet mogen worden versleuteld TrackSelection[]
contentKeys Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers StreamingPolicyContentKeys
customKeyAcquisitionUrlTemplate Sjabloon voor de URL van de aangepaste service die sleutels levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het uitgeven van sleutels. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd. tekenreeks
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols

NoEncryption

Naam Description Waarde
enabledProtocols Ondersteunde protocollen vertegenwoordigen EnabledProtocols