Module hcloud::apis::networks_api

source ·

Structs§

Enums§

Functions§

  • Adds a route entry to a Network. Note: if the Network object changes during the request, the response will be a “conflict” error.
  • Adds a new subnet object to the Network. If you do not specify an ip_range for the subnet we will automatically pick the first available /24 range for you if possible. Note: if the parent Network object changes during the request, the response will be a “conflict” error.
  • Changes the IP range of a Network. IP ranges can only be extended and never shrunk. You can only add IPs at the end of an existing IP range. This means that the IP part of your existing range must stay the same and you can only change its netmask. For example if you have a range 10.0.0.0/16 you want to extend then your new range must also start with the IP 10.0.0.0. Your CIDR netmask /16 may change to a number that is smaller than 16 thereby increasing the IP range. So valid entries would be 10.0.0.0/15, 10.0.0.0/14, 10.0.0.0/13 and so on. After changing the IP range you will have to adjust the routes on your connected Servers by either rebooting them or manually changing the routes to your private Network interface. Note: if the Network object changes during the request, the response will be a “conflict” error.
  • Changes the protection configuration of a Network. Note: if the Network object changes during the request, the response will be a “conflict” error.
  • Creates a network with the specified ip_range. You may specify one or more subnets. You can also add more Subnets later by using the add subnet action. If you do not specify an ip_range in the subnet we will automatically pick the first available /24 range for you. You may specify one or more routes in routes. You can also add more routes later by using the add route action.
  • Deletes a network. If there are Servers attached they will be detached in the background. Note: if the network object changes during the request, the response will be a “conflict” error.
  • Delete a route entry from a Network. Note: if the Network object changes during the request, the response will be a “conflict” error.
  • Deletes a single subnet entry from a Network. You cannot delete subnets which still have Servers attached. If you have Servers attached you first need to detach all Servers that use IPs from this subnet before you can delete the subnet. Note: if the Network object changes during the request, the response will be a “conflict” error.
  • Returns a specific Action for a Network.
  • Gets a specific network object.
  • Returns a specific Action object.
  • Returns all Action objects for a Network. You can sort the results by using the sort URI parameter, and filter them with the status parameter.
  • Returns all Action objects. You can sort the results by using the sort URI parameter, and filter them with the status and id parameter.
  • Gets all existing networks that you have available.
  • Updates the network properties. Note that when updating labels, the network’s current set of labels will be replaced with the labels provided in the request body. So, for example, if you want to add a new label, you have to provide all existing labels plus the new label in the request body. Note: if the network object changes during the request, the response will be a “conflict” error.