Freigeben über


PurviewMetadataPolicyClient.GetMetadataPolicyAsync Methode

Definition

Ruft eine Metadatenrichtlinie ab.

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)

Parameter

policyId
String

ID einer vorhandenen Richtlinie, die abgerufen werden muss.

options
Azure.RequestOptions

Die Anforderungsoptionen

Gibt zurück

Ausnahmen

policyId ist NULL.

Hinweise

Schema für 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
              }
            }

Schema für Response Error:

{
              error: {
                code: string,
                message: string,
                target: string,
                details: [ErrorModelAutoGenerated]
              }
            }

Gilt für: