Create Object Storage (via Order)
-
POST /api/marketplace-orders/
- Create a new object storage service by placing an order.This endpoint allows you to create an object storage service by placing an order for a storage offering and plan. You can specify the desired storage name and set initial limits for the storage capacity. This is an asynchronous operation, and the response will include an
order_uuid
to track the order status.Notes:
- The
limits
field allows you to define quotas for the object storage service. Currently, only thestorage
limit is supported, which defines the maximum storage capacity in GB. - Once the order is fulfilled, the object storage service will be created, and you can access it using the provided credentials and endpoints.
Request Example:
POST [https://api.wayscloud.services/api/marketplace-orders/](https://api.wayscloud.services/api/marketplace-orders/)
Authorization: Token <your_api_token>
Content-Type: application/json
{
"project": "<project_uuid>",
"offering": "<offering_uuid>",
"plan": "<plan_uuid>",
"attributes": {
"name": "my-storage"
},
"limits": {
"storage": 10 // Initial storage limit in GB
}
}Request Parameters:
Parameter Description Required project
The UUID of the project where the object storage will be created. Yes offering
The UUID of the object storage offering. Yes plan
The UUID of the plan for the offering. Yes attributes
Yes attributes.name
The name of the object storage service. Yes limits
No limits.storage
The initial storage capacity limit in GB. No Response Example:
{
"uuid": "order_uuid_value",
"project": "project_uuid_value",
"offering": "offering_uuid_value",
"plan": "plan_uuid_value",
"created": "2025-03-18T10:00:00Z",
"state": "Creating",
//... other fields...
}Status Codes:
- 201 Created: The order was successfully created.
- 400 Bad Request: The request body contained invalid data or a required parameter was missing.
- 401 Unauthorized: The user making the request is not authorized.
- The