VPS.org API

ເອກະສານ REST API

API ສະຖານທີ່

Retrieve information about available datacenter locations for VPS deployment.

ຈຸດສິ້ນສຸດ 1 endpoint
ເສັ້ນທາງພື້ນຖານ /api/v1/locations
ຮັບ /api/v1/locations/

ລາຍຊື່ສະຖານທີ່ທັງໝົດ

ເອົາລາຍຊື່ຂອງສະຖານທີ່ສູນຂໍ້ມູນທີ່ໃຊ້ໄດ້ທັງຫມົດທີ່ທ່ານສາມາດນໍາໃຊ້ VPS ເຊີເວີ.

ພາລາມິເຕີການສອບຖາມ

ຕົວ​ເລືອກ​ ປະເພດ ຕ້ອງມີການ ຄໍາອະທິບາຍ
region string ​ບໍ່ Filter by region: north-america, europe, asia, oceania
available boolean ​ບໍ່ Show only locations currently accepting new servers

ຕົວຢ່າງການຮ້ອງຂໍ

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

url = "https://admin.vps.org/api/v1/locations/"
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/locations/', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  }
});

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

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

ຕົວຢ່າງການຕອບສະໜອງ

{
  "count": 8,
  "results": [
    {
      "id": 1,
      "name": "New York",
      "slug": "ny-usa",
      "country": "United States",
      "country_code": "US",
      "city": "New York",
      "region": "north-america",
      "continent": "North America",
      "available": true,
      "latitude": 40.7128,
      "longitude": -74.0060,
      "network_provider": "Digital Realty",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to US East Coast"
      ],
      "average_latency_ms": {
        "us-east": 2,
        "us-west": 75,
        "europe": 85,
        "asia": 220
      }
    },
    {
      "id": 2,
      "name": "San Francisco",
      "slug": "sf-usa",
      "country": "United States",
      "country_code": "US",
      "city": "San Francisco",
      "region": "north-america",
      "continent": "North America",
      "available": true,
      "latitude": 37.7749,
      "longitude": -122.4194,
      "network_provider": "Equinix",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to US West Coast & Asia"
      ],
      "average_latency_ms": {
        "us-east": 75,
        "us-west": 2,
        "europe": 150,
        "asia": 120
      }
    },
    {
      "id": 3,
      "name": "London",
      "slug": "lon-uk",
      "country": "United Kingdom",
      "country_code": "GB",
      "city": "London",
      "region": "europe",
      "continent": "Europe",
      "available": true,
      "latitude": 51.5074,
      "longitude": -0.1278,
      "network_provider": "Telehouse",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "GDPR Compliant",
        "Low Latency to Europe"
      ],
      "average_latency_ms": {
        "us-east": 85,
        "us-west": 150,
        "europe": 5,
        "asia": 180
      }
    },
    {
      "id": 4,
      "name": "Frankfurt",
      "slug": "fra-de",
      "country": "Germany",
      "country_code": "DE",
      "city": "Frankfurt",
      "region": "europe",
      "continent": "Europe",
      "available": true,
      "latitude": 50.1109,
      "longitude": 8.6821,
      "network_provider": "Interxion",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "GDPR Compliant",
        "Central European Location"
      ],
      "average_latency_ms": {
        "us-east": 95,
        "us-west": 160,
        "europe": 3,
        "asia": 200
      }
    },
    {
      "id": 5,
      "name": "Singapore",
      "slug": "sgp-sg",
      "country": "Singapore",
      "country_code": "SG",
      "city": "Singapore",
      "region": "asia",
      "continent": "Asia",
      "available": true,
      "latitude": 1.3521,
      "longitude": 103.8198,
      "network_provider": "Equinix",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to Asia Pacific"
      ],
      "average_latency_ms": {
        "us-east": 250,
        "us-west": 180,
        "europe": 170,
        "asia": 5
      }
    },
    {
      "id": 6,
      "name": "Tokyo",
      "slug": "tok-jp",
      "country": "Japan",
      "country_code": "JP",
      "city": "Tokyo",
      "region": "asia",
      "continent": "Asia",
      "available": true,
      "latitude": 35.6762,
      "longitude": 139.6503,
      "network_provider": "Equinix",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to East Asia"
      ],
      "average_latency_ms": {
        "us-east": 180,
        "us-west": 120,
        "europe": 240,
        "asia": 8
      }
    },
    {
      "id": 7,
      "name": "Sydney",
      "slug": "syd-au",
      "country": "Australia",
      "country_code": "AU",
      "city": "Sydney",
      "region": "oceania",
      "continent": "Oceania",
      "available": true,
      "latitude": -33.8688,
      "longitude": 151.2093,
      "network_provider": "NextDC",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to Australia & New Zealand"
      ],
      "average_latency_ms": {
        "us-east": 210,
        "us-west": 140,
        "europe": 280,
        "asia": 120
      }
    },
    {
      "id": 8,
      "name": "Toronto",
      "slug": "tor-ca",
      "country": "Canada",
      "country_code": "CA",
      "city": "Toronto",
      "region": "north-america",
      "continent": "North America",
      "available": true,
      "latitude": 43.6532,
      "longitude": -79.3832,
      "network_provider": "Cologix",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Data Sovereignty (Canada)"
      ],
      "average_latency_ms": {
        "us-east": 20,
        "us-west": 65,
        "europe": 90,
        "asia": 210
      }
    }
  ]
}

