|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FirewallServices
Operations on whatever concept the underlying cloud uses to regulate network traffic into a server or group of servers.
| Method Summary | |
|---|---|
void |
authorize(String firewallId,
String cidr,
Protocol protocol,
int beginPort,
int endPort)
Provides positive authorization for the specified firewall rule. |
String |
create(String name,
String description)
Creates a new firewall with the specified name. |
void |
delete(String firewallId)
Deletes the specified firewall from the system. |
Firewall |
getFirewall(String firewallId)
Provides the full firewall data for the specified firewall. |
String |
getProviderTermForFirewall(Locale locale)
Provides the firewall terminology for the concept of a firewall. |
Collection<FirewallRule> |
getRules(String firewallId)
Provides the affirmative rules supported by the named firewall. |
Collection<Firewall> |
list()
Lists all firewalls in the current provider context. |
void |
revoke(String firewallId,
String cidr,
Protocol protocol,
int beginPort,
int endPort)
Revokes the specified access from the named firewall. |
| Method Detail |
|---|
void authorize(String firewallId,
String cidr,
Protocol protocol,
int beginPort,
int endPort)
throws CloudException,
InternalException
firewallId - the unique, cloud-specific ID for the firewall being targeted by the new rulecidr - the source CIDR (http://en.wikipedia.org/wiki/CIDR) for the allowed trafficprotocol - the protocol (tcp/udp/icmp) supported by this rulebeginPort - the beginning of the port range to be allowed, inclusiveendPort - the end of the port range to be allowed, inclusive
CloudException - an error occurred with the cloud provider establishing the rule
InternalException - an error occurred locally trying to establish the rule
String create(String name,
String description)
throws InternalException,
CloudException
name - the user-friendly name for the new firewalldescription - a description of the purpose of the firewall
CloudException - an error occurred with the cloud provider while performing the operation
InternalException - an error occurred locally independent of any events in the cloud
void delete(String firewallId)
throws InternalException,
CloudException
firewallId - the unique ID of the firewall to be deleted
InternalException - an error occurred locally independent of any events in the cloud
CloudException - an error occurred with the cloud provider while performing the operation
Firewall getFirewall(String firewallId)
throws InternalException,
CloudException
firewallId - the unique ID of the desired firewall
InternalException - an error occurred locally independent of any events in the cloud
CloudException - an error occurred with the cloud provider while performing the operationString getProviderTermForFirewall(Locale locale)
locale - the locale for which you should translate the firewall term
Collection<FirewallRule> getRules(String firewallId)
throws InternalException,
CloudException
firewallId - the unique ID of the firewall being queried
InternalException - an error occurred locally independent of any events in the cloud
CloudException - an error occurred with the cloud provider while performing the operation
Collection<Firewall> list()
throws InternalException,
CloudException
InternalException - an error occurred locally independent of any events in the cloud
CloudException - an error occurred with the cloud provider while performing the operation
void revoke(String firewallId,
String cidr,
Protocol protocol,
int beginPort,
int endPort)
throws CloudException,
InternalException
firewallId - the firewall from which the rule is being revokedcidr - the source CIDR (http://en.wikipedia.org/wiki/CIDR) for the rule being removedprotocol - the protocol (tcp/icmp/udp) of the rule being removedbeginPort - the initial port of the rule being removedendPort - the end port of the rule being removed
InternalException - an error occurred locally independent of any events in the cloud
CloudException - an error occurred with the cloud provider while performing the operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.