POST /networks/{id}/actions/change_ip_range
Changes the IP range of a Network.
The following restrictions apply to changing the IP range:
- IP ranges can only be extended and never shrunk.
- IPs can only be added to the end of the existing range, therefore only the netmask is allowed to be changed.
To update the routes on the connected Servers, they need to be rebooted or the routes to be updated manually.
For example if the Network has a range of 10.0.0.0/16
to extend it the new range has to start with the IP 10.0.0.0
as well. The netmask /16
can be changed to a smaller one then 16
therefore increasing the IP range. A valid entry would be 10.0.0.0/15
, 10.0.0.0/14
or 10.0.0.0/13
and so on.
If a change is currently being performed on this Network, a error response with code conflict
will be returned.
Servers
- https://api.hetzner.cloud/v1
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
Integer | Yes |
ID of the Network. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
ip_range |
String | Yes |
IP range of the Network. Uses CIDR notation. Must span all included subnets. Must be one of the private IPv4 ranges of RFC1918. Minimum network size is /24. We highly recommend that you pick a larger Network with a /16 netmask. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.