action hetzner_post_load_balancers_id_actions_attach_to_network { label: "Attach a Load Balancer to a Network" description: "Attach a Load Balancer to a Network.\n\n**Call specific error codes**\n\n| Code | Description |\n|----------------------------------|-----------------------------------------------------------------------|\n| `load_balancer_already_attached` | The Load Balancer is already attached to a network |\n| `ip_not_available` | The provided Network IP is not available |\n| `no_subnet_available` | No Subnet or IP is available for the Load Balancer within the network |\n" provider: hetzner method: POST path: "/load_balancers/{id}/actions/attach_to_network" encoding: json input: { type: "object" properties: { id: { type: "integer" } ip: { type: "string" description: "IP to request to be assigned to this Load Balancer; if you do not provide this then you will be auto assigned an IP address" } network: { type: "number" description: "ID of an existing network to attach the Load Balancer to" } } required: ["id", "network"] 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"] } } } } } }