Condividi tramite


PolicyDefinition Class

Definition

The policy definition.

[Microsoft.Rest.Serialization.JsonTransformation]
public class PolicyDefinition : Microsoft.Rest.Azure.IResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type PolicyDefinition = class
    interface IResource
Public Class PolicyDefinition
Implements IResource
Inheritance
PolicyDefinition
Attributes
Implements

Constructors

PolicyDefinition()

Initializes a new instance of the PolicyDefinition class.

PolicyDefinition(String, String, String, String, Object, Object, IDictionary<String,ParameterDefinitionsValue>, String, String, String, SystemData)

Initializes a new instance of the PolicyDefinition class.

Properties

Description

Gets or sets the policy definition description.

DisplayName

Gets or sets the display name of the policy definition.

Id

Gets the ID of the policy definition.

Metadata

Gets or sets the policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.

Mode

Gets or sets the policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.

Name

Gets the name of the policy definition.

Parameters

Gets or sets the parameter definitions for parameters used in the policy rule. The keys are the parameter names.

PolicyRule

Gets or sets the policy rule.

PolicyType

Gets or sets the type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom', 'Static'

SystemData

Gets the system metadata relating to this resource.

Type

Gets the type of the resource (Microsoft.Authorization/policyDefinitions).

Applies to