Modifier and Type | Method and Description |
---|---|
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
|
Set<FirewallRule> listFirewallRules(ListFirewallRulesOptions... options)
options
- if present, how to constrain the list.FirewallRule getFirewallRule(long id)
id
- the ID of the firewall ruleAsyncCreateResponse 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 creationVoid 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 IDAsyncCreateResponse 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 ruleVoid deletePortForwardingRule(long id)
id
- the id of the forwarding ruleCopyright © 2009-2012 jclouds. All Rights Reserved.