Update Object Storage Limits

  • PATCH /api/marketplace-resources/<resource_uuid>/ - Update the limits of an existing object storage service.

    This endpoint allows you to modify the limits of an object storage service, such as increasing the storage capacity. You'll need the resource_uuid of the object storage, which you can obtain from the "List Object Storage" endpoint (4.2.2).

    Notes:

    • Currently, only the storage limit can be updated, which defines the maximum storage capacity in GB.
    • Increasing the storage limit may incur additional costs.
    • Decreasing the storage limit is not allowed if it would result in exceeding the current usage.

    Request Example:

    PATCH [https://api.wayscloud.services/api/marketplace-resources/storage_resource_uuid/](https://api.wayscloud.services/api/marketplace-resources/storage_resource_uuid/)
    Authorization: Token <your_api_token>
    Content-Type: application/json

    {
    "limits": {
    "storage": 20 // New storage limit in GB
    }
    }

    Request Parameters:

    Parameter Description Required
    limits No
    limits.storage The new storage capacity limit in GB. No

    Response Example:

    {
    "uuid": "storage_resource_uuid",
    "name": "my-storage",
    "limits": {
    "storage": 20 // Updated storage capacity in GB
    },
    //... other fields...
    }

    Status Codes:

    • 200 OK: The object storage limits were successfully updated.
    • 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.
    • 404 Not Found: The specified object storage resource_uuid does not exist.
    • 409 Conflict: The object storage limits cannot be updated due to exceeding the current usage.