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

Policy Metadata - Get Resource

获取策略元数据资源。

GET https://management.azure.com/providers/Microsoft.PolicyInsights/policyMetadata/{resourceName}?api-version=2019-10-01

URI 参数

名称 必需 类型 说明
resourceName
path True

string

策略元数据资源的名称。

api-version
query True

string

客户端 API 版本。

响应

名称 类型 说明
200 OK

PolicyMetadata

策略元数据资源定义。

Other Status Codes

ErrorResponse

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

Get a single policy metadata resource

Sample Request

GET https://management.azure.com/providers/Microsoft.PolicyInsights/policyMetadata/NIST_SP_800-53_R4_AC-2?api-version=2019-10-01

Sample Response

{
  "properties": {
    "metadataId": "NIST SP 800-53 R4 AC-2",
    "category": "Access control",
    "title": "Account Management",
    "owner": "Shared",
    "description": "Description of NIST SP 800-53 R4 AC-2",
    "requirements": "List the requirements for NIST SP 800-53 R4 AC-2",
    "additionalContentUrl": "https://aka.ms/NIST_SP_800-53_R4_AC-2",
    "metadata": {}
  },
  "id": "/providers/Microsoft.PolicyInsights/policyMetadata/NIST_SP_800-53_R4_AC-2",
  "name": "NIST_SP_800-53_R4_AC-2",
  "type": "Microsoft.PolicyInsights/policyMetadata"
}

定义

名称 说明
ErrorDefinition

错误定义。

ErrorResponse

错误响应。

PolicyMetadata

策略元数据资源定义。

TypedErrorInfo

特定于方案的错误详细信息。

ErrorDefinition

错误定义。

名称 类型 说明
additionalInfo

TypedErrorInfo[]

其他特定于方案的错误详细信息。

code

string

服务特定的错误代码,用作 HTTP 错误代码的子状态。

details

ErrorDefinition[]

内部错误详细信息。

message

string

错误的说明。

target

string

错误的目标。

ErrorResponse

错误响应。

名称 类型 说明
error

ErrorDefinition

错误详细信息。

PolicyMetadata

策略元数据资源定义。

名称 类型 说明
id

string

策略元数据的 ID。

name

string

策略元数据的名称。

properties.additionalContentUrl

string

用于获取有关资源元数据的其他内容的 URL。

properties.category

string

策略元数据的类别。

properties.description

string

策略元数据的说明。

properties.metadata

object

其他元数据。

properties.metadataId

string

策略元数据标识符。

properties.owner

string

策略元数据的所有者。

properties.requirements

string

策略元数据的要求。

properties.title

string

策略元数据的标题。

type

string

策略元数据的类型。

TypedErrorInfo

特定于方案的错误详细信息。

名称 类型 说明
info

特定于方案的错误详细信息。

type

string

包含的错误详细信息的类型。