Network
The network API calls present the different networks attached to cloud servers and allow the configuration of SDN private networks.
Networks define a secure connections between attached cloud servers using a specialised network interface. A cloud server may belong to any number of virtual networks at the same time. Server interfaces are identified and ordered by their index.
Network types
Public networks
Public networks provide internet connectivity to the cloud servers. Public networks are automatically added as public IP addresses are attached to cloud servers.
Utility network
The Utility network is a simple to use, yet functionally limited network connecting all cloud servers under the same UpCloud account. All cloud servers are connected to the Utility network by default. This way the Utility network forms a secure connection between all servers within one account, no matter where they are located. IP addressing on the Utility network is specified automatically and cannot be changed. The Utility network is limited to one connection per cloud server. SDN private networks are to be used for production workloads and any advanced network setups. The Utility network is added by adding a utility IP address.
Private virtual LAN
SDN private networks provide flexible and customisable network configuration options beyond that of the Utility network and are recommended for production workloads.
These networks provide secure connections between attached cloud servers using dedicated network interfaces. Servers can be attached and detached from SDN private networks at will using the API commands. SDN private networks allow a practically unlimited number of cloud servers to be attached simultaneously and a cloud server may belong to any number of SDN private networks at the same time. IP addressing may be defined automatically or custom IP addressing may be used. SDN private networks are configured per zone allowing cloud server on the same zone to be attached.
Available IP subnets in Private virtual LANs
Generally, you can use any global unicast address for your subnet address, even public ones. However, we recommend staying with well-known private address ranges.
Private address ranges include: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
Allowed subnet prefix lengths (sizes): minimum length 8 bits, maximum length 29 bits.
Excluded ranges:
- 100.64.0.0/10 (CGNAT)
- 127.0.0.0/8 (localhost)
- 224.0.0.0/4 (IP multicast)
- 169.254.0.0/16 (link local)
The above ranges are not available for use in Private virtual LANs.
For more information on:
List networks
Get a list of all networks.
It is also possible to filter networks with label URL parameters, e.g.
?label=env or ?label=env%3Dprod. URL parameter can be given multiple
times to add more filters (e.g. ?label=env%3Dprod&label=v2), where
only networks that match all labels are returned.
Label keys are matched case insensitively.
query Parameters
Filter networks by labels.
A key/value pair to label and categorize resources
List networks › Responses
List of networks.
Container object for network items.
Create SDN network
Creates a new SDN private network that cloud servers from the same zone can be attached to.
Create SDN network › Responses
Created network.
Detailed network resource attributes.
Create interface
Creates a new network interface.
Create interface › Request Body
main_account_idUnique numeric identifier of an account.
Create interface › Responses
Created network interface.
bootableBoolean value represented as yes/no
macnetworksource_ip_filteringBoolean value represented as yes/no
typeNetwork access type
uuid^[0-9a-f]{8}-[0-9a-f… · requiredUniversally unique identifier
server^[0-9a-f]{8}-[0-9a-f…Universally unique identifier
Get interface
Retrieves details of a specific network interface.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredUUID of the network interface.
Universally unique identifier
Get interface › Responses
Details of the requested network interface.
Detailed network resource attributes.
Delete interface
Deletes a specific network interface.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredUUID of the network.
Universally unique identifier
Delete interface › Responses
Network interface successfully deleted.
Get network
Retrieves details of a specific network.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredUUID of the network.
Universally unique identifier
Get network › Responses
Details of the requested network.
Detailed network resource attributes.
Modify network
Modifies the details of a specific SDN private network. The Utility and public networks cannot be modified.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredUUID of the network.
Universally unique identifier
Modify network › Responses
Updated network details.
Detailed network resource attributes.
Delete network
Deletes an SDN private network. All attached cloud servers must first be detached before SDN private networks can be deleted. Utility and public networks can only be detached from servers by Releasing the corresponding IP addresses.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredUUID of the network.
Universally unique identifier
Delete network › Responses
Network successfully deleted.