你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PolicyExemption Class
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.
The policy exemption.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyExemptionTypeConverter))]
public class PolicyExemption : Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyExemption
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyExemptionTypeConverter))>]
type PolicyExemption = class
interface IPolicyExemption
interface IJsonSerializable
Public Class PolicyExemption
Implements IPolicyExemption
- Inheritance
-
PolicyExemption
- Attributes
- Implements
Constructors
PolicyExemption() |
Creates an new PolicyExemption instance. |
Properties
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 |
The ID of the policy exemption. |
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 policy exemption. |
PolicyAssignmentId |
The ID of the policy assignment that is being exempted. |
PolicyDefinitionReferenceId |
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. |
ResourceSelector |
The resource selector list to filter policies by resource properties. |
SystemDataCreatedAt |
The timestamp of resource creation (UTC). |
SystemDataCreatedBy |
The identity that created the resource. |
SystemDataCreatedByType |
The type of identity that created the resource. |
SystemDataLastModifiedAt |
The timestamp of resource last modification (UTC) |
SystemDataLastModifiedBy |
The identity that last modified the resource. |
SystemDataLastModifiedByType |
The type of identity that last modified the resource. |
Type |
The type of the resource (Microsoft.Authorization/policyExemptions). |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of PolicyExemption. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of PolicyExemption. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyExemption. |
FromJsonString(String) |
Creates a new instance of PolicyExemption, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of PolicyExemption into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |