action hetzner_post_placement_groups { label: "Create a PlacementGroup" description: "Creates a new PlacementGroup.\n" provider: hetzner method: POST path: "/placement_groups" encoding: json input: { type: "object" required: ["name", "type"] properties: { labels: { type: "object" description: "User-defined labels (key-value pairs)" } name: { type: "string" description: "Name of the PlacementGroup" } type: { type: "string" description: "Define the Placement Group Type." enum: ["spread"] } } } output: { type: "object" required: ["placement_group"] 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"] } } } placement_group: { type: "object" required: ["created", "id", "labels", "name", "servers", "type"] properties: { created: { type: "string" description: "Point in time when the Resource was created (in ISO-8601 format)" } id: { type: "integer" description: "ID of the Resource" } labels: { type: "object" description: "User-defined labels (key-value pairs)" } name: { type: "string" description: "Name of the Resource. Must be unique per Project." } servers: { type: "array" description: "Array of IDs of Servers that are part of this Placement Group" items: { type: "integer" } } type: { type: "string" description: "Type of the Placement Group" enum: ["spread"] } } } } } }