public class FirewallPolicyServiceImpl extends BaseNetworkingServices implements FirewallPolicyService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
FirewallPolicyServiceImpl() |
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
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends FirewallPolicy> list()
list
in interface FirewallPolicyService
public List<? extends FirewallPolicy> list(Map<String,String> filteringParams)
list
in interface FirewallPolicyService
filteringParams
- map (name, value) of filtering parameterspublic FirewallPolicy get(String firewallPolicyId)
get
in interface FirewallPolicyService
firewallPolicyId
- the FirewallPolicy identifierpublic ActionResponse delete(String firewallPolicyId)
delete
in interface FirewallPolicyService
firewallPolicyId
- the FirewallPolicy identifierpublic FirewallPolicy create(FirewallPolicy firewallPolicy)
create
in interface FirewallPolicyService
public FirewallPolicy update(String firewallPolicyId, FirewallPolicyUpdate firewallPolicyUpdate)
update
in interface FirewallPolicyService
firewallPolicyId
- the FirewallPolicy identifierfirewallPolicyUpdate
- FirewallUpdatepublic FirewallPolicy insertFirewallRuleInPolicy(String firewallPolicyId, String firewallRuleId, FirewallRuleStrategy.RuleInsertStrategyType type, String insertAfterOrBeforeRuleId)
insertFirewallRuleInPolicy
in interface FirewallPolicyService
firewallPolicyId
- rule inserted in FirewallPolicyfirewallRuleId
- rule to be insertedtype
- FirewallRuleStrategy.RuleInsertStrategyType
insertAfterOrBeforeRuleId
- rule id where the new firewallRule will be inserted/switched frompublic FirewallPolicy removeFirewallRuleFromPolicy(String firewallPolicyId, String firewallRuleId)
removeFirewallRuleFromPolicy
in interface FirewallPolicyService
firewallRuleId
- rule to be deleted.Copyright © 2017. All rights reserved.