C# Class OneAndOne.Client.Endpoints.FirewallPolicies.FirewallPolicies

Exibir arquivo Open project: 1and1/oneandone-cloudserver-sdk-dotnet

Public Methods

Method Description
Create ( CreateFirewallPolicyRequest policy ) : FirewallPolicyResponse

Creates a new firewall policy.

CreateFirewallPolicyRule ( AddFirewallPolicyRuleRequest rule, string firewall_id ) : FirewallPolicyResponse

Adds new rules to a firewall policy.

CreateFirewallPolicyServerIPs ( AssignFirewallServerIPRequest serverIps, string firewall_id ) : FirewallPolicyResponse

Assigns servers/IPs to a firewall policy.

Delete ( string firewall_id ) : FirewallPolicyResponse

Removes a firewall policy.

DeleteFirewallPolicyRules ( string firewall_id, string rule_id ) : FirewallPolicyResponse

Removes a rule from a firewall policy.

DeleteFirewallPolicyServerIP ( string firewall_id, string server_ip ) : FirewallPolicyResponse

Unassigns a server/IP from a firewall policy.

FirewallPolicies ( object _apiUrl = null, object _apiKey = null ) : System
Get ( int page = null, int perPage = null, string sort = null, string query = null, string fields = null ) : List

Returns a list of your firewall policies.

GetFirewallPolicyRules ( string firewall_id ) : List

Returns a list of the rules of a firewall policy.

GetFirewallPolicyServerIps ( string firewall_id ) : List

Returns a list of the servers/IPs attached to a firewall policy.

Show ( string firewall_id ) : FirewallPolicyResponse

Returns information about a firewall policy.

ShowFirewallPolicyRule ( string firewall_id, string rule_id ) : FirewallRule

Returns information about a rule of a firewall policy.

ShowFirewallPolicyServerIp ( string firewall_id, string server_ip ) : FirewallPolicyServerIPsResponse

Returns information about a server/IP assigned to a firewall policy.

Update ( UpdateFirewallPolicyRequest firewallPolicy, string firewall_id ) : FirewallPolicyResponse

Modifies a firewall policy.

Method Details

Create() public method

Creates a new firewall policy.
public Create ( CreateFirewallPolicyRequest policy ) : FirewallPolicyResponse
policy OneAndOne.POCO.Requests.FirewallPolicies.CreateFirewallPolicyRequest
return FirewallPolicyResponse

CreateFirewallPolicyRule() public method

Adds new rules to a firewall policy.
public CreateFirewallPolicyRule ( AddFirewallPolicyRuleRequest rule, string firewall_id ) : FirewallPolicyResponse
rule OneAndOne.POCO.Requests.FirewallPolicies.AddFirewallPolicyRuleRequest
firewall_id string Unique firewall's identifier.
return FirewallPolicyResponse

CreateFirewallPolicyServerIPs() public method

Assigns servers/IPs to a firewall policy.
public CreateFirewallPolicyServerIPs ( AssignFirewallServerIPRequest serverIps, string firewall_id ) : FirewallPolicyResponse
serverIps OneAndOne.POCO.Requests.FirewallPolicies.AssignFirewallServerIPRequest
firewall_id string Unique firewall's identifier.
return FirewallPolicyResponse

Delete() public method

Removes a firewall policy.
public Delete ( string firewall_id ) : FirewallPolicyResponse
firewall_id string Unique firewall's identifier.
return FirewallPolicyResponse

DeleteFirewallPolicyRules() public method

Removes a rule from a firewall policy.
public DeleteFirewallPolicyRules ( string firewall_id, string rule_id ) : FirewallPolicyResponse
firewall_id string Unique firewall's identifier.
rule_id string Unique rule's identifier.
return FirewallPolicyResponse

DeleteFirewallPolicyServerIP() public method

Unassigns a server/IP from a firewall policy.
public DeleteFirewallPolicyServerIP ( string firewall_id, string server_ip ) : FirewallPolicyResponse
firewall_id string Unique firewall's identifier.
server_ip string Unique IP's identifier.
return FirewallPolicyResponse

FirewallPolicies() public method

public FirewallPolicies ( object _apiUrl = null, object _apiKey = null ) : System
_apiUrl object
_apiKey object
return System

Get() public method

Returns a list of your firewall policies.
public Get ( int page = null, int perPage = null, string sort = null, string query = null, string fields = null ) : List
page int Allows to use pagination. Sets the number of servers that will be shown in each page.
perPage int Current page to show.
sort string Allows to sort the result by priority:sort=name retrieves a list of elements ordered by their names.sort=-creation_date retrieves a list of elements ordered according to their creation date in descending order of priority.
query string Allows to search one string in the response and return the elements that contain it. In order to specify the string use parameter q: q=My server
fields string Returns only the parameters requested: fields=id,name,description,hardware.ram
return List

GetFirewallPolicyRules() public method

Returns a list of the rules of a firewall policy.
public GetFirewallPolicyRules ( string firewall_id ) : List
firewall_id string Unique firewall's identifier.
return List

GetFirewallPolicyServerIps() public method

Returns a list of the servers/IPs attached to a firewall policy.
public GetFirewallPolicyServerIps ( string firewall_id ) : List
firewall_id string Unique firewall's identifier.
return List

Show() public method

Returns information about a firewall policy.
public Show ( string firewall_id ) : FirewallPolicyResponse
firewall_id string ,Unique firewall's identifier
return FirewallPolicyResponse

ShowFirewallPolicyRule() public method

Returns information about a rule of a firewall policy.
public ShowFirewallPolicyRule ( string firewall_id, string rule_id ) : FirewallRule
firewall_id string Unique firewall's identifier.
rule_id string Unique rule's identifier.
return FirewallRule

ShowFirewallPolicyServerIp() public method

Returns information about a server/IP assigned to a firewall policy.
public ShowFirewallPolicyServerIp ( string firewall_id, string server_ip ) : FirewallPolicyServerIPsResponse
firewall_id string Unique firewall's identifier.
server_ip string Unique IP's identifier.
return OneAndOne.POCO.Respones.FirewallPolicies.FirewallPolicyServerIPsResponse

Update() public method

Modifies a firewall policy.
public Update ( UpdateFirewallPolicyRequest firewallPolicy, string firewall_id ) : FirewallPolicyResponse
firewallPolicy OneAndOne.POCO.Requests.FirewallPolicies.UpdateFirewallPolicyRequest
firewall_id string Unique firewall's identifier.
return FirewallPolicyResponse