Package 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
Optional fields for network creation
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountInDomain
(String account, String domain) Specify the account that will own the network.Specify the domain that will own the network.isDefault
(boolean isDefault) isShared
(boolean isShared) networkDomain
(String networkDomain) Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
Field Details
-
NONE
-
-
Constructor Details
-
CreateNetworkOptions
public CreateNetworkOptions()
-
-
Method Details
-
isDefault
- Parameters:
isDefault
- true if network is default, false otherwise
-
startIP
- Parameters:
startIP
- the beginning IP address in the VLAN IP range
-
endIP
- Parameters:
endIP
- the ending IP address in the network IP range. If not specified, will be defaulted to startIP
-
gateway
- Parameters:
gateway
- the gateway of the VLAN IP range
-
netmask
- Parameters:
netmask
- the netmask of the VLAN IP range
-
networkDomain
- Parameters:
networkDomain
- network domain
-
vlan
- Parameters:
vlan
- the ID or VID of the VLAN. Default is an "untagged" VLAN.
-
projectId
- Parameters:
projectId
- the project this network will be in.
-
accountInDomain
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 classAccountInDomainOptions
- Parameters:
account
- account namedomain
- domain ID
-
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 classAccountInDomainOptions
- Parameters:
domainId
- domain ID
-