Create Kubernetes Cluster

  • POST /api/marketplace-orders/ - Create a new Kubernetes cluster by placing an order.

    This endpoint allows you to create a new Kubernetes cluster by placing an order for a Kubernetes offering. You can specify the desired cluster name and configure Kubernetes-specific attributes. This is an asynchronous operation, and the response will include an order_uuid to track the order status.

    Notes:

    • The attributes field allows you to customize the Kubernetes cluster configuration. The available attributes may vary depending on the Kubernetes offering. Refer to the offering details or contact WAYSCloud support for information on the supported attributes.
    • Once the order is fulfilled, the Kubernetes cluster 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-k8s-cluster",
    //... other Kubernetes-specific attributes...
    }
    }

    Request Parameters:

    Parameter Description Required
    project The UUID of the project where the Kubernetes cluster will be created. Yes
    offering The UUID of the Kubernetes offering. Yes
    plan The UUID of the plan for the offering. Yes
    attributes Kubernetes cluster configuration attributes. Yes
    attributes.name The name of the Kubernetes cluster. Yes
    attributes.* Other Kubernetes-specific attributes (refer to offering details). Varies

    Response Example:

    {
    "uuid": "order_uuid_value",
    "project": "project_uuid_value",
    "offering": "offering_uuid_value",
    "plan": "plan_uuid_value",
    "created": "2025-03-25T09: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.