你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Media videoAnalyzers/accessPolicies 2021-11-01-preview

Bicep 资源定义

videoAnalyzers/accessPolicies 资源类型可以部署到:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Media/videoAnalyzers/accessPolicies 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Media/videoAnalyzers/accessPolicies@2021-11-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    authentication: {
      @type: 'string'
      // For remaining properties, see AuthenticationBase objects
    }
    role: 'Reader'
  }
}

AuthenticationBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.JwtAuthentication,请使用:

  @type: '#Microsoft.VideoAnalyzer.JwtAuthentication'
  audiences: [
    'string'
  ]
  claims: [
    {
      name: 'string'
      value: 'string'
    }
  ]
  issuers: [
    'string'
  ]
  keys: [
    {
      kid: 'string'
      @type: 'string'
      // For remaining properties, see TokenKey objects
    }
  ]

TokenKey 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EccTokenKey,请使用:

  @type: '#Microsoft.VideoAnalyzer.EccTokenKey'
  alg: 'string'
  x: 'string'
  y: 'string'

对于 #Microsoft.VideoAnalyzer.RsaTokenKey,请使用:

  @type: '#Microsoft.VideoAnalyzer.RsaTokenKey'
  alg: 'string'
  e: 'string'
  n: 'string'

属性值

videoAnalyzers/accessPolicies

名称 说明
name 资源名称

了解如何在 Bicep 中设置子资源的名称和类型。
字符串 (必需)
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为 的资源的符号名称: videoAnalyzers
properties 资源属性。 AccessPolicyProperties

AccessPolicyProperties

名称 说明
身份验证 验证客户端 API 访问时要使用的身份验证方法。 AuthenticationBase
角色 (role) 定义此策略授予的访问级别。 “Reader”

AuthenticationBase

名称 说明
@type 设置对象类型 #Microsoft.VideoAnalyzer.JwtAuthentication (必需)

JwtAuthentication

名称 说明
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.JwtAuthentication” ()
audiences 预期令牌访问群体的列表。 如果令牌受众与至少一个给定值匹配,则令牌受众有效。 string[]
声明 要验证的其他令牌声明的列表。 令牌必须包含所有声明和相应的值,才能使其有效。 TokenClaim[]
issuers 预期的令牌颁发者列表。 如果令牌颁发者与至少一个给定值匹配,则令牌颁发者有效。 string[]
密钥 可用于验证访问令牌的密钥列表。 使用多个密钥可以无缝轮换令牌签名密钥。 令牌签名必须与一个密钥完全匹配。 TokenKey[]

TokenClaim

名称 说明
name 令牌上必须存在的声明的名称。 字符串 (必需)
value 令牌上存在的声明的预期值。 字符串 (必需)

TokenKey

名称 说明
儿童 JWT 令牌密钥 ID。验证密钥是根据 JWT 令牌标头上存在的密钥 ID 查找的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.EccTokenKey
#Microsoft.VideoAnalyzer.RsaTokenKey (必需)

EccTokenKey

名称 说明
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.EccTokenKey” ()
alg 要使用的椭圆曲线算法:ES256、ES384 或 ES512。 “ES256”
“ES384”
需要“ES512” ()
x X 坐标。 字符串 (必需)
y Y 坐标。 字符串 (必需)

RsaTokenKey

名称 说明
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.RsaTokenKey” ()
alg 要使用的 RSA 算法:RS256、RS384 或 RS512。 “RS256”
“RS384”
需要“RS512” ()
e RSA 公钥指数。 字符串 (必需)
n RSA 公钥模数。 字符串 (必需)

ARM 模板资源定义

videoAnalyzers/accessPolicies 资源类型可以部署到:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Media/videoAnalyzers/accessPolicies 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Media/videoAnalyzers/accessPolicies",
  "apiVersion": "2021-11-01-preview",
  "name": "string",
  "properties": {
    "authentication": {
      "@type": "string"
      // For remaining properties, see AuthenticationBase objects
    },
    "role": "Reader"
  }
}

AuthenticationBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.JwtAuthentication,请使用:

  "@type": "#Microsoft.VideoAnalyzer.JwtAuthentication",
  "audiences": [ "string" ],
  "claims": [
    {
      "name": "string",
      "value": "string"
    }
  ],
  "issuers": [ "string" ],
  "keys": [
    {
      "kid": "string",
      "@type": "string"
      // For remaining properties, see TokenKey objects
    }
  ]

TokenKey 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EccTokenKey,请使用:

  "@type": "#Microsoft.VideoAnalyzer.EccTokenKey",
  "alg": "string",
  "x": "string",
  "y": "string"

对于 #Microsoft.VideoAnalyzer.RsaTokenKey,请使用:

  "@type": "#Microsoft.VideoAnalyzer.RsaTokenKey",
  "alg": "string",
  "e": "string",
  "n": "string"

属性值

videoAnalyzers/accessPolicies

名称 说明 Value
type 资源类型 'Microsoft.Media/videoAnalyzers/accessPolicies'
apiVersion 资源 API 版本 '2021-11-01-preview'
name 资源名称

了解如何在 JSON ARM 模板中设置子资源的名称和类型。
字符串 (必需)
properties 资源属性。 AccessPolicyProperties

AccessPolicyProperties

名称 说明
身份验证 验证客户端 API 访问时要使用的身份验证方法。 AuthenticationBase
角色 (role) 定义此策略授予的访问级别。 “Reader”

AuthenticationBase

名称 说明
@type 设置对象类型 #Microsoft.VideoAnalyzer.JwtAuthentication (必需)

JwtAuthentication

