Users
This document describes the Unikraft Cloud Users API (v1) for retrieving information about your user account.
API Endpoints
The Unikraft Cloud Users API provides the following endpoints:
Method | Endpoint | Purpose and Description |
---|---|---|
GET | /v1/users/quotas | Returns information about the quotas and limits of your user |
In the following, the API endpoints are specified relative to this base URL:
With X
being the IATA metro code.
We use fra0
as an example in the documentation.
See the introduciton for more information on how to connect to the API.
List Quota Usage and Limits
Lists quota usage and limits of your user account. Limits are hard limits that cannot be exceeded.
Request
Endpoints:
GET /v1/users/quotas
GET /v1/users/<UUID>/quotas
Parameter | Type | Default | Required | Description |
---|---|---|---|---|
None |
Response
The response is embedded in a JSON object as described in API Responses.
Field | Type | Description |
---|---|---|
status | string | success on success, or error if the request failed |
uuid | UUID | UUID of your user |
used | object | Used quota |
instances | int | Number of instances |
live_instances | int | Number of instances that are not in the stopped state |
live_memory_mb | int | Amount of memory assigned to instances that are not in the stopped state in megabytes |
service_groups | int | Number of services |
services | int | Number of published network ports over all existing services |
volumes | int | Number of volumes |
total_volume_mb | int | Total size of all volumes in megabytes |
hard | object | Same as used but contains the configured quota limits |
limits | object | Additional limits |
min_memory_mb | int | Minimum amount of memory assigned to live instances in megabytes |
max_memory_mb | int | Maximum amount of memory assigned to live instances in megabytes |
min_volume_mb | int | Minimum size of a volume in megabytes |
max_volume_mb | int | Maximum size of a volume in megabytes |
min_autoscale_size | int | Minimum size of an autoscale group1 |
max_autoscale_size | int | Maximum size of an autoscale group1 |
1 These restrict the min_size
and max_size
fields of the autoscale configuration.
If both values are 1
autoscale is not enabled for your account.
If you want to explore autoscale for your services, please contact us via support@unikraft.cloud.