Udostępnij za pośrednictwem


AdminRule Class

Definition

Network admin rule.

[Microsoft.Rest.Serialization.JsonTransformation]
[Newtonsoft.Json.JsonObject("Custom")]
public class AdminRule : Microsoft.Azure.Management.Network.Models.BaseAdminRule
[<Microsoft.Rest.Serialization.JsonTransformation>]
[<Newtonsoft.Json.JsonObject("Custom")>]
type AdminRule = class
    inherit BaseAdminRule
Public Class AdminRule
Inherits BaseAdminRule
Inheritance
Attributes
JsonTransformationAttribute Newtonsoft.Json.JsonObjectAttribute

Constructors

AdminRule()

Initializes a new instance of the AdminRule class.

AdminRule(String, String, Int32, String, String, String, String, String, SystemData, String, IList<AddressPrefixItem>, IList<AddressPrefixItem>, IList<String>, IList<String>, String)

Initializes a new instance of the AdminRule class.

Properties

Access

Gets or sets indicates the access allowed for this particular rule. Possible values include: 'Allow', 'Deny', 'AlwaysAllow'

Description

Gets or sets a description for this rule. Restricted to 140 chars.

DestinationPortRanges

Gets or sets the destination port ranges.

Destinations

Gets or sets the destination address prefixes. CIDR or destination IP ranges.

Direction

Gets or sets indicates if the traffic matched against the rule in inbound or outbound. Possible values include: 'Inbound', 'Outbound'

Etag

Gets a unique read-only string that changes whenever the resource is updated.

(Inherited from ChildResource)
Id

Gets resource ID.

(Inherited from ChildResource)
Name

Gets resource name.

(Inherited from ChildResource)
Priority

Gets or sets the priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.

Protocol

Gets or sets network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', 'Any', 'Ah'

ProvisioningState

Gets the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

SourcePortRanges

Gets or sets the source port ranges.

Sources

Gets or sets the CIDR or source IP ranges.

SystemData

Gets the system metadata related to this resource.

(Inherited from BaseAdminRule)
Type

Gets resource type.

(Inherited from ChildResource)

Methods

Validate()

Validate the object.

Applies to