action hetzner_post_networks_id_actions_add_subnet { label: "Add a subnet to a Network" description: "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.\n\nNote: if the parent Network object changes during the request, the response will be a “conflict” error.\n" provider: hetzner method: POST path: "/networks/{id}/actions/add_subnet" encoding: json input: { type: "object" properties: { id: { type: "integer" } ip_range: { type: "string" description: "Range to allocate IPs from. Must be a Subnet of the ip_range of the parent network object and must not overlap with any other subnets or with any destinations in routes. If the Subnet is of type vSwitch, it also can not overlap with any gateway in routes. Minimum Network size is /30. We suggest that you pick a bigger Network with a /24 netmask." } network_zone: { type: "string" description: "Name of Network zone. The Location object contains the `network_zone` property each Location belongs to." } type: { type: "string" description: "Type of Subnetwork" enum: ["cloud", "server", "vswitch"] } vswitch_id: { type: "integer" description: "ID of the robot vSwitch. Must be supplied if the subnet is of type vswitch." } } required: ["id", "network_zone", "type"] additionalProperties: false } output: { type: "object" required: ["action"] properties: { action: { type: "object" required: ["command", "error", "finished", "id", "progress", "resources", "started", "status"] properties: { command: { type: "string" description: "Command executed in the Action" } error: { type: "object" description: "Error message for the Action if error occurred, otherwise null" required: ["code", "message"] properties: { code: { type: "string" description: "Fixed machine readable code" } message: { type: "string" description: "Humanized error message" } } } finished: { type: "string" description: "Point in time when the Action was finished (in ISO-8601 format). Only set if the Action is finished otherwise null." } id: { type: "integer" description: "ID of the Resource" } progress: { type: "number" description: "Progress of Action in percent" } resources: { type: "array" description: "Resources the Action relates to" items: { type: "object" required: ["id", "type"] properties: { id: { type: "integer" description: "ID of the Resource" } type: { type: "string" description: "Type of resource referenced" } } } } started: { type: "string" description: "Point in time when the Action was started (in ISO-8601 format)" } status: { type: "string" description: "Status of the Action" enum: ["success", "running", "error"] } } } } } }