Create an Instance
You can create an instance in a specific data center with a composite call. A composite call doesn't only configure a single instance but also defines additional devices. This is required because a Cube must include a direct-attached storage device. An instance cannot be provisioned and then mounted with a direct-attached storage volume. Composite calls are used to execute a series of REST APIrequests into a single API call. You can use the output of one request as the input for a subsequent request.
Endpoint
Use the following endpoint for Cubes: https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/servers
Request
curl -X 'POST' \
'https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/servers' \
-H 'accept: application/json'To make authenticated requests to the API, the following fields are mandatory in the request header:
Name
Type
Description
datacenterId
string
The ID of the data center.
serverId
string
The ID of the Cube.
Response
A 202 message confirms that the instance is created.
Last updated
Was this helpful?