PurviewMetadataPolicyClient.UpdateMetadataPolicyAsync 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.
Updates a metadata policy.
public virtual System.Threading.Tasks.Task<Azure.Response> UpdateMetadataPolicyAsync (string policyId, Azure.Core.RequestContent content, Azure.RequestOptions options = default);
abstract member UpdateMetadataPolicyAsync : string * Azure.Core.RequestContent * Azure.RequestOptions -> System.Threading.Tasks.Task<Azure.Response>
override this.UpdateMetadataPolicyAsync : string * Azure.Core.RequestContent * Azure.RequestOptions -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function UpdateMetadataPolicyAsync (policyId As String, content As RequestContent, Optional options As RequestOptions = Nothing) As Task(Of Response)
Parameters
- policyId
- String
Unique policy id.
- content
- RequestContent
The content to send as the body of the request.
- options
- Azure.RequestOptions
The request options.
Returns
Exceptions
policyId
is null.
Remarks
Schema for Request 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 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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.