|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NATApi
Provides synchronous access to cloudstack via their REST API.
| Method Summary | |
|---|---|
AsyncCreateResponse |
createIPForwardingRule(String IPAddressId,
String protocol,
int startPort,
CreateIPForwardingRuleOptions... options)
Creates an ip forwarding rule |
String |
deleteIPForwardingRule(String id)
Deletes an ip forwarding rule |
String |
disableStaticNATOnPublicIP(String IPAddressId)
Disables static rule for given ip address |
void |
enableStaticNATForVirtualMachine(String virtualMachineId,
String IPAddressId)
|
IPForwardingRule |
getIPForwardingRule(String id)
get a specific IPForwardingRule by id |
Set<IPForwardingRule> |
getIPForwardingRulesForIPAddress(String id)
get a set of IPForwardingRules by ipaddress id |
Set<IPForwardingRule> |
getIPForwardingRulesForVirtualMachine(String id)
get a set of IPForwardingRules by virtual machine id |
Set<IPForwardingRule> |
listIPForwardingRules(ListIPForwardingRulesOptions... options)
List the ip forwarding rules |
| Method Detail |
|---|
@Named(value="listIpForwardingRules") Set<IPForwardingRule> listIPForwardingRules(ListIPForwardingRulesOptions... options)
options - if present, how to constrain the list.
@Named(value="listIpForwardingRules") IPForwardingRule getIPForwardingRule(String id)
id - IPForwardingRule to get
@Named(value="listIpForwardingRules") Set<IPForwardingRule> getIPForwardingRulesForIPAddress(String id)
id - IPAddress of rule to get
@Named(value="listIpForwardingRules") Set<IPForwardingRule> getIPForwardingRulesForVirtualMachine(String id)
id - virtual machine of rule to get
@Named(value="createIpForwardingRule")
AsyncCreateResponse createIPForwardingRule(String IPAddressId,
String protocol,
int startPort,
CreateIPForwardingRuleOptions... options)
IPAddressId - the public IP address id of the forwarding rule, already
associated via associateIpprotocol - the protocol for the rule. Valid values are TCP or UDP.startPort - the start port for the rule
@Named(value="enableStaticNat")
void enableStaticNATForVirtualMachine(String virtualMachineId,
String IPAddressId)
@Named(value="deleteIpForwardingRule") String deleteIPForwardingRule(String id)
id - the id of the forwarding rule@Named(value="disableStaticNat") String disableStaticNATOnPublicIP(String IPAddressId)
IPAddressId - the public IP address id for which static nat feature is being
disabled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||