VPS.org API

REST API ကိုစာရွက်စာတမ်းများ

အစီအစဉ်များ API

ရရှိနိုင်သော VPS အစီအစဉ်များ၊ ဈေးနှုန်းနှင့် အရင်းအမြစ်သတ်မှတ်ချက်များအကြောင်း အချက်အလက်များကို ရယူပါ။

အဆုံးမှတ်များ 2 endpoints
အခြေခံလမ်းကြောင်း /api/v1/plans
ရယူပါ /api/v1/plans/

အစီအစဉ်အားလုံးကို စာရင်းပြုစုပါ

အားလုံးရရှိနိုင် VPS စီမံကိန်းများ၏စာရင်းကိုပြန်လည်ရယူခြင်းစျေးနှုန်းသတ်မှတ်ချက်နှင့်အရင်းအမြစ်များ။

မေးမြန်းချက် ကန့်သတ်ချက်များ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
location string ဟုတ်ကဲ့ Filter plans by datacenter location

နမူနာတောင်းဆိုချက်

cURL
Python
JavaScript
PHP
curl -X GET "https://admin.vps.org/api/v1/plans/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
import requests

url = "https://admin.vps.org/api/v1/plans/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch('https://admin.vps.org/api/v1/plans/', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  }
});

const plans = await response.json();
console.log(plans);
$ch = curl_init('https://admin.vps.org/api/v1/plans/');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer YOUR_API_TOKEN',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
$plans = json_decode($response, true);
curl_close($ch);

ဥပမာတုံ့ပြန်မှု

{
  "count": 4,
  "results": [
    {
      "id": 1,
      "name": "Starter VPS",
      "slug": "starter",
      "vcpus": 1,
      "memory": 2048,
      "storage": 40,
      "bandwidth": 1024,
      "price_monthly": 5.00,
      "price_hourly": 0.007,
      "available": true,
      "locations": ["us-west", "us-east", "eu-central"],
      "description": "Perfect for small projects and testing"
    },
    {
      "id": 2,
      "name": "Standard VPS",
      "slug": "standard",
      "vcpus": 2,
      "memory": 4096,
      "storage": 80,
      "bandwidth": 2048,
      "price_monthly": 10.00,
      "price_hourly": 0.015,
      "available": true,
      "locations": ["us-west", "us-east", "eu-central", "asia-pacific"],
      "description": "Ideal for web applications and small databases"
    },
    {
      "id": 3,
      "name": "Performance VPS",
      "slug": "performance",
      "vcpus": 4,
      "memory": 8192,
      "storage": 160,
      "bandwidth": 4096,
      "price_monthly": 20.00,
      "price_hourly": 0.030,
      "available": true,
      "locations": ["us-west", "us-east", "eu-central", "asia-pacific"],
      "description": "High-performance for demanding applications"
    },
    {
      "id": 4,
      "name": "Enterprise VPS",
      "slug": "enterprise",
      "vcpus": 8,
      "memory": 16384,
      "storage": 320,
      "bandwidth": 8192,
      "price_monthly": 40.00,
      "price_hourly": 0.060,
      "available": true,
      "locations": ["us-west", "us-east", "eu-central", "asia-pacific"],
      "description": "Enterprise-grade resources for mission-critical workloads"
    }
  ]
}

တုံ့ပြန်မှု ကွက်လပ်များ

နယ်မြေ အမျိုးအစား ဖော်ပြချက်
id integer ထူးခြားသော အစီအစဉ် အမှတ်အသား
name string လူဖတ်နိုင်သော အစီအစဉ်အမည်
slug string URL နှင့် လိုက်ဖက်သော အစီအစဉ် သတ်မှတ်သူ
vcpus integer Number of virtual CPU cores
memory integer RAM in megabytes (MB)
storage integer Disk space in gigabytes (GB)
bandwidth integer Monthly data transfer in gigabytes (GB)
price_monthly decimal Monthly subscription price in USD
price_hourly decimal Hourly billing rate in USD
available boolean Whether plan is currently available for purchase
locations array List of datacenter locations where plan is available
description string Brief description of plan use case

တုံ့ပြန်မှု အခြေအနေ ကုဒ်များ

200 အစီအစဉ်စာရင်းကို အောင်မြင်စွာ ရယူပြီးပါပြီ
401 ခွင့်ပြုချက်မရှိပါ - အထောက်အထားစိစစ်ခြင်း တိုကင် မမှန်ကန်ပါ သို့မဟုတ် ပျောက်ဆုံးနေပါသည်
ရယူပါ /api/v1/plans/{plan_id}/

အစီအစဉ်အသေးစိတ်ကို ရယူပါ

တိကျတဲ့ VPS စီမံကိန်းအကြောင်းအသေးစိတ်အချက်အလက်များကိုရယူပါ။

လမ်းကြောင်း ကန့်သတ်ချက်များ

သတ်မှတ်ချက် အမျိုးအစား လိုအပ်သည် ဖော်ပြချက်
plan_id integer ဟုတ်ကဲ့ ထူးခြားသော အစီအစဉ် ID

နမူနာတောင်းဆိုချက်