名称 说明
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.JwtAuthentication” ()
audiences 预期令牌访问群体的列表。 如果令牌受众与至少一个给定值匹配,则令牌受众有效。 string[]
声明 要验证的其他令牌声明的列表。 令牌必须包含所有声明和相应的值,才能使其有效。 TokenClaim[]
issuers 预期的令牌颁发者列表。 如果令牌颁发者与至少一个给定值匹配,则令牌颁发者有效。 string[]
密钥 可用于验证访问令牌的密钥列表。 使用多个密钥可以无缝轮换令牌签名密钥。 令牌签名必须与一个密钥完全匹配。 TokenKey[]

TokenClaim

名称 说明
name 令牌上必须存在的声明的名称。 字符串 (必需)
value 令牌上存在的声明的预期值。 字符串 (必需)

TokenKey

名称 说明
儿童 JWT 令牌密钥 ID。验证密钥是根据 JWT 令牌标头上存在的密钥 ID 查找的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.EccTokenKey
#Microsoft.VideoAnalyzer.RsaTokenKey (必需)

EccTokenKey

名称 说明
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.EccTokenKey” ()
alg 要使用的椭圆曲线算法:ES256、ES384 或 ES512。 “ES256”
“ES384”
需要“ES512” ()
x X 坐标。 字符串 (必需)
y Y 坐标。 字符串 (必需)

RsaTokenKey

名称 说明
@type 派生类型的鉴别器。 需要“#Microsoft.VideoAnalyzer.RsaTokenKey” ()
alg 要使用的 RSA 算法:RS256、RS384 或 RS512。 “RS256”
“RS384”
需要“RS512” ()
e RSA 公钥指数。 字符串 (必需)
n RSA 公钥模数。 字符串 (必需)

Terraform (AzAPI 提供程序) 资源定义

videoAnalyzers/accessPolicies 资源类型可以部署到:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Media/videoAnalyzers/accessPolicies 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Media/videoAnalyzers/accessPolicies@2021-11-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      authentication = {
        @type = "string"
        // For remaining properties, see AuthenticationBase objects
      }
      role = "Reader"
    }
  })
}

AuthenticationBase 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.JwtAuthentication,请使用:

  @type = "#Microsoft.VideoAnalyzer.JwtAuthentication"
  audiences = [
    "string"
  ]
  claims = [
    {
      name = "string"
      value = "string"
    }
  ]
  issuers = [
    "string"
  ]
  keys = [
    {
      kid = "string"
      @type = "string"
      // For remaining properties, see TokenKey objects
    }
  ]

TokenKey 对象

设置 @type 属性以指定对象的类型。

对于 #Microsoft.VideoAnalyzer.EccTokenKey,请使用:

  @type = "#Microsoft.VideoAnalyzer.EccTokenKey"
  alg = "string"
  x = "string"
  y = "string"

对于 #Microsoft.VideoAnalyzer.RsaTokenKey,请使用:

  @type = "#Microsoft.VideoAnalyzer.RsaTokenKey"
  alg = "string"
  e = "string"
  n = "string"

属性值

videoAnalyzers/accessPolicies

名称 说明 Value
type 资源类型 “Microsoft.Media/videoAnalyzers/accessPolicies@2021-11-01-preview”
name 资源名称 字符串 (必需)
parent_id 此资源的父资源的 ID。 类型为:videoAnalyzers 的资源的 ID
properties 资源属性。 AccessPolicyProperties

AccessPolicyProperties

名称 说明
身份验证 验证客户端 API 访问时要使用的身份验证方法。 AuthenticationBase
角色 (role) 定义此策略授予的访问级别。 “Reader”

AuthenticationBase

名称 说明
@type 设置对象类型 #Microsoft.VideoAnalyzer.JwtAuthentication (必需)

JwtAuthentication

名称 说明
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.JwtAuthentication” (所需的)
audiences 预期令牌访问群体的列表。 如果令牌受众与至少一个给定值匹配,则令牌受众有效。 string[]
声明 要验证的其他令牌声明的列表。 令牌必须包含所有声明和相应的值,才能使其有效。 TokenClaim[]
issuers 预期的令牌颁发者列表。 如果令牌颁发者与至少一个给定值匹配,则令牌颁发者有效。 string[]
密钥 可用于验证访问令牌的密钥列表。 使用多个密钥可以无缝轮换令牌签名密钥。 令牌签名必须与一个密钥完全匹配。 TokenKey[]

TokenClaim

名称 说明
name 令牌上必须存在的声明的名称。 字符串 (必需)
value 令牌上存在的声明的预期值。 字符串 (必需)

TokenKey

名称 说明
儿童 JWT 令牌密钥 ID。验证密钥是根据 JWT 令牌标头上存在的密钥 ID 查找的。 字符串 (必需)
@type 设置对象类型 #Microsoft.VideoAnalyzer.EccTokenKey
#Microsoft.VideoAnalyzer.RsaTokenKey (必需)

EccTokenKey

名称 说明
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.EccTokenKey” (需要)
alg 要使用的椭圆曲线算法:ES256、ES384 或 ES512。 “ES256”
“ES384”
需要“ES512” ()
x X 坐标。 字符串 (必需)
y Y 坐标。 字符串 (必需)

RsaTokenKey

名称 说明
@type 派生类型的鉴别器。 “#Microsoft.VideoAnalyzer.RsaTokenKey” (需要)
alg 要使用的 RSA 算法:RS256、RS384 或 RS512。 “RS256”
“RS384”
需要“RS512” ()
e RSA 公钥指数。 字符串 (必需)
n RSA 公钥模数。 字符串 (必需)