Condividi tramite


PolicyExemptionData Class

Definition

The policy exemption.

public class PolicyExemptionData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Resources.Policy.PolicyExemptionData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Resources.Policy.PolicyExemptionData>
type PolicyExemptionData = class
    inherit ResourceData
    interface IJsonModel<PolicyExemptionData>
    interface IPersistableModel<PolicyExemptionData>
Public Class PolicyExemptionData
Inherits ResourceData
Implements IJsonModel(Of PolicyExemptionData), IPersistableModel(Of PolicyExemptionData)
Inheritance
PolicyExemptionData
Implements

Constructors

Name Description
PolicyExemptionData()

Initializes a new instance of PolicyExemptionData.

Properties

Name Description
AssignmentScopeValidation

The option whether validate the exemption is at or under the assignment scope.

Description

The description of the policy exemption.

DisplayName

The display name of the policy exemption.

ExemptionCategory

The policy exemption category. Possible values are Waiver and Mitigated.

ExpiresOn

The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Metadata

The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs.

Name

The name of the resource.

(Inherited from ResourceData)
PolicyAssignmentId

The ID of the policy assignment that is being exempted.

PolicyDefinitionReferenceIds

The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.

ResourceSelectors

The resource selector list to filter policies by resource properties.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<PolicyExemptionData>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<PolicyExemptionData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<PolicyExemptionData>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<PolicyExemptionData>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<PolicyExemptionData>.Write(ModelReaderWriterOptions)

Applies to