# Creating a Cloud and Nodes

## Create a Cloud via the API

Use the `POST /v3/flexVM/clouds` endpoint with a JSON body.

**Example request:**

```http
POST /v3/flexVM/clouds
Host: api.i3d.net
PRIVATE-TOKEN: YOUR_API_KEY
Content-Type: application/json

{
  "name": "My private cloud",
  "description": "A cloud I would like to use to create VMs in.",
  "site": "frmtl1",
  "instance_type": "bm9.hmm.gpu.4rtx4000.64"
}
```

{% hint style="info" %}
Response (201 Created) returns the created Cloud object.
{% endhint %}

{% hint style="warning" %}
A 409 Conflict is returned when a Cloud with the same name already exists.
{% endhint %}

## Deleting a Cloud

Use the `DELETE /v3/flexVM/clouds/{cloudUuid}` endpoint.

**Example request:**

```http
DELETE /v3/flexVM/clouds/{cloudUuid}
Host: api.i3d.net
PRIVATE-TOKEN: YOUR_API_KEY
```

{% hint style="info" %}
Response (204 No Content) is returned on success.
{% endhint %}

{% hint style="danger" %}
A Cloud cannot be deleted while it still has active VMs.
{% endhint %}

## Nodes

{% hint style="info" %}
Node scaling is currently done by i3D internal teams.
{% endhint %}

Self-service Node scaling is planned on the FlexVM roadmap.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.i3d.net/compute/flexvm/creating-a-cloud-and-nodes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
