Streaming Locators - Create
Een streaming-locator maken in het Media Services-account
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}?api-version=2022-08-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
account
|
path | True |
string |
De naam van het Media Services-account. |
resource
|
path | True |
string |
De naam van de resourcegroep binnen het Azure-abonnement. |
streaming
|
path | True |
string |
De naam van de streaming-locator. |
subscription
|
path | True |
string |
De unieke id voor een Microsoft Azure-abonnement. |
api-version
|
query | True |
string |
De versie van de API die moet worden gebruikt met de clientaanvraag. |
Aanvraagbody
Name | Vereist | Type | Description |
---|---|---|---|
properties.assetName | True |
string |
Assetnaam |
properties.streamingPolicyName | True |
string |
Naam van het streamingbeleid dat door deze streaming-locator wordt gebruikt. Geef de naam op van het streamingbeleid dat u hebt gemaakt of gebruik een van de vooraf gedefinieerde beleidsregels voor streaming. De vooraf gedefinieerde beleidsregels voor streaming zijn: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' en 'Predefined_MultiDrmStreaming' |
properties.alternativeMediaId |
string |
Alternatieve media-id van deze streaming-locator |
|
properties.contentKeys |
De ContentKeys die door deze streaming-locator worden gebruikt. |
||
properties.defaultContentKeyPolicyName |
string |
Naam van de standaard ContentKeyPolicy die door deze streaming-locator wordt gebruikt. |
|
properties.endTime |
string |
De eindtijd van de streaming-locator. |
|
properties.filters |
string[] |
Een lijst met asset- of accountfilters die van toepassing zijn op deze streaming-locator |
|
properties.startTime |
string |
De begintijd van de streaming-locator. |
|
properties.streamingLocatorId |
string |
De StreamingLocatorId van de streaming-locator. |
Antwoorden
Name | Type | Description |
---|---|---|
201 Created |
Gemaakt |
|
Other Status Codes |
Gedetailleerde foutinformatie. |
Voorbeelden
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
Voorbeeldaanvraag
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"
}
}
Voorbeeldrespons
{
"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
Voorbeeldaanvraag
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"
}
}
Voorbeeldrespons
{
"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
Voorbeeldaanvraag
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=="
}
]
}
}
Voorbeeldrespons
{
"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": []
}
]
}
}
Definities
Name | Description |
---|---|
created |
Het type identiteit waarmee de resource is gemaakt. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Streaming |
Een streaming-locator-resource |
Streaming |
Klasse voor inhoudssleutel in streaming-locator |
Streaming |
Versleutelingstype van inhoudssleutel |
system |
Metagegevens met betrekking tot het maken en laatste wijzigen van de resource. |
Track |
Bewerking eigenschapsvoorwaarde bijhouden |
Track |
Klasse voor het opgeven van één voorwaarde voor de eigenschap track |
Track |
Type eigenschap bijhouden |
Track |
Klas om een nummer te selecteren |
createdByType
Het type identiteit waarmee de resource is gemaakt.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het type aanvullende informatie. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
StreamingLocator
Een streaming-locator-resource
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
De naam van de resource |
properties.alternativeMediaId |
string |
Alternatieve media-id van deze streaming-locator |
properties.assetName |
string |
Assetnaam |
properties.contentKeys |
De ContentKeys die door deze streaming-locator worden gebruikt. |
|
properties.created |
string |
De aanmaaktijd van de streaming-locator. |
properties.defaultContentKeyPolicyName |
string |
Naam van de standaard ContentKeyPolicy die door deze streaming-locator wordt gebruikt. |
properties.endTime |
string |
De eindtijd van de streaming-locator. |
properties.filters |
string[] |
Een lijst met asset- of accountfilters die van toepassing zijn op deze streaming-locator |
properties.startTime |
string |
De begintijd van de streaming-locator. |
properties.streamingLocatorId |
string |
De StreamingLocatorId van de streaming-locator. |
properties.streamingPolicyName |
string |
Naam van het streamingbeleid dat door deze streaming-locator wordt gebruikt. Geef de naam op van het streamingbeleid dat u hebt gemaakt of gebruik een van de vooraf gedefinieerde beleidsregels voor streaming. De vooraf gedefinieerde beleidsregels voor streaming zijn: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' en 'Predefined_MultiDrmStreaming' |
systemData |
De systeemmetagegevens met betrekking tot deze resource. |
|
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
StreamingLocatorContentKey
Klasse voor inhoudssleutel in streaming-locator
Name | Type | Description |
---|---|---|
id |
string |
Id van inhoudssleutel |
labelReferenceInStreamingPolicy |
string |
Label van inhoudssleutel zoals opgegeven in het streamingbeleid |
policyName |
string |
ContentKeyPolicy gebruikt door Content Key |
tracks |
Houdt bij welke inhoudssleutel wordt gebruikt |
|
type |
Versleutelingstype van inhoudssleutel |
|
value |
string |
Waarde van inhoudssleutel |
StreamingLocatorContentKeyType
Versleutelingstype van inhoudssleutel
Name | Type | Description |
---|---|---|
CommonEncryptionCbcs |
string |
Algemene versleuteling met CBCS |
CommonEncryptionCenc |
string |
Algemene versleuteling met CENC |
EnvelopeEncryption |
string |
Envelopversleuteling |
systemData
Metagegevens met betrekking tot het maken en laatste wijzigen van de resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
De tijdstempel van het maken van resources (UTC). |
createdBy |
string |
De identiteit die de resource heeft gemaakt. |
createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
lastModifiedAt |
string |
Het tijdstempel van de laatste wijziging van de resource (UTC) |
lastModifiedBy |
string |
De identiteit die de resource het laatst heeft gewijzigd. |
lastModifiedByType |
Het type identiteit dat de resource het laatst heeft gewijzigd. |
TrackPropertyCompareOperation
Bewerking eigenschapsvoorwaarde bijhouden
Name | Type | Description |
---|---|---|
Equal |
string |
Gelijke bewerking |
Unknown |
string |
Onbekende vergelijkingsbewerking voor bijhouden van eigenschap |
TrackPropertyCondition
Klasse voor het opgeven van één voorwaarde voor de eigenschap track
Name | Type | Description |
---|---|---|
operation |
Bewerking eigenschapsvoorwaarde bijhouden |
|
property |
Type eigenschap bijhouden |
|
value |
string |
Waarde van eigenschap bijhouden |
TrackPropertyType
Type eigenschap bijhouden
Name | Type | Description |
---|---|---|
FourCC |
string |
FourCC bijhouden |
Unknown |
string |
Onbekende track-eigenschap |
TrackSelection
Klas om een nummer te selecteren
Name | Type | Description |
---|---|---|
trackSelections |
TrackSelections is een lijst met voorwaarden voor trackeigenschappen waarmee u track(s) kunt opgeven |