Show / Hide Table of Contents

    Class FirewallRule

    Represents a server firewall rule.

    Inheritance
    Object
    Resource
    ProxyResource
    FirewallRule
    Inherited Members
    Resource.Id
    Resource.Name
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Sql.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class FirewallRule : Microsoft.Azure.Management.Sql.Models.ProxyResource

    Constructors

    FirewallRule()

    Initializes a new instance of the FirewallRule class.

    Declaration
    public FirewallRule ();

    FirewallRule(String, String, String, String, String, String, String)

    Initializes a new instance of the FirewallRule class.

    Declaration
    public FirewallRule (string startIpAddress, string endIpAddress, string id = null, string name = null, string type = null, string kind = null, string location = null);
    Parameters
    String startIpAddress

    The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP addresses.

    String endIpAddress

    The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses.

    String id

    Resource ID.

    String name

    Resource name.

    String type

    Resource type.

    String kind

    Kind of server that contains this firewall rule.

    String location

    Location of the server that contains this firewall rule.

    Properties

    EndIpAddress

    Gets or sets the end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.endIpAddress")]
    public string EndIpAddress { get; set; }
    Property Value
    String

    Kind

    Gets kind of server that contains this firewall rule.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="kind")]
    public string Kind { get; }
    Property Value
    String

    Location

    Gets location of the server that contains this firewall rule.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="location")]
    public string Location { get; }
    Property Value
    String

    StartIpAddress

    Gets or sets the start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP addresses.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.startIpAddress")]
    public string StartIpAddress { get; set; }
    Property Value
    String

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net