ISO

The ISO endpoints allow you to manage ISO files, including adding, removing, and listing ISOs.


GET/isos

List ISOs

This endpoint allows you to list all available ISOs.

Request

GET
/iso/list
curl -G https://api.puregpu.com/iso/list \
  -H "X-API-Key: {token}"

Response

{
  "result": "success",
  "data": {
      "isos": [
          "ubuntu-20.04.6-live-server-amd64.iso",
      ],
      "defaultIsos": [
          {
              "id": "1",
              "name": "Debian LTS",
              "version": "12",
              "symbol": "debian",
              "file_id": "x",
              "createdAt": "2024-03-22T13:19:47.000Z",
              "updatedAt": "2024-03-22T13:19:47.000Z"
          },
      ]
  }
}

POST/isos

Add ISO

This endpoint allows you to add a new ISO.

Required attributes

  • Name
    url
    Type
    string
    Description

    The URL of the ISO to add.

Request

POST
/isos
curl -X POST https://api.puregpu.com/isos \
  -H "X-API-Key: {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://releases.ubuntu.com/focal/ubuntu-20.04.6-live-server-amd64.iso"
  }'

Response

{
  "result": "success",
  "message": "ISO uploaded"
}

DELETE/isos

Remove ISO

This endpoint allows you to remove an ISO.

Required attributes

  • Name
    filename
    Type
    string
    Description

    The filename of the ISO to remove, fetched from the List ISOs endpoint.

Request

DELETE
/isos
curl -X DELETE https://api.puregpu.com/isos \
  -H "X-API-Key: {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "filename": "ubuntu-20.04.6-live-server-amd64.iso"
  }'

Response

{
  "result": "success",
  "message": "ISO removed"
}