DnsSecurityRuleAction 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 action to take on DNS requests that match the DNS security rule.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter))]
public class DnsSecurityRuleAction : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter))>]
type DnsSecurityRuleAction = class
interface IDnsSecurityRuleAction
interface IJsonSerializable
Public Class DnsSecurityRuleAction
Implements IDnsSecurityRuleAction
- Inheritance
-
DnsSecurityRuleAction
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| DnsSecurityRuleAction() |
Creates an new DnsSecurityRuleAction instance. |
Properties
| Name | Description |
|---|---|
| ActionType |
The type of action to take. |
| BlockResponseCode |
The response code for block actions. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of DnsSecurityRuleAction. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of DnsSecurityRuleAction. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction. |
| FromJsonString(String) |
Creates a new instance of DnsSecurityRuleAction, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of DnsSecurityRuleAction into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |