የሰርቨር ፕሮግራሞችን ሊያስተላልፉ የሚችሉትን ዝርዝር፣ ከማናቸውም የገንዘብ ምንጮችና ዋጋዎች ጋር። የፕሮግራም uuid እንደ plan_uuid ሰርቨር ሲፈጥሩ ወይም ሲቀይሩ ይለጥፉ።
ሁሉንም አክቲቭ ፕሮግራሞች፣ መጀመሪያ ላይ ርካሽ፣ ይመልሳል. ዝርዝሩ ምንም ፊልተሮች የለውም፣ አሁንም በአንድ ገጽ ላይ ይጣላል
የፈቃድ መጠን: plans:list
curl -X GET "https://admin.vps.org/api/v1/plans/" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
url = "https://admin.vps.org/api/v1/plans/"
headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
response = requests.get(url, headers=headers)
for plan in response.json()["results"]:
print(plan["uuid"], plan["cpu"], plan["ram"], plan["ram_unit"], plan["monthly_price"])
const response = await fetch('https://admin.vps.org/api/v1/plans/', {
headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' }
});
const data = await response.json();
console.log(data.results);
$ch = curl_init('https://admin.vps.org/api/v1/plans/');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_API_TOKEN']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$plans = json_decode(curl_exec($ch), true);
curl_close($ch);
{
"count": 12,
"next": null,
"previous": null,
"results": [
{
"uuid": "ed0ac717-c26c-4d9b-a801-b170c4979028",
"cpu": 1,
"ram": 512,
"ram_unit": "MB",
"disk_space": 10,
"disk_space_total": 10240,
"transfer": 500,
"transfer_unit": "GB",
"includes_ipv4": false,
"price": "2.50",
"cpu_type_name": "Shared",
"is_active": true,
"hourly_price": "0.004",
"monthly_price": "2.50",
"is_gpu": false,
"gpu_count": 0,
"gpu_model": ""
},
{
"uuid": "14186969-fbaf-43e1-9ab2-b1f1aeb66674",
"cpu": 1,
"ram": 2,
"ram_unit": "GB",
"disk_space": 25,
"disk_space_total": 25600,
"transfer": 1,
"transfer_unit": "TB",
"includes_ipv4": true,
"price": "5.00",
"cpu_type_name": "Shared",
"is_active": true,
"hourly_price": "0.007",
"monthly_price": "5.00",
"is_gpu": false,
"gpu_count": 0,
"gpu_model": ""
}
]
}
| ፋይል | አይነት | መግለጫ የለም |
|---|---|---|
uuid |
string | የፕላን ማሳያ. እንደ plan_uuid ወይም አዲስ_plan_uuid ይጠቀሙት |
cpu |
integer | የvCPUs ቁጥር |
ram, ram_unit |
integer, string | የማስታወሻ መጠን እና ዩኒት (MB ወይም GB) |
disk_space |
integer | የዲስክ መጠን በጂቢ |
disk_space_total |
integer | የዲስክ መጠን በሜባ |
transfer, transfer_unit |
integer, string | የወር የዳታ ማስተላለፊያ ክፍያ እና ክፍሉ (GB ወይም TB) |
disk_space_unit |
string | የዲስክ ቦታ |
includes_ipv4 |
boolean | የፕላን አድራሻው የሕዝብ IPv4 አድራሻን ማካተት አለበት ወይስ የለም? ያለ አድራሻ የሆኑ ፕሮግራሞች IPv6 ብቻ ናቸው፤ IPv4 አድራሻ ለ $2.00/ወር ሊጨመር ይችላል። |
monthly_price, price |
string | ወርሃዊ ዋጋ በዩኤስዲ እንደ ዐስር ቁጥር መስመር. ዋጋው እኩል ዋጋ ነው. |
hourly_price |
string | ሰዓት ዋጋ በዩ.ኤስ. ዶላር እንደ ዐስር ቁጥር መስመር |
cpu_type_name |
string | የሲ.ፒ.ዩ ዓይነት፣ ለምሳሌ የተጋራ። ለሲ.ፒ.ዩ ዓይነት የሌላቸው ዕቅዶች፣ ለምሳሌ የጂ.ፒ.ዩ ዕቅድ፣ ተብሏል |
is_active |
boolean | ሁልጊዜ እውነት በዝርዝሩ ውስጥ, ምክንያቱም ያልተንቀሳቀሰ ዕቅድ አይመለስም |
is_gpu, gpu_count, gpu_model |
boolean, integer, string | Whether the plan includes dedicated GPUs, how many, and which model |
| 200 | የቀን መቁጠሪያ ዝርዝር |
| 403 | የጠፋ ወይም ያልሆነ API Token ወይም Token የተጠየቀውን ፈቃድ የሌለው ነው |
አንድ አክቲቭ ፕሮግራም በላይ ያሉት መስኮቶች ጋር ይመልሳል. ያልተጫነ ወይም ያልታወቀ uuid 404 ይመልሳል.
curl -X GET "https://admin.vps.org/api/v1/plans/ed0ac717-c26c-4d9b-a801-b170c4979028/" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"uuid": "ed0ac717-c26c-4d9b-a801-b170c4979028",
"cpu": 1,
"ram": 512,
"ram_unit": "MB",
"disk_space": 10,
"disk_space_total": 10240,
"transfer": 500,
"transfer_unit": "GB",
"includes_ipv4": false,
"price": "2.50",
"cpu_type_name": "Shared",
"is_active": true,
"hourly_price": "0.004",
"monthly_price": "2.50",
"is_gpu": false,
"gpu_count": 0,
"gpu_model": ""
}