All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huawei.openstack4j.api.networking.ext.FirewallPolicyService Maven / Gradle / Ivy

/*******************************************************************************
 * 	Copyright 2016 ContainX and OpenStack4j                                          
 * 	                                                                                 
 * 	Licensed under the Apache License, Version 2.0 (the "License"); you may not      
 * 	use this file except in compliance with the License. You may obtain a copy of    
 * 	the License at                                                                   
 * 	                                                                                 
 * 	    http://www.apache.org/licenses/LICENSE-2.0                                   
 * 	                                                                                 
 * 	Unless required by applicable law or agreed to in writing, software              
 * 	distributed under the License is distributed on an "AS IS" BASIS, WITHOUT        
 * 	WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the         
 * 	License for the specific language governing permissions and limitations under    
 * 	the License.                                                                     
 *******************************************************************************/
package com.huawei.openstack4j.api.networking.ext;

import java.util.List;
import java.util.Map;

import com.huawei.openstack4j.common.RestService;
import com.huawei.openstack4j.model.common.ActionResponse;
import com.huawei.openstack4j.model.network.ext.FirewallPolicy;
import com.huawei.openstack4j.model.network.ext.FirewallPolicyUpdate;
import com.huawei.openstack4j.openstack.networking.domain.ext.FirewallRuleStrategy.RuleInsertStrategyType;

/**
 * 

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: *

    *
  • Apply FirewallPolicy rules on traffic entering and leaving tenant networks.
  • *
  • Support for applying tcp, udp, icmp, or protocol agnostic rules.
  • *
  • Creation and sharing of FirewallPolicy policies which hold an ordered collection of the FirewallPolicy rules.
  • *
  • Audit FirewallPolicy rules and policies.
  • *
*

* * @author Vishvesh Deshmukh */ public interface FirewallPolicyService extends RestService { /** * List all FirewallPolicy(s) that the current tenant has access to. * * @return list of all FirewallPolicy(s) */ List list(); /** * Returns list of FirewallPolicy(s) filtered by parameters. * * @param filteringParams map (name, value) of filtering parameters * @return filtered list of FirewallPolicy(s) */ List list(Map filteringParams); /** * Get the specified FirewallPolicy by ID * * @param firewallPolicyId the FirewallPolicy identifier * @return the FirewallPolicy or null if not found */ FirewallPolicy get(String firewallPolicyId); /** * Delete the specified FirewallPolicy by ID * @param firewallPolicyId the FirewallPolicy identifier * @return the action response */ ActionResponse delete(String firewallPolicyId); /** * Create a FirewallPolicy * @param FirewallPolicy * @return FirewallPolicy */ FirewallPolicy create(FirewallPolicy firewallPolicy); /** * Update a FirewallPolicy * @param firewallPolicyId the FirewallPolicy identifier * @param firewallPolicyUpdate FirewallUpdate * @return FirewallPolicy */ FirewallPolicy update(String firewallPolicyId, FirewallPolicyUpdate firewallPolicyUpdate); /** * Inserts a firewall rule in a firewall policy relative to the position of other rules. * @param firewallPolicyId rule inserted in FirewallPolicy * @param firewallRuleId rule to be inserted * @param type {@link RuleInsertStrategyType} * @param insertAfterOrBeforeRuleId rule id where the new firewallRule will be inserted/switched from * @return FirewallPolicy */ FirewallPolicy insertFirewallRuleInPolicy(String firewallPolicyId, String firewallRuleId, RuleInsertStrategyType type, String insertAfterOrBeforeRuleId); /** * Removes a firewall rule from a firewall policy. * @param firewallPolicyId * @param firewallRuleId rule to be deleted. * @return FirewallPolicy */ FirewallPolicy removeFirewallRuleFromPolicy(String firewallPolicyId, String firewallRuleId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy