Class CreateNetworkOptions

    • Constructor Detail

      • CreateNetworkOptions

        public CreateNetworkOptions()
    • Method Detail

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