Dela via


PolicyExemption Constructors

Definition

Overloads

PolicyExemption()

Initializes a new instance of the PolicyExemption class.

PolicyExemption(String, String, IList<String>, Nullable<DateTime>, String, String, Object, SystemData, String, String, String)

Initializes a new instance of the PolicyExemption class.

PolicyExemption()

Initializes a new instance of the PolicyExemption class.

public PolicyExemption ();
Public Sub New ()

Applies to

PolicyExemption(String, String, IList<String>, Nullable<DateTime>, String, String, Object, SystemData, String, String, String)

Initializes a new instance of the PolicyExemption class.

public PolicyExemption (string policyAssignmentId, string exemptionCategory, System.Collections.Generic.IList<string> policyDefinitionReferenceIds = default, DateTime? expiresOn = default, string displayName = default, string description = default, object metadata = default, Microsoft.Azure.Management.ResourceManager.Models.SystemData systemData = default, string id = default, string name = default, string type = default);
new Microsoft.Azure.Management.ResourceManager.Models.PolicyExemption : string * string * System.Collections.Generic.IList<string> * Nullable<DateTime> * string * string * obj * Microsoft.Azure.Management.ResourceManager.Models.SystemData * string * string * string -> Microsoft.Azure.Management.ResourceManager.Models.PolicyExemption
Public Sub New (policyAssignmentId As String, exemptionCategory As String, Optional policyDefinitionReferenceIds As IList(Of String) = Nothing, Optional expiresOn As Nullable(Of DateTime) = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional metadata As Object = Nothing, Optional systemData As SystemData = Nothing, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing)

Parameters

policyAssignmentId
String

The ID of the policy assignment that is being exempted.

exemptionCategory
String

The policy exemption category. Possible values are Waiver and Mitigated. Possible values include: 'Waiver', 'Mitigated'

policyDefinitionReferenceIds
IList<String>

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

expiresOn
Nullable<DateTime>

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

displayName
String

The display name of the policy exemption.

description
String

The description of the policy exemption.

metadata
Object

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

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

id
String

The ID of the policy exemption.

name
String

The name of the policy exemption.

type
String

The type of the resource (Microsoft.Authorization/policyExemptions).

Applies to