PurviewMetadataPolicyClient.GetMetadataPolicyAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
メタデータ ポリシーを取得します。
public virtual System.Threading.Tasks.Task<Azure.Response> GetMetadataPolicyAsync(string policyId, Azure.RequestOptions options);
abstract member GetMetadataPolicyAsync : string * Azure.RequestOptions -> System.Threading.Tasks.Task<Azure.Response>
override this.GetMetadataPolicyAsync : string * Azure.RequestOptions -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetMetadataPolicyAsync (policyId As String, options As RequestOptions) As Task(Of Response)
パラメーター
- policyId
- String
フェッチする必要がある既存のポリシーの ID。
- options
- Azure.RequestOptions
要求オプション。
戻り値
例外
policyId
が null です。
注釈
の Response Body
スキーマ:
{
name: string,
id: string,
version: number,
properties: {
description: string,
decisionRules: [
{
kind: "decisionrule" | "attributerule",
effect: "Deny" | "Permit",
dnfCondition: [AttributeMatcher[]]
}
],
attributeRules: [
{
kind: "decisionrule" | "attributerule",
id: string,
name: string,
dnfCondition: [AttributeMatcher[]]
}
],
collection: {
type: string,
referenceName: string
},
parentCollectionName: string
}
}
の Response Error
スキーマ:
{
error: {
code: string,
message: string,
target: string,
details: [ErrorModelAutoGenerated]
}
}
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET