org.jclouds.cloudstack.features
Interface NATClient


public interface NATClient

Provides synchronous access to CloudStack IPForwardingRule features.

Author:
Adrian Cole
See Also:
NATAsyncClient,

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

listIPForwardingRules

Set<IPForwardingRule> listIPForwardingRules(ListIPForwardingRulesOptions... options)
List the ip forwarding rules

Parameters:
options - if present, how to constrain the list.
Returns:
IPForwardingRules matching query, or empty set, if no IPForwardingRules are found

getIPForwardingRule

IPForwardingRule getIPForwardingRule(String id)
get a specific IPForwardingRule by id

Parameters:
id - IPForwardingRule to get
Returns:
IPForwardingRule or null if not found

getIPForwardingRulesForIPAddress

Set<IPForwardingRule> getIPForwardingRulesForIPAddress(String id)
get a set of IPForwardingRules by ipaddress id

Parameters:
id - IPAddress of rule to get
Returns:
IPForwardingRule matching query or empty if not found

getIPForwardingRulesForVirtualMachine

Set<IPForwardingRule> getIPForwardingRulesForVirtualMachine(String id)
get a set of IPForwardingRules by virtual machine id

Parameters:
id - virtual machine of rule to get
Returns:
IPForwardingRule matching query or empty set if not found

createIPForwardingRule

AsyncCreateResponse createIPForwardingRule(String IPAddressId,
                                           String protocol,
                                           int startPort,
                                           CreateIPForwardingRuleOptions... options)
Creates an ip forwarding rule

Parameters:
IPAddressId - the public IP address id of the forwarding rule, already associated via associateIp
protocol - the protocol for the rule. Valid values are TCP or UDP.
startPort - the start port for the rule
Returns:
response used to track creation

deleteIPForwardingRule

String deleteIPForwardingRule(String id)
Deletes an ip forwarding rule

Parameters:
id - the id of the forwarding rule

enableStaticNATForVirtualMachine

void enableStaticNATForVirtualMachine(String virtualMachineId,
                                      String IPAddressId)

disableStaticNATOnPublicIP

String disableStaticNATOnPublicIP(String IPAddressId)
Disables static rule for given ip address

Parameters:
IPAddressId - the public IP address id for which static nat feature is being disabled


Copyright © 2009-2012 jclouds. All Rights Reserved.