hcloud_server_attach_to_network_action
Attaches a server to a private network to add an internal ethernet interface with an auto-assigned or requested IP, optionally including additional alias IPs.
Instructions
Attach a Server to a Network
Attaches a Server to a network. This will complement the fixed public Server interface by adding an additional ethernet interface to the Server which is connected to the specified network.
The Server will get an IP auto assigned from a subnet of type server in the same network_zone.
Using the alias_ips attribute you can also define one or more additional IPs to the Servers. Please note that you will have to configure these IPs by hand on your Server since only the primary IP will be given out by DHCP.
Operation specific errors
Status | Code | Description |
|
| The server is already attached to the network |
|
| The provided Network IP is not available |
|
| No Subnet or IP is available for the Server within the network |
|
| The network IP range overlaps with one of the server networks |
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the Server. | |
| body | Yes | ||
| wait | No | Poll the resulting action until success/error or timeout. |