org.openstack4j.api.networking.ext.FirewallService Maven / Gradle / Ivy
package org.openstack4j.api.networking.ext;
import java.util.List;
import java.util.Map;
import org.openstack4j.common.RestService;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.network.ext.Firewall;
import org.openstack4j.model.network.ext.FirewallUpdate;
/**
* Networking (Neutron) FwaaS Firewall Extension API.
*
* Represents a logical firewall resource that a tenant can instantiate and manage. A firewall is associated with one firewall policy.
*
*
* The FWaaS extension provides OpenStack users with the ability to deploy firewalls to protect their networks. The FWaaS extension enables you to:
*
* - Apply firewall rules on traffic entering and leaving tenant networks.
* - Support for applying tcp, udp, icmp, or protocol agnostic rules.
* - Creation and sharing of firewall policies which hold an ordered collection of the firewall rules.
* - Audit firewall rules and policies.
*
*
*
* @author Vishvesh Deshmukh
*/
public interface FirewallService extends RestService {
/**
* List all Firewall(s) that the current tenant has access to.
*
* @return list of all Firewall(s)
*/
List list();
/**
* Returns list of Firewall(s) filtered by parameters.
*
* @param filteringParams map (name, value) of filtering parameters
* @return filtered list of Firewall(s)
*/
List list(Map filteringParams);
/**
* Get the specified Firewall by ID
*
* @param firewallId the Firewall identifier
* @return the Firewall or null if not found
*/
Firewall get(String firewallId);
/**
* Delete the specified Firewall by ID
* @param firewallId the Firewall identifier
* @return the action response
*/
ActionResponse delete(String firewallId);
/**
* Create a Firewall
* @param firewall
* @return Firewall
*/
Firewall create(Firewall firewall);
/**
* Update a Firewall
* @param firewallId the Firewall identifier
* @param firewallUpdate FirewallUpdate
* @return Firewall
*/
Firewall update(String firewallId, FirewallUpdate firewallUpdate);
}