|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FirewallClient
Provides synchronous access to CloudStack PortForwardingRule features.
PortForwardingRuleAsyncClient
,
Method Summary | |
---|---|
AsyncCreateResponse |
createFirewallRuleForIpAndProtocol(long ipAddressId,
FirewallRule.Protocol protocol,
CreateFirewallRuleOptions... options)
Create new firewall rule for a specific IP address |
AsyncCreateResponse |
createPortForwardingRuleForVirtualMachine(long ipAddressId,
PortForwardingRule.Protocol protocol,
int publicPort,
long virtualMachineId,
int privatePort)
Creates an port forwarding rule |
Void |
deleteFirewallRule(long id)
Deletes a firewall rule |
Void |
deletePortForwardingRule(long id)
Deletes an port forwarding rule |
FirewallRule |
getFirewallRule(long id)
Get a firewall rule by ID |
PortForwardingRule |
getPortForwardingRule(long id)
Get a port forwarding rule by ID |
Set<FirewallRule> |
listFirewallRules(ListFirewallRulesOptions... options)
List the firewall rules |
Set<PortForwardingRule> |
listPortForwardingRules(ListPortForwardingRulesOptions... options)
List the port forwarding rules |
Method Detail |
---|
Set<FirewallRule> listFirewallRules(ListFirewallRulesOptions... options)
options
- if present, how to constrain the list.
FirewallRule getFirewallRule(long id)
id
- the ID of the firewall rule
AsyncCreateResponse createFirewallRuleForIpAndProtocol(long ipAddressId, FirewallRule.Protocol protocol, CreateFirewallRuleOptions... options)
ipAddressId
- the IP address id of the port forwarding ruleprotocol
- the protocol for the firewall rule. Valid values are TCP/UDP/ICMPoptions
- optional arguments for firewall rule creation
Void deleteFirewallRule(long id)
id
- the ID of the firewall ruleSet<PortForwardingRule> listPortForwardingRules(ListPortForwardingRulesOptions... options)
options
- if present, how to constrain the list.
PortForwardingRule getPortForwardingRule(long id)
id
- port forwarding rule ID
AsyncCreateResponse createPortForwardingRuleForVirtualMachine(long ipAddressId, PortForwardingRule.Protocol protocol, int publicPort, long virtualMachineId, int privatePort)
ipAddressId
- protocol
- the protocol for the rule. Valid values are TCP or UDP.publicPort
- the public port of the port forwarding rulevirtualMachineId
- the ID of the virtual machine for the port forwarding ruleprivatePort
- the private port of the port forwarding rule
Void deletePortForwardingRule(long id)
id
- the id of the forwarding rule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |