你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Bicep 资源定义
可以使用目标作部署 mediaServices/streamingLocators 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.Media/mediaServices/streamingLocators 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.Media/mediaServices/streamingLocators@2018-06-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
alternativeMediaId: 'string'
assetName: 'string'
contentKeys: [
{
id: 'string'
label: 'string'
tracks: [
{
trackSelections: [
{
operation: 'string'
property: 'string'
value: 'string'
}
]
}
]
value: 'string'
}
]
defaultContentKeyPolicyName: 'string'
endTime: 'string'
startTime: 'string'
streamingLocatorId: 'string'
streamingPolicyName: 'string'
}
}
属性值
Microsoft.Media/mediaServices/streamingLocators
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 资源名称 | string (必需) |
| 父母 | 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。 有关详细信息,请参阅 父资源外部的子资源。 |
类型资源的符号名称:mediaServices |
| 性能 | 用于指定流定位符属性的类 | StreamingLocatorProperties |
StreamingLocatorContentKey
| 名字 | 描述 | 价值 |
|---|---|---|
| id | 内容密钥的 ID | 字符串 约束: 最小长度 = 36 最大长度 = 36 模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ (必需) |
| 标签 | 内容密钥标签 | 字符串 |
| 轨道 | 跟踪使用此内容密钥的跟踪 | TrackSelection[] |
| 价值 | 内容密钥的值 | 字符串 |
StreamingLocatorProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| alternativeMediaId | 与 StreamingLocator 关联的备用媒体标识符。 此标识符可用于区分同一资产的不同 StreamingLocator,以便在 CustomLicenseAcquisitionUrlTemplate 或 StreamingPolicyName 字段中指定的 StreamingPolicy 的 CustomKeyAcquisitionUrlTemplate 中进行授权。 | 字符串 |
| assetName | 资产名称 | string (必需) |
| contentKeys | 此流式处理定位符使用的 ContentKey | StreamingLocatorContentKey[] |
| defaultContentKeyPolicyName | 此流式处理定位符使用的默认 ContentKeyPolicy | 字符串 |
| endTime | 流式处理定位符的 EndTime | 字符串 |
| 开始时间 | 流式处理定位符的 StartTime | 字符串 |
| streamingLocatorId | 流定位符的 StreamingLocatorId | 字符串 约束: 最小长度 = 36 最大长度 = 36 Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| streamingPolicyName | 此流式处理定位符使用的流式处理策略名称。 指定创建的流式处理策略的名称,或使用预定义的流策略之一。 可用的预定义流式处理策略包括:“Predefined_DownloadOnly”、“Predefined_ClearStreamingOnly”、“Predefined_DownloadAndClearStreaming”、“Predefined_ClearKey”、“Predefined_SecureStreaming”和“Predefined_SecureStreamingWithFairPlay” | string (必需) |
TrackPropertyCondition
| 名字 | 描述 | 价值 |
|---|---|---|
| 操作 | 跟踪属性条件作 | “Equal” “未知”(必需) |
| 财产 | Track 属性类型 | “FourCC” “未知”(必需) |
| 价值 | 跟踪属性值 | 字符串 |
TrackSelection
| 名字 | 描述 | 价值 |
|---|---|---|
| trackSelections | TrackSelections 是一个跟踪属性条件列表,可以指定 track(s) | TrackPropertyCondition[] |
ARM 模板资源定义
可以使用目标作部署 mediaServices/streamingLocators 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.Media/mediaServices/streamingLocators 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.Media/mediaServices/streamingLocators",
"apiVersion": "2018-06-01-preview",
"name": "string",
"properties": {
"alternativeMediaId": "string",
"assetName": "string",
"contentKeys": [
{
"id": "string",
"label": "string",
"tracks": [
{
"trackSelections": [
{
"operation": "string",
"property": "string",
"value": "string"
}
]
}
],
"value": "string"
}
],
"defaultContentKeyPolicyName": "string",
"endTime": "string",
"startTime": "string",
"streamingLocatorId": "string",
"streamingPolicyName": "string"
}
}
属性值
Microsoft.Media/mediaServices/streamingLocators
| 名字 | 描述 | 价值 |
|---|---|---|
| apiVersion | API 版本 | '2018-06-01-preview' |
| 名字 | 资源名称 | string (必需) |
| 性能 | 用于指定流定位符属性的类 | StreamingLocatorProperties |
| 类型 | 资源类型 | “Microsoft.Media/mediaServices/streamingLocators” |
StreamingLocatorContentKey
| 名字 | 描述 | 价值 |
|---|---|---|
| id | 内容密钥的 ID | 字符串 约束: 最小长度 = 36 最大长度 = 36 模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ (必需) |
| 标签 | 内容密钥标签 | 字符串 |
| 轨道 | 跟踪使用此内容密钥的跟踪 | TrackSelection[] |
| 价值 | 内容密钥的值 | 字符串 |
StreamingLocatorProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| alternativeMediaId | 与 StreamingLocator 关联的备用媒体标识符。 此标识符可用于区分同一资产的不同 StreamingLocator,以便在 CustomLicenseAcquisitionUrlTemplate 或 StreamingPolicyName 字段中指定的 StreamingPolicy 的 CustomKeyAcquisitionUrlTemplate 中进行授权。 | 字符串 |
| assetName | 资产名称 | string (必需) |
| contentKeys | 此流式处理定位符使用的 ContentKey | StreamingLocatorContentKey[] |
| defaultContentKeyPolicyName | 此流式处理定位符使用的默认 ContentKeyPolicy | 字符串 |
| endTime | 流式处理定位符的 EndTime | 字符串 |
| 开始时间 | 流式处理定位符的 StartTime | 字符串 |
| streamingLocatorId | 流定位符的 StreamingLocatorId | 字符串 约束: 最小长度 = 36 最大长度 = 36 Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| streamingPolicyName | 此流式处理定位符使用的流式处理策略名称。 指定创建的流式处理策略的名称,或使用预定义的流策略之一。 可用的预定义流式处理策略包括:“Predefined_DownloadOnly”、“Predefined_ClearStreamingOnly”、“Predefined_DownloadAndClearStreaming”、“Predefined_ClearKey”、“Predefined_SecureStreaming”和“Predefined_SecureStreamingWithFairPlay” | string (必需) |
TrackPropertyCondition
| 名字 | 描述 | 价值 |
|---|---|---|
| 操作 | 跟踪属性条件作 | “Equal” “未知”(必需) |
| 财产 | Track 属性类型 | “FourCC” “未知”(必需) |
| 价值 | 跟踪属性值 | 字符串 |
TrackSelection
| 名字 | 描述 | 价值 |
|---|---|---|
| trackSelections | TrackSelections 是一个跟踪属性条件列表,可以指定 track(s) | TrackPropertyCondition[] |
用法示例
Terraform (AzAPI 提供程序)资源定义
可以使用目标作部署 mediaServices/streamingLocators 资源类型:
- 资源组
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.Media/mediaServices/streamingLocators 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Media/mediaServices/streamingLocators@2018-06-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
alternativeMediaId = "string"
assetName = "string"
contentKeys = [
{
id = "string"
label = "string"
tracks = [
{
trackSelections = [
{
operation = "string"
property = "string"
value = "string"
}
]
}
]
value = "string"
}
]
defaultContentKeyPolicyName = "string"
endTime = "string"
startTime = "string"
streamingLocatorId = "string"
streamingPolicyName = "string"
}
}
}
属性值
Microsoft.Media/mediaServices/streamingLocators
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 资源名称 | string (必需) |
| parent_id | 此资源的父资源的 ID。 | 类型资源的 ID:mediaServices |
| 性能 | 用于指定流定位符属性的类 | StreamingLocatorProperties |
| 类型 | 资源类型 | “Microsoft.Media/mediaServices/streamingLocators@2018-06-01-preview” |
StreamingLocatorContentKey
| 名字 | 描述 | 价值 |
|---|---|---|
| id | 内容密钥的 ID | 字符串 约束: 最小长度 = 36 最大长度 = 36 模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ (必需) |
| 标签 | 内容密钥标签 | 字符串 |
| 轨道 | 跟踪使用此内容密钥的跟踪 | TrackSelection[] |
| 价值 | 内容密钥的值 | 字符串 |
StreamingLocatorProperties
| 名字 | 描述 | 价值 |
|---|---|---|
| alternativeMediaId | 与 StreamingLocator 关联的备用媒体标识符。 此标识符可用于区分同一资产的不同 StreamingLocator,以便在 CustomLicenseAcquisitionUrlTemplate 或 StreamingPolicyName 字段中指定的 StreamingPolicy 的 CustomKeyAcquisitionUrlTemplate 中进行授权。 | 字符串 |
| assetName | 资产名称 | string (必需) |
| contentKeys | 此流式处理定位符使用的 ContentKey | StreamingLocatorContentKey[] |
| defaultContentKeyPolicyName | 此流式处理定位符使用的默认 ContentKeyPolicy | 字符串 |
| endTime | 流式处理定位符的 EndTime | 字符串 |
| 开始时间 | 流式处理定位符的 StartTime | 字符串 |
| streamingLocatorId | 流定位符的 StreamingLocatorId | 字符串 约束: 最小长度 = 36 最大长度 = 36 Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| streamingPolicyName | 此流式处理定位符使用的流式处理策略名称。 指定创建的流式处理策略的名称,或使用预定义的流策略之一。 可用的预定义流式处理策略包括:“Predefined_DownloadOnly”、“Predefined_ClearStreamingOnly”、“Predefined_DownloadAndClearStreaming”、“Predefined_ClearKey”、“Predefined_SecureStreaming”和“Predefined_SecureStreamingWithFairPlay” | string (必需) |
TrackPropertyCondition
| 名字 | 描述 | 价值 |
|---|---|---|
| 操作 | 跟踪属性条件作 | “Equal” “未知”(必需) |
| 财产 | Track 属性类型 | “FourCC” “未知”(必需) |
| 价值 | 跟踪属性值 | 字符串 |
TrackSelection
| 名字 | 描述 | 价值 |
|---|---|---|
| trackSelections | TrackSelections 是一个跟踪属性条件列表,可以指定 track(s) | TrackPropertyCondition[] |