IONOS Cloud Compute icon

IONOS Cloud Compute

Manage IONOS Cloud servers, volumes, images, and snapshots. Developped with Love by Ascenzia (ascenzia.fr)

Server → Get Many

AI-generated

Summary

Retrieve a list of servers in a specified datacenter, optionally limited and paginated.

Inputs

  • datacenterId (required) — The ID of the datacenter containing the servers.
  • returnAll — Whether to return all results or stop after the specified limit.
  • limit — Maximum number of server records to return (1‑10000). Ignored if returnAll is true.
  • depth — Depth of nested relationships to include in the response (0‑10).

Output shape

a list of server objects

Pagination: limit truncates if returnAll is false; depth controls detail level of each server object.

Examples

Example 1: Fetch all servers in a datacenter

resource: Server, operation: Get Many, datacenterId: 15f67991-0f51-4efc-a8ad-ef1fb31a480c

Example 2: Retrieve a limited set with deeper detail

resource: Server, operation: Get Many, datacenterId: 15f67991-0f51-4efc-a8ad-ef1fb31a480c, limit: 50, depth: 2

Links

Discussion