action hetzner_get_datacenters { label: "Get all Datacenters" description: "Returns all Datacenter objects." provider: hetzner method: GET path: "/datacenters" encoding: json input: { type: "object" properties: { name: { type: "string" } } additionalProperties: false } output: { type: "object" required: ["datacenters", "recommendation"] properties: { datacenters: { type: "array" items: { type: "object" required: ["id", "name", "description", "location", "server_types"] properties: { description: { type: "string" description: "Description of the Datacenter" } id: { type: "integer" description: "ID of the Resource" } location: { type: "object" required: ["id", "name", "description", "country", "city", "latitude", "longitude", "network_zone"] properties: { city: { type: "string" description: "City the Location is closest to" } country: { type: "string" description: "ISO 3166-1 alpha-2 code of the country the Location resides in" } description: { type: "string" description: "Description of the Location" } id: { type: "number" description: "ID of the Location" } latitude: { type: "number" description: "Latitude of the city closest to the Location" } longitude: { type: "number" description: "Longitude of the city closest to the Location" } name: { type: "string" description: "Unique identifier of the Location" } network_zone: { type: "string" description: "Name of network zone this Location resides in" } } } name: { type: "string" description: "Unique identifier of the Datacenter" } server_types: { type: "object" description: "The Server types the Datacenter can handle" required: ["supported", "available", "available_for_migration"] properties: { available: { type: "array" description: "IDs of Server types that are supported and for which the Datacenter has enough resources left" items: { type: "number" } } available_for_migration: { type: "array" description: "IDs of Server types that are supported and for which the Datacenter has enough resources left" items: { type: "number" } } supported: { type: "array" description: "IDs of Server types that are supported in the Datacenter" items: { type: "number" } } } } } } } recommendation: { type: "number" description: "The Datacenter which is recommended to be used to create new Servers." } } } }