Skip to main content
Resources endpoint

Create Resource

POST/resources/

Example request

application/json
{
  "id": "inventory-only-node",
  "environmentVersionId": "simulation-example-v1",
  "type": "fog_device",
  "name": "Inventory-only node",
  "providerId": "inventory-only-node",
  "cpuCores": 2,
  "cpuCapacity": 2,
  "memoryBytes": 2147483648,
  "computeSpeedup": 1,
  "schedulable": false
}

Handler-checked behavior​

The example adds an inventory-only resource to the SimGrid environment from the first-run tutorial; that environment version must already exist. Use a unique id: reusing one updates the resource and still returns 201 Created. This route does not create a runtime binding, so the example is not a runnable planning resource. Add an enabled binding through a complete environment definition before selecting it in a plan.

See the Resources guide for related tasks and context.