public interface FirewallPolicyService extends RestService
Networking (Neutron) FwaaS FirewallPolicy Policy Extension API
Represents an ordered collection of FirewallPolicy rules. A FirewallPolicy policy can be shared across tenants. Thus it can also be made part of an audit workflow wherein the firewall_policy can be audited by the relevant entity that is authorized (and can be different from the tenants which create or use the FirewallPolicy policy).
The FWaaS extension provides OpenStack users with the ability to deploy firewalls to protect their networks. The FWaaS extension enables you to:
Modifier and Type | Method and Description |
---|---|
FirewallPolicy |
create(FirewallPolicy firewallPolicy)
Create a FirewallPolicy
|
ActionResponse |
delete(String firewallPolicyId)
Delete the specified FirewallPolicy by ID
|
FirewallPolicy |
get(String firewallPolicyId)
Get the specified FirewallPolicy by ID
|
FirewallPolicy |
insertFirewallRuleInPolicy(String firewallPolicyId,
String firewallRuleId,
FirewallRuleStrategy.RuleInsertStrategyType type,
String insertAfterOrBeforeRuleId)
Inserts a firewall rule in a firewall policy relative to the position of other rules.
|
List<? extends FirewallPolicy> |
list()
List all FirewallPolicy(s) that the current tenant has access to.
|
List<? extends FirewallPolicy> |
list(Map<String,String> filteringParams)
Returns list of FirewallPolicy(s) filtered by parameters.
|
FirewallPolicy |
removeFirewallRuleFromPolicy(String firewallPolicyId,
String firewallRuleId)
Removes a firewall rule from a firewall policy.
|
FirewallPolicy |
update(String firewallPolicyId,
FirewallPolicyUpdate firewallPolicyUpdate)
Update a FirewallPolicy
|
List<? extends FirewallPolicy> list()
List<? extends FirewallPolicy> list(Map<String,String> filteringParams)
filteringParams
- map (name, value) of filtering parametersFirewallPolicy get(String firewallPolicyId)
firewallPolicyId
- the FirewallPolicy identifierActionResponse delete(String firewallPolicyId)
firewallPolicyId
- the FirewallPolicy identifierFirewallPolicy create(FirewallPolicy firewallPolicy)
FirewallPolicy
- FirewallPolicy update(String firewallPolicyId, FirewallPolicyUpdate firewallPolicyUpdate)
firewallPolicyId
- the FirewallPolicy identifierfirewallPolicyUpdate
- FirewallUpdateFirewallPolicy insertFirewallRuleInPolicy(String firewallPolicyId, String firewallRuleId, FirewallRuleStrategy.RuleInsertStrategyType type, String insertAfterOrBeforeRuleId)
firewallPolicyId
- rule inserted in FirewallPolicyfirewallRuleId
- rule to be insertedtype
- FirewallRuleStrategy.RuleInsertStrategyType
insertAfterOrBeforeRuleId
- rule id where the new firewallRule will be inserted/switched fromFirewallPolicy removeFirewallRuleFromPolicy(String firewallPolicyId, String firewallRuleId)
firewallPolicyId
- firewallRuleId
- rule to be deleted.Copyright © 2017. All rights reserved.