Before creating a VM, you need to select a suitable VM offering (template) and plan.
List VM Offerings
-
GET /api/marketplace-offerings/?category_name=VMs
- List available VM offerings.- This endpoint retrieves a list of VM offerings, which are pre-defined configurations for virtual machines. Each offering specifies a combination of CPU, memory, storage, and other characteristics.
- Use the
category_name=VMs
filter to retrieve only VM offerings.
Request Example:
GET [https://api.wayscloud.services/api/marketplace-offerings/?category_name=VMs](https://api.wayscloud.services/api/marketplace-offerings/?category_name=VMs)
Authorization: Token <your_api_token>Response Example:
{
"next": null,
"previous": null,
"count": 2,
"results": [
{
"uuid": "a1a1a1a1-a1a1-a1a1-a1a1-a1a1a1a1a1a1",
"name": "Small VM",
"description": "1 CPU, 2 GB RAM, 20 GB storage",
"category": {
"uuid": "c1c1c1c1-c1c1-c1c1-c1c1-c1c1c1c1c1c1",
"name": "VMs",
"description": "Virtual Machine offerings"
},
//... other fields...
},
{
"uuid": "b2b2b2b2-b2b2-b2b2-b2b2-b2b2b2b2b2b2",
"name": "Large VM",
"description": "4 CPU, 8 GB RAM, 100 GB storage",
"category": {
"uuid": "c1c1c1c1-c1c1-c1c1-c1c1-c1c1c1c1c1c1",
"name": "VMs",
"description": "Virtual Machine offerings"
},
//... other fields...
}
]
}Status Codes:
- 200 OK: The list of VM offerings was successfully retrieved.
- 401 Unauthorized: The user making the request is not authorized.