Hetzner hcloud icon

Hetzner hcloud

Interact with the cloud api of the german infrastructure provider Hetzner.

Actions47

Network → Update

AI-generated

Summary

Update an existing Hetzner Cloud network by specifying its ID and optionally modifying its labels and the exposure of routes to the network's vSwitch.

Inputs

  • Id (required) — The numeric ID of the network to update.
  • Labels — An optional collection of key-value pairs to add or update as labels for the network.
  • Expose Routes to Vswitch — An optional boolean flag to toggle whether routes are exposed to the network's vSwitch.

Output shape

a single network object containing updated network details

The operation returns the updated network resource as a single record. No pagination applies.

Examples

Example 1: Update network with ID 1234 to have a label 'environment' set to 'production' and expose routes to vSwitch.

Set Id to 1234, add Labels with key 'environment' and value 'production', and set Expose Routes to Vswitch to true.

Links

Discussion