Actions22
- Server Actions
- Volume Actions
- Image Actions
- Snapshot Actions
Server → Create
AI-generatedSummary
Create a new IONOS Cloud server with specified size, resources, and optional attachments
Inputs
- datacenterId (required) — The ID of the datacenter
- serverName (required) — The name of the server
- cores (required) — Number of CPU cores
- ram (required) — Amount of RAM in MB (multiples of 256)
- additionalFields — Additional fields such as availability zone, CPU family, etc.
- volumes — Volumes to create and attach to the server
- nics — Network interfaces to create and attach to the server
- cdromImageId — The ID of a CD-ROM/ISO image to attach to the server
Output shape
a single server object (the created server resource with nested volume and NIC details)
All server attributes are returned; optional nested objects may be omitted if not configured.
Examples
Example 1: Create a basic Linux server
datacenterId: 15f67991-0f51-4efc-a8ad-ef1fb31a480c, serverName: my-server, cores: 2, ram: 2048, volumes: [{name: boot-volume, size:20, type:SSD, imageAlias: 'ubuntu:latest'}], nics: [{lan:1, dhcp:true}], cdromImageId: ''