Interface FirewallRuleService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
FirewallRuleServiceImpl
public interface FirewallRuleService extends RestService
Networking (Neutron) FwaaS FirewallRule Rule Extension API
Represents a collection of attributes like ports, ip addresses which define match criteria and action (allow, or deny) that needs to be taken on the matched data traffic.
The FWaaS extension provides OpenStack users with the ability to deploy firewalls to protect their networks. The FWaaS extension enables you to:
- Apply FirewallRule rules on traffic entering and leaving tenant networks.
- Support for applying tcp, udp, icmp, or protocol agnostic rules.
- Creation and sharing of FirewallRule policies which hold an ordered collection of the FirewallRule rules.
- Audit FirewallRule rules and policies.
- Author:
- Vishvesh Deshmukh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FirewallRulecreate(FirewallRule firewallRule)Create a FirewallRuleActionResponsedelete(String firewallRuleId)Delete the specified FirewallRule by IDFirewallRuleget(String firewallRuleId)Get the specified FirewallRule by IDList<? extends FirewallRule>list()List all FirewallRules(s) that the current tenant has access to.List<? extends FirewallRule>list(Map<String,String> filteringParams)Returns list of FirewallRules(s) filtered by parameters.FirewallRuleupdate(String firewallRuleId, FirewallRuleUpdate firewallRuleUpdate)Update a FirewallRule
-
-
-
Method Detail
-
list
List<? extends FirewallRule> list()
List all FirewallRules(s) that the current tenant has access to.- Returns:
- list of all FirewallRules(s)
-
list
List<? extends FirewallRule> list(Map<String,String> filteringParams)
Returns list of FirewallRules(s) filtered by parameters.- Parameters:
filteringParams- map (name, value) of filtering parameters- Returns:
- filtered list of FirewallRules(s)
-
get
FirewallRule get(String firewallRuleId)
Get the specified FirewallRule by ID- Parameters:
firewallRuleId- the FirewallRule identifier- Returns:
- the FirewallRule or null if not found
-
delete
ActionResponse delete(String firewallRuleId)
Delete the specified FirewallRule by ID- Parameters:
firewallRuleId- the FirewallRule identifier- Returns:
- the action response
-
create
FirewallRule create(FirewallRule firewallRule)
Create a FirewallRule- Returns:
- FirewallRule
-
update
FirewallRule update(String firewallRuleId, FirewallRuleUpdate firewallRuleUpdate)
Update a FirewallRule- Parameters:
firewallRuleId- the FirewallRule identifierfirewallRuleUpdate- firewallRuleUpdate- Returns:
- FirewallRule
-
-