ພາກສະໜາມຕອບສະໜອງ

​ແຄມ​ເປນ ປະເພດ ຄໍາອະທິບາຍ
id integer Unique location identifier
name string Human-readable location name
slug string URL-friendly location identifier
country string Country name
country_code string ISO 3166-1 alpha-2 country code
city string City name
region string Geographic region (north-america, europe, asia, oceania)
continent string Continent name
available boolean Whether location is accepting new servers
latitude decimal Geographic latitude
longitude decimal Geographic longitude
network_provider string Datacenter/network provider name
features array List of location-specific features
average_latency_ms object Average latency in milliseconds to major regions

ລະຫັດສະຖານະການຕອບສະໜອງ

200 ດຶງຂໍ້ມູນລາຍຊື່ສະຖານທີ່ສຳເລັດແລ້ວ
401 ບໍ່ໄດ້ຮັບອະນຸຍາດ - ໂທເຄັນການພິສູດຢືນຢັນບໍ່ຖືກຕ້ອງ ຫຼື ບໍ່ມີ

Choosing the Right Location

ຕາມ​ຜູ້​ຮັບ​ເປົ້າ​ໝາຍ

Target Audience Recommended Locations Why
US East Coast Users New York, Toronto Lowest latency (2-20ms), close proximity
US West Coast Users San Francisco Lowest latency (2ms), silicon valley connectivity
European Users London, Frankfurt GDPR compliant, low latency (3-5ms) across Europe
Asian Users Singapore, Tokyo Best connectivity to Asia Pacific region (5-8ms)
Australian/NZ Users Sydney Only Oceania location, lowest latency to Australia
Global Audience Multiple locations with load balancing Deploy in 2-3 regions for global coverage

ຕາມ​ຄວາມ​ຕ້ອງການ​ທີ່​ສອດຄ່ອງ

ຜົນງານ​ຂອງ​ເຄືອຂ່າຍName

ເວລາລໍຖ້າຕ່ຳສຸດໄປສູ່ຕະຫຼາດໃຫຍ່
  • ອາເມລິກາ​ເໜືອ: ນິວຢອກ (2ms ໄປ US East), ຊານຟຣານຊິສໂກ (2ms ໄປ US West)
  • ເອີຣົບ: ລານ​ເດີ​ຟຣັງ (3ms), ແລນ​ເດີ​ຟຣັງ (5ms)
  • ອາຊີ & # 160; ៖ ສິງກະໂປ (5ms), ໂຕກຽວ (8ms)
  • ໂອເຊຍເນຍ: ຊີດນີ (ມີພຽງຕົວເລືອກ)
ດີທີ່ສຸດ ສຳ ລັບ​ການ​ແຈກຢາຍ​ທົ່ວ​ໂລກ
  1. ຕົ້ນຕໍ: ນິວຢອກ ຫຼື ຊານຟຣານຊິສໂກ (ຖານຜູ້ໃຊ້ທີ່ໃຫຍ່ທີ່ສຸດ)
  2. ກາງ: ແລນໂດນ ຫຼື ເຟຣກຟຣັກ (ເອີຣົບ)
  3. ຊັ້ນ​ທີ​ສາມ: ສິງກະໂປ ຫຼື ໂຕກຽວ (ອາຊີ)
ຂໍ້​ແນະ​ນຳ: ສໍາລັບຄໍາຮ້ອງສະຫມັກທີ່ສໍາຄັນ, ນໍາໃຊ້ໄປຍັງສະຖານທີ່ຫຼາຍບ່ອນທີ່ມີການ failover ອັດຕະໂນມັດສໍາລັບການສູງສຸດຂອງເວລາແລະ geo-redondance.

ພື້ນຖານໂຄງລ່າງສູນຂໍ້ມູນ

