Method | Description | |
---|---|---|
Create ( |
Creates a new firewall policy.
|
|
CreateFirewallPolicyRule ( |
Adds new rules to a firewall policy.
|
|
CreateFirewallPolicyServerIPs ( |
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 ) : |
Returns information about a server/IP assigned to a firewall policy.
|
|
Update ( |
Modifies a firewall policy.
|
public Create ( |
||
policy | ||
return | FirewallPolicyResponse |
public CreateFirewallPolicyRule ( |
||
rule | ||
firewall_id | string | Unique firewall's identifier. |
return | FirewallPolicyResponse |
public CreateFirewallPolicyServerIPs ( |
||
serverIps | ||
firewall_id | string | Unique firewall's identifier. |
return | FirewallPolicyResponse |
public Delete ( string firewall_id ) : FirewallPolicyResponse | ||
firewall_id | string | Unique firewall's identifier. |
return | FirewallPolicyResponse |
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 |
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 |
public FirewallPolicies ( object _apiUrl = null, object _apiKey = null ) : System | ||
_apiUrl | object | |
_apiKey | object | |
return | System |
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 |
public GetFirewallPolicyRules ( string firewall_id ) : List |
||
firewall_id | string | Unique firewall's identifier. |
return | List |
public GetFirewallPolicyServerIps ( string firewall_id ) : List |
||
firewall_id | string | Unique firewall's identifier. |
return | List |
public Show ( string firewall_id ) : FirewallPolicyResponse | ||
firewall_id | string | ,Unique firewall's identifier |
return | FirewallPolicyResponse |
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 |
public ShowFirewallPolicyServerIp ( string firewall_id, string server_ip ) : |
||
firewall_id | string | Unique firewall's identifier. |
server_ip | string | Unique IP's identifier. |
return |
public Update ( |
||
firewallPolicy | ||
firewall_id | string | Unique firewall's identifier. |
return | FirewallPolicyResponse |