Class CreateNetworkOptions

All Implemented Interfaces:
HttpRequestOptions

public class CreateNetworkOptions extends AccountInDomainOptions
Optional fields for network creation
See Also:
  • Field Details

  • Constructor Details

    • CreateNetworkOptions

      public CreateNetworkOptions()
  • Method Details

    • 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.
    • projectId

      public CreateNetworkOptions projectId(String projectId)
      Parameters:
      projectId - the project this network will be in.
    • accountInDomain

      public CreateNetworkOptions accountInDomain(String account, String 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 name
      domain - domain ID
    • domainId

      public CreateNetworkOptions domainId(String 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