Αποθήκευση: όλες οι λειτουργίες του API v1 με το απαιτούμενο scope, τις παραμέτρους, παραδείγματα σε curl, JavaScript και Python και τις απαντήσεις. Η ταυτοποίηση, τα σφάλματα, η σελιδοποίηση, τα όρια και η αυτοδυναμία περιγράφονται στην επισκόπηση της αναφοράς API· δείτε και τα SDK και τη γραμμή εντολών.
Δοκιμάστε το με το κλειδί σας: δημιουργήστε ένα κλειδί API στην κονσόλα, εκτελέστε
export APIDLY_API_KEY=...στο τερματικό και επικολλήστε οποιοδήποτε παράδειγμα curl παρακάτω. Οι τιμές των παραδειγμάτων είναι ενδεικτικές. Σε αυτή τη σελίδα δεν υπάρχει πεδίο για εισαγωγή κλειδιού.
Οι περιγραφές των λειτουργιών και των πεδίων προέρχονται από τον ορισμό του API και είναι στα αγγλικά.
| Λειτουργία | Απαιτούμενο scope | Περίληψη |
|---|---|---|
GET /volumes |
read |
Μόνιμοι τόμοι |
POST /volumes |
full |
Δημιουργία τόμου |
GET /volumes/options |
read |
Η τιμή ενός τόμου για ένα πλάνο GPU |
GET /volumes/offers |
read |
Deprecated alias of GET /volumes/options |
GET /volumes/{id}/availability |
read |
Μπορεί να ξεκινήσει τώρα ένας διακομιστής με αυτόν τον τόμο |
GET /volumes/{id} |
read |
Ένας τόμος |
PATCH /volumes/{id} |
full |
Μετονομασία τόμου |
DELETE /volumes/{id} |
full |
Διαγραφή τόμου (?confirm= το όνομά του) |
GET /transfers |
read |
Μεταφορές δεδομένων, οι νεότερες πρώτα |
POST /transfers |
servers |
Αντιγραφή δεδομένων μεταξύ διακομιστών |
GET /transfers/{id} |
read |
Μία μεταφορά |
DELETE /transfers/{id} |
full |
Ακύρωση μεταφοράς που εκτελείται |
GET /volumes/fit |
read |
Ελεύθεροι τόμοι που μπορεί να προσαρτήσει ένας διακομιστής αυτού του πλάνου |
GET /volumes
Μόνιμοι τόμοι
Mount one by passing volumeId (and optionally volumeMountPath) when you request a server with POST /deployments.
Απαιτούμενο scope: read · Δικαίωμα: servers.view
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
limit |
query | integer | όχι | |
cursor |
query | string | όχι |
Παράδειγμα αιτήματος (curl)
curl "https://apidly.com/api/v1/volumes?limit=20" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.volumes.list({ limit: 20 });Python (SDK)
client.volumes.list()Εργαλείο γραμμής εντολών: apidly volumes, apidly export, apidly plan, apidly apply (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"volumes": [
{
"id": "example",
"name": "example",
"sizeGb": 1,
"status": "example",
"instanceId": "id_example",
"region": "South Korea",
"regionCode": "KR",
"planId": "id_example",
"hourlyPriceMicros": "1000000",
"hourlyPriceUsd": "1.000000",
"scheduledDeletionAt": "2026-11-21T10:00:00.000Z",
"attachable": false,
"legacy": false,
"createdAt": "2026-11-21T10:00:00.000Z"
}
],
"limits": {
"minGb": 1,
"maxGb": 1
},
"nextCursor": "example"
}Καταστάσεις σφάλματος: 401, 403, 429.
POST /volumes
Δημιουργία τόμου
A volume lives on one machine and only a server on that machine can mount it. Send the planId of the GPU plan you will use and the shownHourlyMicros from GET /volumes/options?planId=: the volume is created on a machine that offers that plan right now, and every server that mounts it runs there. Billed per second from creation until it is deleted; the balance must cover its first day (402). Refused when the price rose (409 price_changed), when no machine of the plan has room for the size (409 no_volume_space), and without planId (400 volume_plan_required; region alone is no longer accepted).
Απαιτούμενο scope: full · Δικαίωμα: servers.deploy · Ασφαλής επανάληψη με: Idempotency-Key
Σώμα αιτήματος
| Όνομα | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|
name |
string | ναι | |
sizeGb |
integer | ναι | |
planId |
string | όχι | |
region |
string | όχι | |
shownHourlyMicros |
string | ναι |
Παράδειγμα αιτήματος (curl)
curl -X POST "https://apidly.com/api/v1/volumes" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"name":"example","sizeGb":10,"shownHourlyMicros":"example"}'JavaScript (SDK)
await apidly.volumes.create({
name: "example",
sizeGb: 10,
shownHourlyMicros: "example"
});Python (SDK)
client.volumes.create(name="example", size_gb=10)Εργαλείο γραμμής εντολών: apidly volumes, apidly apply (Αναφορά CLI)
Παράδειγμα απάντησης (201)
{
"volume": {
"id": "example",
"name": "example",
"sizeGb": 1,
"status": "example",
"instanceId": "id_example",
"region": "South Korea",
"regionCode": "KR",
"planId": "id_example",
"hourlyPriceMicros": "1000000",
"hourlyPriceUsd": "1.000000",
"scheduledDeletionAt": "2026-11-21T10:00:00.000Z",
"attachable": false,
"legacy": false,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Καταστάσεις σφάλματος: 400, 401, 402, 403, 409, 429.
GET /volumes/options
Η τιμή ενός τόμου για ένα πλάνο GPU
With planId: option is the price of a volume of sizeGb on a machine that has that plan now (offer is its deprecated name, same object) (409 no_volume_space when none has room). perGbMonthMicros is our price per GB per 30-day month. Without planId: storage prices by region only, kept for older clients (a volume cannot be created from them).
Απαιτούμενο scope: read
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
sizeGb |
query | integer | ναι | |
planId |
query | string | όχι |
Παράδειγμα αιτήματος (curl)
curl "https://apidly.com/api/v1/volumes/options?sizeGb=10" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.volumes.options(10);Python (SDK)
client.volumes.options(size_gb="example")Εργαλείο γραμμής εντολών: apidly volumes, apidly plan, apidly apply (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"sizeGb": 1,
"option": {
"planId": "id_example",
"region": "example",
"hourlyMicros": "1000000",
"hourlyUsd": "1.000000",
"monthlyMicros": "1000000",
"monthlyUsd": "1.000000",
"perGbMonthMicros": "1000000",
"perGbMonthUsd": "1.000000",
"maxSizeGb": 1
},
"offer": {
"planId": "id_example",
"region": "example",
"hourlyMicros": "1000000",
"hourlyUsd": "1.000000",
"monthlyMicros": "1000000",
"monthlyUsd": "1.000000",
"perGbMonthMicros": "1000000",
"perGbMonthUsd": "1.000000",
"maxSizeGb": 1
},
"regions": [
{
"region": "example",
"hourlyMicros": "1000000",
"hourlyUsd": "1.000000",
"monthlyMicros": "1000000",
"monthlyUsd": "1.000000",
"maxSizeGb": 1
}
]
}Καταστάσεις σφάλματος: 400, 401, 403, 404, 409, 429.
GET /volumes/offers
Deprecated alias of GET /volumes/options
Same query and answer as GET /volumes/options; answered until 2027-05-31. Use GET /volumes/options.
Απαιτούμενο scope: read
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
sizeGb |
query | integer | ναι | |
planId |
query | string | όχι |
Παράδειγμα αιτήματος (curl)
curl "https://apidly.com/api/v1/volumes/offers?sizeGb=10" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.volumes.offers(10);Python (SDK)
client.volumes.offers(size_gb="example")Εργαλείο γραμμής εντολών: apidly volumes (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"sizeGb": 1,
"option": {
"planId": "id_example",
"region": "example",
"hourlyMicros": "1000000",
"hourlyUsd": "1.000000",
"monthlyMicros": "1000000",
"monthlyUsd": "1.000000",
"perGbMonthMicros": "1000000",
"perGbMonthUsd": "1.000000",
"maxSizeGb": 1
},
"offer": {
"planId": "id_example",
"region": "example",
"hourlyMicros": "1000000",
"hourlyUsd": "1.000000",
"monthlyMicros": "1000000",
"monthlyUsd": "1.000000",
"perGbMonthMicros": "1000000",
"perGbMonthUsd": "1.000000",
"maxSizeGb": 1
},
"regions": [
{
"region": "example",
"hourlyMicros": "1000000",
"hourlyUsd": "1.000000",
"monthlyMicros": "1000000",
"monthlyUsd": "1.000000",
"maxSizeGb": 1
}
]
}Καταστάσεις σφάλματος: 400, 401, 403, 404, 409, 429.
GET /volumes/{id}/availability
Μπορεί να ξεκινήσει τώρα ένας διακομιστής με αυτόν τον τόμο
A volume is tied to one machine. state: available_now (the plans listed can start there now), busy (its GPU is rented by someone else; try again later), no_fit (an older volume placed by region only, where none of the plans checked can run: delete it to stop its charge), in_use (mounted by a server), legacy (no storage behind it), unknown (the host could not be asked).
Απαιτούμενο scope: read · Δικαίωμα: servers.view
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (curl)
curl "https://apidly.com/api/v1/volumes/volume_example/availability" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.volumes.availability("volume_example");Python (SDK)
client.volumes.availability("volume_example")Εργαλείο γραμμής εντολών: apidly volumes (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"availability": {
"volumeId": "id_example",
"state": "available_now",
"plans": [
{
"id": "example",
"slug": "example",
"name": "example",
"gpuModel": "example",
"gpuCount": 1,
"hourlyPriceMicros": "1000000",
"hourlyPriceUsd": "1.000000"
}
],
"checkedAt": "2026-11-21T10:00:00.000Z"
}
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
GET /volumes/{id}
Ένας τόμος
Απαιτούμενο scope: read · Δικαίωμα: servers.view
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (curl)
curl "https://apidly.com/api/v1/volumes/volume_example" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.volumes.get("volume_example");Python (SDK)
client.volumes.get("volume_example")Εργαλείο γραμμής εντολών: apidly volumes (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"volume": {
"id": "example",
"name": "example",
"sizeGb": 1,
"status": "example",
"instanceId": "id_example",
"region": "South Korea",
"regionCode": "KR",
"planId": "id_example",
"hourlyPriceMicros": "1000000",
"hourlyPriceUsd": "1.000000",
"scheduledDeletionAt": "2026-11-21T10:00:00.000Z",
"attachable": false,
"legacy": false,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
PATCH /volumes/{id}
Μετονομασία τόμου
Changes the volume's name only. Nothing changes on the host and a mounted volume keeps working; deleting it then asks for the new name.
Απαιτούμενο scope: full · Δικαίωμα: storage.manage
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Σώμα αιτήματος
| Όνομα | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|
name |
string | ναι |
Παράδειγμα αιτήματος (curl)
curl -X PATCH "https://apidly.com/api/v1/volumes/volume_example" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"example"}'JavaScript (SDK)
await apidly.volumes.rename("volume_example", "example");Python (SDK)
client.volumes.rename("volume_example", name="example")Εργαλείο γραμμής εντολών: apidly volumes (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"volume": {
"id": "example",
"name": "example",
"sizeGb": 1,
"status": "example",
"instanceId": "id_example",
"region": "South Korea",
"regionCode": "KR",
"planId": "id_example",
"hourlyPriceMicros": "1000000",
"hourlyPriceUsd": "1.000000",
"scheduledDeletionAt": "2026-11-21T10:00:00.000Z",
"attachable": false,
"legacy": false,
"createdAt": "2026-11-21T10:00:00.000Z"
}
}Καταστάσεις σφάλματος: 400, 401, 403, 404, 429.
DELETE /volumes/{id}
Διαγραφή τόμου (?confirm= το όνομά του)
The data is deleted for good.
Απαιτούμενο scope: full · Δικαίωμα: storage.manage
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι | |
confirm |
query | string | ναι |
Παράδειγμα αιτήματος (curl)
curl -X DELETE "https://apidly.com/api/v1/volumes/volume_example?confirm=example" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.volumes.delete("volume_example", "example");Python (SDK)
client.volumes.delete("volume_example", confirm="example")Εργαλείο γραμμής εντολών: apidly volumes (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"key": null
}Καταστάσεις σφάλματος: 400, 401, 403, 404, 409, 429.
GET /transfers
Μεταφορές δεδομένων, οι νεότερες πρώτα
Απαιτούμενο scope: read
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
limit |
query | integer | όχι | |
cursor |
query | string | όχι |
Παράδειγμα αιτήματος (curl)
curl "https://apidly.com/api/v1/transfers?limit=20" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.transfers.list({ limit: 20 });Python (SDK)
client.transfers.list()Εργαλείο γραμμής εντολών: apidly transfers (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"transfers": [
{
"id": "example",
"kind": "copy",
"status": "running",
"srcInstanceId": "id_example",
"dstInstanceId": "id_example",
"srcPath": "example",
"dstPath": "example",
"connectionId": "id_example",
"scheduled": false,
"percent": 1,
"phase": "copying",
"reason": "example",
"message": "example",
"createdAt": "2026-11-21T10:00:00.000Z",
"finishedAt": "2026-11-21T10:00:00.000Z"
}
],
"nextCursor": "example"
}Καταστάσεις σφάλματος: 401, 403, 429.
POST /transfers
Αντιγραφή δεδομένων μεταξύ διακομιστών
Both servers must be running. Other transfer kinds answer 404 feature_unavailable while they are not available on your account.
Απαιτούμενο scope: servers · Ασφαλής επανάληψη με: Idempotency-Key
Παράδειγμα αιτήματος (curl)
curl -X POST "https://apidly.com/api/v1/transfers" \
-H "Authorization: Bearer $APIDLY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"kind":"copy","srcInstanceId":"id_example","dstInstanceId":"id_example","srcPath":"example","dstPath":"example"}'JavaScript (SDK)
await apidly.transfers.start({
kind: "copy",
srcInstanceId: "id_example",
dstInstanceId: "id_example",
srcPath: "example",
dstPath: "example"
});Python (SDK)
client.transfers.start(body={
"kind": "copy",
"srcInstanceId": "id_example",
"dstInstanceId": "id_example",
"srcPath": "example",
"dstPath": "example",
})Εργαλείο γραμμής εντολών: apidly transfers (Αναφορά CLI)
Παράδειγμα απάντησης (201)
{
"transfer": {
"id": "example",
"kind": "copy",
"status": "running",
"srcInstanceId": "id_example",
"dstInstanceId": "id_example",
"srcPath": "example",
"dstPath": "example",
"connectionId": "id_example",
"scheduled": false,
"percent": 1,
"phase": "copying",
"reason": "example",
"message": "example",
"createdAt": "2026-11-21T10:00:00.000Z",
"finishedAt": "2026-11-21T10:00:00.000Z"
}
}Καταστάσεις σφάλματος: 400, 401, 403, 404, 409, 429.
GET /transfers/{id}
Μία μεταφορά
Απαιτούμενο scope: read
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (curl)
curl "https://apidly.com/api/v1/transfers/transfer_example" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.transfers.get("transfer_example");Python (SDK)
client.transfers.get("transfer_example")Εργαλείο γραμμής εντολών: apidly transfers (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"transfer": {
"id": "example",
"kind": "copy",
"status": "running",
"srcInstanceId": "id_example",
"dstInstanceId": "id_example",
"srcPath": "example",
"dstPath": "example",
"connectionId": "id_example",
"scheduled": false,
"percent": 1,
"phase": "copying",
"reason": "example",
"message": "example",
"createdAt": "2026-11-21T10:00:00.000Z",
"finishedAt": "2026-11-21T10:00:00.000Z"
}
}Καταστάσεις σφάλματος: 401, 403, 404, 429.
DELETE /transfers/{id}
Ακύρωση μεταφοράς που εκτελείται
Απαιτούμενο scope: full
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
id |
path | string | ναι |
Παράδειγμα αιτήματος (curl)
curl -X DELETE "https://apidly.com/api/v1/transfers/transfer_example" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.transfers.cancel("transfer_example");Python (SDK)
client.transfers.cancel("transfer_example")Εργαλείο γραμμής εντολών: apidly transfers (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"transfer": {
"id": "example",
"kind": "copy",
"status": "running",
"srcInstanceId": "id_example",
"dstInstanceId": "id_example",
"srcPath": "example",
"dstPath": "example",
"connectionId": "id_example",
"scheduled": false,
"percent": 1,
"phase": "copying",
"reason": "example",
"message": "example",
"createdAt": "2026-11-21T10:00:00.000Z",
"finishedAt": "2026-11-21T10:00:00.000Z"
}
}Καταστάσεις σφάλματος: 401, 403, 404, 409, 429.
GET /volumes/fit
Ελεύθεροι τόμοι που μπορεί να προσαρτήσει ένας διακομιστής αυτού του πλάνου
A volume lives on one machine, so a server that mounts it must run there. fits lists the ids of the organization's free volumes whose machine can host the plan now (a volume whose fit cannot be told right now counts as fitting); checked is how many were looked at (at most 20).
Απαιτούμενο scope: read · Δικαίωμα: servers.view
Παράμετροι
| Όνομα | Σε | Τύπος | Υποχρεωτικό | Περιγραφή |
|---|---|---|---|---|
plan |
query | string | ναι |
Παράδειγμα αιτήματος (curl)
curl "https://apidly.com/api/v1/volumes/fit?plan=example" \
-H "Authorization: Bearer $APIDLY_API_KEY"JavaScript (SDK)
await apidly.volumes.fit("example");Python (SDK)
client.volumes.fit(plan="example")Εργαλείο γραμμής εντολών: apidly volumes (Αναφορά CLI)
Παράδειγμα απάντησης (200)
{
"fits": [
"example"
],
"checked": 1
}Καταστάσεις σφάλματος: 400, 401, 403, 429.
Έτοιμοι να το δοκιμάσετε;
Δημιουργήστε έναν δωρεάν λογαριασμό και προσθέστε πίστωση όταν θέλετε να ξεκινήσετε έναν διακομιστή. Η μικρότερη φόρτιση είναι 10 $.
Ήταν χρήσιμο;