oCoreoCore Docs
API Reference

Storage

Cleanup storage

Performs cleanup of specified storage targets (temp files, Docker cache) on a server.

POST
/servers/{id}/storage/cleanup

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Request Body

application/jsonRequired

Cleanup targets: temp, docker_cache

targetsarray<string>

Path Parameters

idRequiredstring

Server ID (UUID)

curl -X POST "//api.ocore.dev/api/servers/<string>/storage/cleanup" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "targets": [
      "string"
    ]
  }'

OK

{}

Get Docker usage

Returns Docker disk usage breakdown for a server.

GET
/servers/{id}/storage/docker

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

idRequiredstring

Server ID (UUID)

curl -X GET "//api.ocore.dev/api/servers/<string>/storage/docker" \
  -H "Authorization: <token>"

OK

{}

List Docker images

Returns a list of Docker images on the server.

GET
/servers/{id}/storage/docker/images

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

idRequiredstring

Server ID (UUID)

curl -X GET "//api.ocore.dev/api/servers/<string>/storage/docker/images" \
  -H "Authorization: <token>"

OK

{
  "images": [
    {}
  ]
}

Remove Docker image

Removes a Docker image by ID from the server.

DELETE
/servers/{id}/storage/docker/images

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Request Body

application/jsonRequired

Docker image ID to remove

imageIdstring

Path Parameters

idRequiredstring

Server ID (UUID)

curl -X DELETE "//api.ocore.dev/api/servers/<string>/storage/docker/images" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "imageId": "string"
  }'

OK

{
  "message": "string"
}

Get instance storage breakdown

Returns per-instance directory size breakdown for a server.

GET
/servers/{id}/storage/instances

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

idRequiredstring

Server ID (UUID)

curl -X GET "//api.ocore.dev/api/servers/<string>/storage/instances" \
  -H "Authorization: <token>"

OK

{
  "instances": [
    {}
  ]
}

Get storage overview

Returns filesystem usage and storage category breakdown for a server.

GET
/servers/{id}/storage/overview

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

idRequiredstring

Server ID (UUID)

curl -X GET "//api.ocore.dev/api/servers/<string>/storage/overview" \
  -H "Authorization: <token>"

OK

{}

List temp files

Returns a list of /tmp/ocore-* temporary files on the server.

GET
/servers/{id}/storage/temp

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Path Parameters

idRequiredstring

Server ID (UUID)

curl -X GET "//api.ocore.dev/api/servers/<string>/storage/temp" \
  -H "Authorization: <token>"

OK

{
  "files": [
    {}
  ]
}

Delete temp file

Deletes a specific /tmp/ocore-* temporary file on the server.

DELETE
/servers/{id}/storage/temp

Authorization

Authorization<token>

JWT Bearer token (format: Bearer {token})

In: header

Request Body

application/jsonRequired

Filename to delete

filenamestring

Path Parameters

idRequiredstring

Server ID (UUID)

curl -X DELETE "//api.ocore.dev/api/servers/<string>/storage/temp" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "filename": "string"
  }'

OK

{
  "message": "string"
}

Was this page helpful?