ArmResourcesPolicyModelFactory.PolicyExemptionData 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.
public static Azure.ResourceManager.Resources.Policy.PolicyExemptionData PolicyExemptionData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string policyAssignmentId = default, System.Collections.Generic.IEnumerable<string> policyDefinitionReferenceIds = default, Azure.ResourceManager.Resources.Policy.Models.PolicyExemptionCategory? exemptionCategory = default, DateTimeOffset? expiresOn = default, string displayName = default, string description = default, BinaryData metadata = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Policy.Models.PolicyResourceSelector> resourceSelectors = default, Azure.ResourceManager.Resources.Policy.Models.PolicyAssignmentScopeValidation? assignmentScopeValidation = default);
static member PolicyExemptionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * seq<string> * Nullable<Azure.ResourceManager.Resources.Policy.Models.PolicyExemptionCategory> * Nullable<DateTimeOffset> * string * string * BinaryData * seq<Azure.ResourceManager.Resources.Policy.Models.PolicyResourceSelector> * Nullable<Azure.ResourceManager.Resources.Policy.Models.PolicyAssignmentScopeValidation> -> Azure.ResourceManager.Resources.Policy.PolicyExemptionData
Public Shared Function PolicyExemptionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional policyAssignmentId As String = Nothing, Optional policyDefinitionReferenceIds As IEnumerable(Of String) = Nothing, Optional exemptionCategory As Nullable(Of PolicyExemptionCategory) = Nothing, Optional expiresOn As Nullable(Of DateTimeOffset) = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional metadata As BinaryData = Nothing, Optional resourceSelectors As IEnumerable(Of PolicyResourceSelector) = Nothing, Optional assignmentScopeValidation As Nullable(Of PolicyAssignmentScopeValidation) = Nothing) As PolicyExemptionData
Parameters
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- policyAssignmentId
- String
The ID of the policy assignment that is being exempted.
- policyDefinitionReferenceIds
- IEnumerable<String>
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
- exemptionCategory
- Nullable<PolicyExemptionCategory>
The policy exemption category. Possible values are Waiver and Mitigated.
- expiresOn
- Nullable<DateTimeOffset>
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
- BinaryData
The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs.
- resourceSelectors
- IEnumerable<PolicyResourceSelector>
The resource selector list to filter policies by resource properties.
- assignmentScopeValidation
- Nullable<PolicyAssignmentScopeValidation>
The option whether validate the exemption is at or under the assignment scope.
Returns
A new PolicyExemptionData instance for mocking.