org.jclouds.cloudstack.features
Interface NetworkApi


public interface NetworkApi

Provides synchronous access to cloudstack via their REST API.

See Also:

Method Summary
 Network createNetworkInZone(String zoneId, String networkOfferingId, String name, String displayText, CreateNetworkOptions... options)
          Creates a network
 String deleteNetwork(String id)
          Deletes a network
 Network getNetwork(String id)
          get a specific network by id
 Set<Network> listNetworks(ListNetworksOptions... options)
          Lists networks
 

Method Detail

listNetworks

@Named(value="listNetworks")
Set<Network> listNetworks(ListNetworksOptions... options)
Lists networks

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

getNetwork

@Named(value="listNetworks")
Network getNetwork(String id)
get a specific network by id

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

createNetworkInZone

@Named(value="createNetwork")
Network createNetworkInZone(String zoneId,
                                  String networkOfferingId,
                                  String name,
                                  String displayText,
                                  CreateNetworkOptions... options)
Creates a network

Parameters:
zoneId - the Zone ID for the Vlan ip range
networkOfferingId - the network offering id
name - the name of the network
displayText - the display text of the network
options - optional parameters
Returns:
newly created network

deleteNetwork

@Named(value="deleteNetwork")
String deleteNetwork(String id)
Deletes a network

Parameters:
id - the ID of the network
Returns:
job id related to destroying the network, or null if resource was not found


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.