Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.
VariableRequiredDescription
IONOS_TOKENYesIONOS Cloud bearer token, generated via the Token Manager in the DCD or GET https://api.ionos.com/auth/v1/tokens/generate; same env var used by ionosctl and the IONOS SDKs Docs.

Setup

  1. Get an IONOS Cloud account: Sign up at https://cloud.ionos.com - new accounts typically include trial credit. Log into the Data Center Designer (DCD) at https://dcd.ionos.com.
  2. Generate a bearer token: In the DCD open Management > Token Manager and generate a token, or call GET https://api.ionos.com/auth/v1/tokens/generate with Basic auth (Base64 of username:password). Tokens are required if 2FA is enabled.
  3. Set the environment variable: Copy the token into your .env as IONOS_TOKEN.
  4. Verify access: Run List Data Centers (depth=1), then List Servers for one of the returned data center IDs.
  • All Cloud API v6 paths live under https://api.ionos.com/cloudapi/v6
  • The depth query parameter (0-10) controls how deeply nested resources are expanded; depth=0 returns only IDs
  • Stopping a server is a forceful power-off; shut down the OS first for clean stops
  • Write requests return 202 Accepted and complete asynchronously - check the server’s vmState afterwards
Provider API reference: https://api.ionos.com/docs/cloud/v6/

Tools

ToolAccessDescription
List Data CentersReadList virtual data centers in the account; each data center contains servers, volumes, and networks
List ServersReadList servers inside a virtual data center
Get ServerReadGet a server in a data center, including name, vmState, cores, RAM, and boot device
Start ServerWriteStart (power on) an Enterprise server; CUBE servers cannot be started with this endpoint (they use suspend/resume instead)
Stop ServerWriteStop (power off) an Enterprise server; the server is forcefully powered off and billing for compute stops; public IPv4 addresses that are not reserved are returned to the IPv4 pool (reserved IPs are kept). CUBE servers cannot be stopped with this endpoint (they use suspend/resume instead)
Reboot ServerWriteForce a hard reboot of a server (equivalent to powering it down and back on) - recovers hung servers without a separate stop/start cycle; not a graceful OS reboot
Get Request StatusReadPoll the status of an asynchronous write operation (202 Accepted responses) until it reports DONE or FAILED; the request ID comes from the Location response header of the write call

Example prompts

  • List my IONOS Cloud virtual data centers and the servers inside each, with their power state.
  • Find the IONOS server I name and stop it after confirming with me.