ຄຸນສົມບັດ​ມາດຕະຖານ (ສະຖານທີ່​ທັງ​ໝົດ)

  • ✓ ສູນຂໍ້ມູນ Tier III ຫຼືສູງກວ່າ
  • ✓ SLA ເວລາໃຊ້ງານ 100%
  • ✓ ພະລັງງານ​ທີ່​ບໍ່​ຈໍາເປັນ (N+1 ຫຼື 2N)
  • ✓ ການ​ເຮັດ​ໃຫ້​ເຢັນ​ເກີນ​ໄປ
  • ✓ 24/7 ຄວາມປອດໄພທາງຮ່າງກາຍ
  • ✓ ການ​ຄວບຄຸມ​ການ​ເຂົ້າ​ເຖິງ​ແບບ​ຊີວະ​ພາບ
  • ✓ ການປ້ອງກັນ DDoS (ເຖິງ 10 Tbps ຫຼຸດຜ່ອນ)
  • ✓ ການ​ສະໜັບສະໜູນ IPv4 ແລະ IPv6
  • ✓ ເຄືອຂ່າຍສ່ວນຕົວ (VLAN)
  • ✓ 10 Gbps + ເຄືອຂ່າຍ backbone
  • ✓ ຕົວ​ສະໜອງ​ຕົ້ນຕໍ​ຫຼາຍ​ຕົວ
  • ✓ BGP peering ກັບ​ເຄືອຂ່າຍ​ໃຫຍ່

ຕົວ​ສະໜອງ​ເຄືອຂ່າຍ

ສະຖານທີ່ ຕົວ​ສະໜອງ ສັດ ບັນທຶກ
New York Digital Realty Tier III Major internet exchange point
San Francisco Equinix Tier III Silicon Valley connectivity hub
London Telehouse Tier III LINX (London Internet Exchange)
Frankfurt Interxion Tier III DE-CIX (world's largest IXP)
Singapore Equinix Tier III Asia Pacific connectivity hub
Tokyo Equinix Tier III JPIX and JPNAP peering
Sydney NextDC Tier III Oceania's largest datacenter
Toronto Cologix Tier III Canadian data sovereignty

Location Migration & Multi-Region Deployment

ການ​ເຄື່ອນ​ໄຫວ​ລະຫວ່າງ​ສະຖານທີ່

ທ່ານສາມາດຍ້າຍ VPS ຂອງທ່ານໄປທີ່ສະຖານທີ່ອື່ນໂດຍໃຊ້ snapshots:

  1. ສ້າງ​ຮູບ​ຖ່າຍ​ຂອງ VPS ທີ່ມີ​ຢູ່​ແລ້ວ​ຂອງ​ທ່ານ
  2. ສ້າງ VPS ໃຫມ່​ໃນ​ຕໍາແຫນ່ງ​ເປົ້າ​ໝາຍ
  3. ຖອນ​ຮູບ​ຖ່າຍ​ຄືນ​ໄປ​ຍັງ VPS ໃຫມ່
  4. ປັບປຸງ​ບັນທຶກ DNS ເພື່ອ​ຊີ້​ໄປ​ຫາ IP ໃຫມ່
  5. ເອົາ VPS ເກົ່າອອກເມື່ອການ​ປ່ຽນ​ແປງ​ໄດ້​ຖືກ​ກວດ​ສອບ
ចំណាំ: ການຍ້າຍໄປຍັງສະຖານທີ່ໃຫມ່ຈະນໍາໄປສູ່ທີ່ຢູ່ IP ໃຫມ່. ແຜນສໍາລັບເວລາແຜ່ກະຈາຍ DNS (ໂດຍທົ່ວໄປ 24-48 ຊົ່ວໂມງສໍາລັບການແຜ່ກະຈາຍທົ່ວໂລກເຕັມ).

ການ​ຈັດ​ຕັ້ງ​ໃຊ້​ຫຼາຍ​ບ່ອນ

ສໍາລັບຄວາມສາມາດສູງແລະລະດັບໂລກ, ພິຈາລະນາການຈັດຕັ້ງປະຕິບັດໃນຫຼາຍສະຖານທີ່:

ກໍລະນີ​ໃຊ້
  • ສົ່ງເນື້ອໃນ​ທົ່ວ​ໂລກ
  • ການ​ສົມ​ທຽບ​ການ​ផ្ទុກ​ທາງ​ພູມສາດ
  • ການຟື້ນຟູ​ຫຼັງ​ຈາກ​ໄພພິບັດ
  • ປະຕິບັດຕາມກົດໝາຍວ່າດ້ວຍການຢູ່ອາໄສຂໍ້ມູນ
  • ຫຼຸດ​ຄວາມ​ລໍຖ້າ​ສຳລັບ​ຜູ້​ໃຊ້​ສາກົນ
ປະຕິບັດ
  • ການ​ສົມ​ທຽບ​ການ​ໃຊ້​ງານ​ທີ່​ອີງ​ໃສ່ DNS (GeoDNS)
  • ການລວມເອົາ CDN (Cloudflare, ອື່ນໆ)
  • ຖານຂໍ້ມູນ​ທີ່​ໄດ້​ຮັບ​ການ​ຖ່າຍ​ທອດ​ຜ່ານ​ພາກພື້ນ
  • ວິທີແກ້ໄຂ​ການ​ເກັບ​ໄວ້​ຮ່ວມກັນ
  • ໄຟລ໌​ລະດັບ​កម្មវិធី
Need help with multi-region deployment? Contact our solutions team at solutions@vps.org for architecture consulting.