org.jclouds.cloudstack.options
Class CreateNetworkOptions
java.lang.Object
org.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.cloudstack.options.AccountInDomainOptions
org.jclouds.cloudstack.options.CreateNetworkOptions
- All Implemented Interfaces:
- HttpRequestOptions
public class CreateNetworkOptions
- extends AccountInDomainOptions
Optional fields for network creation
- Author:
- Adrian Cole
- See Also:
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions |
buildFormParameters, buildMatrixParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstMatrixOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString |
NONE
public static final CreateNetworkOptions NONE
CreateNetworkOptions
public CreateNetworkOptions()
isDefault
public CreateNetworkOptions isDefault(boolean isDefault)
- Parameters:
isDefault
- true if network is default, false otherwise
isShared
public CreateNetworkOptions isShared(boolean isShared)
- Parameters:
isShared
- true if network is shared across accounts in the Zone
startIP
public CreateNetworkOptions startIP(String startIP)
- Parameters:
startIP
- the beginning IP address in the VLAN IP range
endIP
public CreateNetworkOptions endIP(String endIP)
- Parameters:
endIP
- the ending IP address in the network IP range. If not specified, will be defaulted to startIP
gateway
public CreateNetworkOptions gateway(String gateway)
- Parameters:
gateway
- the gateway of the VLAN IP range
netmask
public CreateNetworkOptions netmask(String netmask)
- Parameters:
netmask
- the netmask of the VLAN IP range
networkDomain
public CreateNetworkOptions networkDomain(String networkDomain)
- Parameters:
networkDomain
- network domain
vlan
public CreateNetworkOptions vlan(String vlan)
- Parameters:
vlan
- the ID or VID of the VLAN. Default is an "untagged" VLAN.
accountInDomain
public CreateNetworkOptions accountInDomain(String account,
long domain)
- Specify the account that will own the network. This can be run by a privileged user to be
able to set advanced network properties, such as the VLAN tag, and then to immediately pass
ownership of the network to an unprivileged user.
Note that the unprivileged user will be able to delete the network later, since they are it's owner.
- Overrides:
accountInDomain
in class AccountInDomainOptions
- Parameters:
account
- account namedomain
- domain ID
domainId
public CreateNetworkOptions domainId(long domainId)
- Specify the domain that will own the network. Any user in the domain can then use this
network.
CloudStack requires that when using this option, you also specify isShared(true).
Changes or deletions to this network must be done by a domain admin in the same domain, or a
global admin.
- Overrides:
domainId
in class AccountInDomainOptions
- Parameters:
domainId
- domain ID
Copyright © 2009-2012 jclouds. All Rights Reserved.