cURL
Python
JavaScript
curl -X GET "https://admin.vps.org/api/v1/plans/2/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
import requests

plan_id = 2
url = f"https://admin.vps.org/api/v1/plans/{plan_id}/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())
const planId = 2;
const response = await fetch(`https://admin.vps.org/api/v1/plans/${planId}/`, {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  }
});

const plan = await response.json();
console.log(plan);

ဥပမာတုံ့ပြန်မှု

{
  "id": 2,
  "name": "Standard VPS",
  "slug": "standard",
  "vcpus": 2,
  "memory": 4096,
  "storage": 80,
  "bandwidth": 2048,
  "price_monthly": 10.00,
  "price_hourly": 0.015,
  "available": true,
  "locations": ["us-west", "us-east", "eu-central", "asia-pacific"],
  "description": "Ideal for web applications and small databases",
  "features": [
    "SSD Storage",
    "99.9% Uptime SLA",
    "Free Backups",
    "24/7 Support",
    "DDoS Protection",
    "IPv6 Support"
  ],
  "recommended_for": [
    "WordPress sites with moderate traffic",
    "Small to medium web applications",
    "Development and testing environments",
    "Personal projects and portfolios"
  ]
}

တုံ့ပြန်မှု အခြေအနေ ကုဒ်များ

200 Successfully retrieved plan details
401 ခွင့်ပြုချက်မရှိပါ - အထောက်အထားစိစစ်ခြင်း တိုကင် မမှန်ကန်ပါ သို့မဟုတ် ပျောက်ဆုံးနေပါသည်
404 မတွေ့ပါ - အစီအစဉ် မရှိပါ။

ဈေးနှုန်းအချက်အလက်

ငွေတောင်းခံလွှာ ရွေးချယ်စရာများ

VPS.org သင့်လိုအပ်ချက်ကိုလိုက်လျောညီထွေဖြစ်အောင်နှစ်ခုပေးချေမှုရွေးချယ်စရာများပေးသည်:

လစဉ်ငွေတောင်းခံခြင်း
  • အံ့အားသင့်စရာမရှိဘဲ လစဉ်ပုံသေနှုန်းထား အံ့သြစရာမရှိ
  • ကြာရှည်, ထုတ်လုပ်မှုအလုပ်အကိုင်များအတွက်အကောင်းဆုံး
  • နာရီစဉ်ငွေပေးချေမှုနှင့်နှိုင်းယှဉ်လျှင် 30% အထိ Save
  • လတိုင်း၏အစတွင်ငွေပေးချေ
  • လျှို့ဝှက်အခကြေးငွေသို့မဟုတ် overcharge ကောက်ခံ
နာရီအလိုက် ငွေတောင်းခံလွှာ
  • သင်အသုံးပြုသောနာရီများအတွက်သာပေးဆောင်ပါ
  • စမ်းသပ်ခြင်းနှင့်တိုတောင်းသော-ကာလပရောဂျက်များအတွက်အလွန်ကောင်းမွန်သော
  • နာရီအလိုက် တိုးမြှင့်ပေးချေ
  • အများဆုံး charge cap ကိုအပတ်စဉ်နှုန်းထား
  • ဖွံ့ဖြိုးရေးပတ်ဝန်းကျင်များအတွက်အသင့်တော်ဆုံး

ပါဝင်သော အင်္ဂါရပ်များ

အားလုံး VPS အစီအစဉ်များပါဝင်သည်:

  • ✓ SSD သိုလှောင်မှု
  • ✓ 99.9% SLA ကို Uptime
  • ✓ အခမဲ့နေ့စဉ် Backups
  • ✓ 24/7 ထောက်ခံမှု
  • ✓ DDoS ကာကွယ်ရေး
  • ✓ IPv6 ထောက်ခံမှု
  • ✓ အပြည့်အဝ root ခွင့်ပြုချက်
  • ✓ ချက်ချင်းရိုက်ချက်များ
  • ✓ ပုဂ္ဂလိက ကွန်ရက်
  • ✓ API ဝင်ရောက်ခွင့်

အခြားအရင်းအမြစ်များ

လိုအပ်ချက်ပိုပြီးအရင်းအမြစ်များထည့်သွင်း? ရရှိနိုင်အပိုဆောင်းဝန်ဆောင်မှုများ:

မှန်ကန်သောစီမံကိန်းကိုရွေးချယ်ခြင်း

အမြန်လမ်းညွှန်

စီမံကိန်း အကောင်းဆုံးအတွက် ပုံမှန်အသုံးပြုမှုကိစ္စရပ်များ
Starter VPS Personal projects, testing Static websites, learning environments, small blogs
Standard VPS Small businesses, web apps WordPress sites, small e-commerce, development servers
Performance VPS Medium traffic applications High-traffic WordPress, SaaS applications, databases
Enterprise VPS Large-scale applications Enterprise apps, large databases, video streaming
Need help choosing? ကျွန်ုပ်တို့၏ အရောင်းအဖွဲ့ကို ဆက်သွယ်ပါ at sales@vps.org for personalized recommendations based on your specific requirements.