നിങ്ങള്ക്കു് റീഡ് ചെയ്യുവാന് സാധിക്കുന്ന സര്വര് പദ്ധതികള് പട്ടികപ്പെടുത്തുക, അവയുടെ വിഭവങ്ങളും വിലകളും കൊണ്ട്. ഒരു സര്വര് നിര്മ്മിയ്ക്കുമ്പോഴേക്കും നിങ്ങള്ക്ക് പദ്ധതി_uid എന്ന പേരായി ഒരു യുഐഡി നല്കുക.
സജീവമായ എല്ലാ പദ്ധതികളും തിരികെ നല്കുന്നു, ഏറ്റവും കുറഞ്ഞത് ആദ്യം തന്നെ. പട്ടികയില് ഫില്റ്ററുകള് ഇല്ല, ഇപ്പോഴുള്ള താളില് പൊരുത്തമുള്ളവ.
അനുവാദം ആവശ്യമുണ്ട്: 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 | പ്ലാന് ഐഡന്റിഫയര്. പ്ലാന്_യുഐഡി അല്ലെങ്കില് പുതിയ_പ്ലാന്_യുഐഡി ആയി ഉപയോഗിക്കുക. |
cpu |
integer | vCPUs എണ്ണം |
ram, ram_unit |
integer, string | മെമ്മറിയുടെ അളവും യൂണിറ്റും (എം. ബി അല്ലെങ്കില് GB) |
disk_space |
integer | ഡിസ്കിന്റെ വലിപ്പം GB- ല് |
disk_space_total |
integer | ഡിസ്കിന്റെ വലിപ്പം എം. ബിയില് |
transfer, transfer_unit |
integer, string | മാസ്റന്ഡ് ട്രാന്സ്ഫര്സും അതിന്റെ യൂണിറ്റും (ജിബി അല്ലെങ്കില് TB) |
disk_space_unit |
string | ഡിസ്കിന്റെ _സ്ഥാനം (ജിബി) |
includes_ipv4 |
boolean | ഈ പദ്ധതിയില് പൊതു ഐപിവ്4 വിലാസം ഉണ്ടോ എന്ന്. ഒന്നില്ലാതെ പ്ലാന്സ് ഐപിവ്6 മാത്രം; ഒരു ഐപിവി4 വിലാസം $2.00/ മാസങ്ങള്ക്കു ചേര്ക്കാവുന്നതാണ്. |
monthly_price, price |
string | USD- ലെ മാസ്റന്റ് വില ഒരു ദശാംശ സ്ട്രിങ്. വില ഒരേ വിലയാണ്. |
hourly_price |
string | ഒരു ഡെസിമല് സ്ട്രിങ് ആയി USD- ലെ വില |
cpu_type_name |
string | സിപിയു തരം, ഉദാഹരണത്തിനു്. GPU പദ്ധതികള് ഇല്ലാതെയുള്ള പദ്ധതികള്ക്കു് ഓപ്പണ്. |
is_active |
boolean | ഈ പട്ടികയില് എപ്പോഴും ശരിയായിരിക്കും, കാരണം നിര്ജ്ജീവമായ പദ്ധതികള് തിരിച്ചു് വരില്ല |
is_gpu, gpu_count, gpu_model |
boolean, integer, string | ഈ പദ്ധതിയിൽ, സമർപ്പിത GPUS, എത്ര പേരുടെ മാതൃക എന്നിവ ഉൾപ്പെടുന്നുവെന്നോ? |
| 200 | വിജയകരമായി ലഭ്യമായ പദ്ധതിയുടെ പട്ടിക |
| 403 | API അടയാളം ലഭ്യമല്ല അല്ലെങ്കില് ആവശ്യമുളള സൂചനയ്ക്ക് ലഭ്യമല്ല |
മുകളില് സജീവമായ ഒരു പദ്ധതി തിരിച്ചു് കളയുന്നു. പ്രവര്ത്തനരഹിതമോ അറിയപ്പെടാത്ത uid എന്നോ ആയ uid നല്കുന്നു 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": ""
}