你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Account Filters - Create Or Update
创建或更新帐户筛选器
在媒体服务帐户中创建或更新帐户筛选器。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}?api-version=2022-08-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
account
|
path | True |
string |
媒体服务帐户名称。 |
filter
|
path | True |
string |
帐户筛选器名称 |
resource
|
path | True |
string |
Azure 订阅中资源组的名称。 |
subscription
|
path | True |
string |
Microsoft Azure 订阅的唯一标识符。 |
api-version
|
query | True |
string |
要与客户端请求一起使用的 API 的版本。 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
properties.firstQuality |
第一质量。 |
|
properties.presentationTimeRange |
呈现时间范围。 |
|
properties.tracks |
轨迹选择条件。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
|
201 Created |
创建 |
|
Other Status Codes |
详细的错误信息。 |
示例
Create an Account Filter
Sample Request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/accountFilters/newAccountFilter?api-version=2022-08-01
{
"properties": {
"presentationTimeRange": {
"startTimestamp": 0,
"endTimestamp": 170000000,
"presentationWindowDuration": 9223372036854774806,
"liveBackoffDuration": 0,
"timescale": 10000000,
"forceEndTimestamp": false
},
"firstQuality": {
"bitrate": 128000
},
"tracks": [
{
"trackSelections": [
{
"property": "Type",
"operation": "Equal",
"value": "Audio"
},
{
"property": "Language",
"operation": "NotEqual",
"value": "en"
},
{
"property": "FourCC",
"operation": "NotEqual",
"value": "EC-3"
}
]
},
{
"trackSelections": [
{
"property": "Type",
"operation": "Equal",
"value": "Video"
},
{
"property": "Bitrate",
"operation": "Equal",
"value": "3000000-5000000"
}
]
}
]
}
}
Sample Response
{
"name": "newAccountFilter",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter",
"type": "Microsoft.Media/mediaservices/accountFilters",
"properties": {
"presentationTimeRange": {
"startTimestamp": 0,
"endTimestamp": 170000000,
"presentationWindowDuration": 9223372036854774806,
"liveBackoffDuration": 0,
"timescale": 10000000,
"forceEndTimestamp": false
},
"firstQuality": {
"bitrate": 128000
},
"tracks": [
{
"trackSelections": [
{
"property": "Type",
"value": "Audio",
"operation": "Equal"
},
{
"property": "Language",
"value": "en",
"operation": "NotEqual"
},
{
"property": "FourCC",
"value": "EC-3",
"operation": "NotEqual"
}
]
},
{
"trackSelections": [
{
"property": "Type",
"value": "Video",
"operation": "Equal"
},
{
"property": "Bitrate",
"value": "3000000-5000000",
"operation": "Equal"
}
]
}
]
}
}
{
"name": "newAccountFilter",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter",
"type": "Microsoft.Media/mediaservices/accountFilters",
"properties": {
"presentationTimeRange": {
"startTimestamp": 0,
"endTimestamp": 170000000,
"presentationWindowDuration": 9223372036854774806,
"liveBackoffDuration": 0,
"timescale": 10000000,
"forceEndTimestamp": false
},
"firstQuality": {
"bitrate": 128000
},
"tracks": [
{
"trackSelections": [
{
"property": "Type",
"value": "Audio",
"operation": "Equal"
},
{
"property": "Language",
"value": "en",
"operation": "NotEqual"
},
{
"property": "FourCC",
"value": "EC-3",
"operation": "NotEqual"
}
]
},
{
"trackSelections": [
{
"property": "Type",
"value": "Video",
"operation": "Equal"
},
{
"property": "Bitrate",
"value": "3000000-5000000",
"operation": "Equal"
}
]
}
]
}
}
定义
名称 | 说明 |
---|---|
Account |
帐户筛选器。 |
created |
创建资源的标识类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Filter |
跟踪属性条件操作。 |
Filter |
用于指定一个跟踪属性条件的类。 |
Filter |
跟踪属性类型。 |
Filter |
表示 FilterTrackPropertyConditions 的列表以选择轨道。筛选器使用逻辑 AND 操作进行组合。 |
First |
筛选第一质量 |
Presentation |
演示时间范围,与资产相关,不建议用于帐户筛选器。 |
system |
与资源的创建和上次修改相关的元数据。 |
AccountFilter
帐户筛选器。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
资源的名称 |
properties.firstQuality |
第一质量。 |
|
properties.presentationTimeRange |
呈现时间范围。 |
|
properties.tracks |
轨迹选择条件。 |
|
systemData |
与此资源相关的系统元数据。 |
|
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
createdByType
创建资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
FilterTrackPropertyCompareOperation
跟踪属性条件操作。
名称 | 类型 | 说明 |
---|---|---|
Equal |
string |
相等运算。 |
NotEqual |
string |
不相等运算。 |
FilterTrackPropertyCondition
用于指定一个跟踪属性条件的类。
名称 | 类型 | 说明 |
---|---|---|
operation |
跟踪属性条件操作。 |
|
property |
跟踪属性类型。 |
|
value |
string |
跟踪属性值。 |
FilterTrackPropertyType
跟踪属性类型。
名称 | 类型 | 说明 |
---|---|---|
Bitrate |
string |
比特率。 |
FourCC |
string |
四CC。 |
Language |
string |
语言。 |
Name |
string |
名称。 |
Type |
string |
类型。 |
Unknown |
string |
未知轨迹属性类型。 |
FilterTrackSelection
表示 FilterTrackPropertyConditions 的列表以选择轨道。筛选器使用逻辑 AND 操作进行组合。
名称 | 类型 | 说明 |
---|---|---|
trackSelections |
曲目选择。 |
FirstQuality
筛选第一质量
名称 | 类型 | 说明 |
---|---|---|
bitrate |
integer |
第一个质量比特率。 |
PresentationTimeRange
演示时间范围,与资产相关,不建议用于帐户筛选器。
名称 | 类型 | 说明 |
---|---|---|
endTimestamp |
integer |
绝对结束时间边界。 |
forceEndTimestamp |
boolean |
强制存在结束时间戳的指示器。 |
liveBackoffDuration |
integer |
相对于右端边缘的 。 |
presentationWindowDuration |
integer |
相对于结束滑动窗口的 。 |
startTimestamp |
integer |
绝对开始时间边界。 |
timescale |
integer |
时间戳的时间刻度。 |
systemData
与资源的创建和上次修改相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源创建时间戳 (UTC) 。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识类型。 |
|
lastModifiedAt |
string |
资源上次修改的时间戳 (UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识类型。 |