PurviewMetadataPolicyClient.GetMetadataPolicy(String, RequestOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a metadata policy.
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
Parameters
- policyId
- String
Id of an existing policy that needs to be fetched.
- options
- Azure.RequestOptions
The request options.
Returns
Exceptions
policyId
is null.
Remarks
Schema for 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 for Response Error
:
{
error: {
code: string,
message: string,
target: string,
details: [ErrorModelAutoGenerated]
}
}
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET