Language

DnsSecurityRuleProperties Class

Definition

Represents the properties of a DNS security rule.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePropertiesTypeConverter))]
public class DnsSecurityRuleProperties : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePropertiesTypeConverter))>]
type DnsSecurityRuleProperties = class
    interface IDnsSecurityRuleProperties
    interface IJsonSerializable
Public Class DnsSecurityRuleProperties
Implements IDnsSecurityRuleProperties
Inheritance
DnsSecurityRuleProperties
Attributes
Implements

Constructors

Name Description
DnsSecurityRuleProperties()

Creates an new DnsSecurityRuleProperties instance.

Properties

Name Description
ActionBlockResponseCode

The response code for block actions.

ActionType

The type of action to take.

DnsResolverDomainList

DNS resolver policy domains lists that the DNS security rule applies to.

DnsSecurityRuleState

The state of DNS security rule.

Priority

The priority of the DNS security rule.

ProvisioningState

The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value will be ignored.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of DnsSecurityRuleProperties.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of DnsSecurityRuleProperties.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties.

FromJsonString(String)

Creates a new instance of DnsSecurityRuleProperties, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of DnsSecurityRuleProperties into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to