次の方法で共有


PurviewMetadataPolicyClient.GetMetadataPolicy(String, RequestOptions) メソッド

定義

メタデータ ポリシーを取得します。

public virtual Azure.Response GetMetadataPolicy (string policyId, Azure.RequestOptions options);
abstract member GetMetadataPolicy : string * Azure.RequestOptions -> Azure.Response
override this.GetMetadataPolicy : string * Azure.RequestOptions -> Azure.Response
Public Overridable Function GetMetadataPolicy (policyId As String, options As RequestOptions) As 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]
              }
            }

適用対象