Usage
Metering and the plan of the organization
Resource, request and plan limits are listed on Limits.
Download OpenAPI specification · Version 0.1.0
Usage of a project
Returns the node usage totals of one project, for all its SVMs together and for each SVM, between two times. The default range is the start of this UTC month to now; each running interval is billed in whole seconds rounded up.
Authorization
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Query Parameters
project?stringThe project id or name, default when omitted; an unknown project answers 404 project_not_found.
from?stringThe first time of the sum in Unix epoch milliseconds, rounded down to the start of its hour; the default is the start of this UTC month.
to?stringThe last time of the sum in Unix epoch milliseconds, rounded up to the end of its hour; the default is now, and it must not be before from.
Response Body
The usage of the organization and of each SVM between two times.
application/json- response
The usage of the organization and of each SVM between two times.
from_ms*integerThe first time of the sum in Unix epoch milliseconds: the start of the hour of from.
plan*The plan of the organization and its limits.
project*stringThe id of the project whose SVMs the node usage covers.
svms*array<>The usage of each SVM of the organization that has a node usage record in the range, by id.
to_ms*integerThe last time of the sum in Unix epoch milliseconds: the end of the hour of to.
totals*The totals of the seven node usage metrics and of retained object storage.
curl -X GET 'https://api.slashinfra.com/usage'{ "from_ms": 1767225600000, "plan": { "databases_allowed": false, "dedicated_allowed": false, "id": "standard", "inbox_allowed": true, "max_memory_mib": 8192, "max_open_ports": 50, "max_snapshots": 50, "max_svms": 5, "max_url_ttl_s": 2592000, "public_ports_allowed": true, "schedule_min_interval_s": 300, "schedules_max": 10, "stream_max_s": 3600 }, "project": "proj_6f1c0f0e8a", "svms": [ { "id": "6f1c0f0e8a", "totals": { "dedicated_cpu_milli_s": 3600000, "dedicated_memory_mib_s": 7372800, "disk_mib_ms": 9216000000, "ingress_bytes": 1048576, "running_ms": 1800000, "shared_cpu_milli_s": 450000, "shared_memory_mib_s": 1843200 } } ], "to_ms": 1769904000000, "totals": { "dedicated_cpu_milli_s": 3600000, "dedicated_memory_mib_s": 7372800, "disk_mib_ms": 9216000000, "ingress_bytes": 1048576, "running_ms": 1800000, "shared_cpu_milli_s": 450000, "shared_memory_mib_s": 1843200, "storage_byte_s": 3686400000000 }}curl -X GET 'https://api.slashinfra.com/usage'{
"from_ms": 1767225600000,
"plan": {
"databases_allowed": false,
"dedicated_allowed": false,
"id": "standard",
"inbox_allowed": true,
"max_memory_mib": 8192,
"max_open_ports": 50,
"max_snapshots": 50,
"max_svms": 5,
"max_url_ttl_s": 2592000,
"public_ports_allowed": true,
"schedule_min_interval_s": 300,
"schedules_max": 10,
"stream_max_s": 3600
},
"project": "proj_6f1c0f0e8a",
"svms": [
{
"id": "6f1c0f0e8a",
"totals": {
"dedicated_cpu_milli_s": 3600000,
"dedicated_memory_mib_s": 7372800,
"disk_mib_ms": 9216000000,
"ingress_bytes": 1048576,
"running_ms": 1800000,
"shared_cpu_milli_s": 450000,
"shared_memory_mib_s": 1843200
}
}
],
"to_ms": 1769904000000,
"totals": {
"dedicated_cpu_milli_s": 3600000,
"dedicated_memory_mib_s": 7372800,
"disk_mib_ms": 9216000000,
"ingress_bytes": 1048576,
"running_ms": 1800000,
"shared_cpu_milli_s": 450000,
"shared_memory_mib_s": 1843200,
"storage_byte_s": 3686400000000
}
}