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), සැන් ෆ්රැන්සිස්කෝ (එක්සත් ජනපදය බටහිර 2ms)
  • යුරෝපය: ෆ්රැන්ක්ෆර්ට් (3ms), ලන්ඩන් (5ms)
  • ආසියාව: සිංගප්පූරුව (5ms), ටෝකියෝ (8ms)
  • ඕෂනියාව: සිඩ්නි (එකම විකල්පය)
ගෝලීය බෙදාහැරීම සඳහා හොඳම
  1. ප්‍රාථමික: නිව් යෝර්ක් හෝ සැන් ෆ්රැන්සිස්කෝ (විශාලතම පරිශීලක පදනම)
  2. ද්විතියික: ලන්ඩන් හෝ ෆ්රැන්ක්ෆර්ට් (යුරෝපය ආවරණය)
  3. තෙවන: සිංගප්පූරුව හෝ ටෝකියෝ (ආසියානු ආවරණය)
ටූල්ටිප්: මෙහෙයුම්-විශේෂිත යෙදුම් සඳහා, උපරිම uptime සහ භූගෝලීය අවම කිරීම සඳහා ස්වයංක්රීය failover සමඟ බහු ස්ථානවලට යෙදවීම.

දත්ත මධ්යස්ථානය යටිතල පහසුකම්

සම්මත විශේෂාංග (සියලු ස්ථාන)

  • ✓ III හෝ ඉහළ දත්ත මධ්යස්ථාන
  • ✓ 100% ක් SLA
  • ✓ අමතර බලය (N + 1 හෝ 2N)
  • ✓ අමතර සිසිලනය
  • ✓ 24/7 භෞතික ආරක්ෂාව
  • ✓ ජෛවමිතික ප්රවේශ පාලන
  • ✓ DDoS ආරක්ෂාව (10 Tbps දක්වා අඩු කිරීම)
  • ✓ IPv4 සහ IPv6 සහාය
  • ✓ පෞද්ගලික ජාලකරණ (VLAN)
  • ✓ 10 Gbps + ජාලයේ පිටුපස
  • ✓ බහු උඩුගත සැපයුම්කරුවන්
  • ✓ ප්රධාන ජාල සමග BGP පීරමින්

ජාල සැපයුම්කරුවන්

පිහිටුම සැපයුම්කරු සත්ත්වයා සටහන්
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 වෙනස් ස්ථානයකට සංක්රමණය කළ හැකිය:

  1. ඔබේ දැනට පවතින VPS හි ස්නයිප් එකක් නිර්මාණය කරන්න
  2. ඉලක්ක පිහිටීම තුළ නව VPS නිර්මාණය කරන්න
  3. නව VPS වෙත ස්නයිප් ෂොට් ප්රතිස්ථාපනය කරන්න
  4. නව IP වෙත යොමු කිරීමට DNS වාර්තා යාවත්කාලීන
  5. සංක්රමණය තහවුරු වූ පසු පැරණි VPS මකා දමන්න
සටහන: නව ස්ථානයකට සංක්රමණය නව IP ලිපිනයක් ප්රතිඵලයක් වනු ඇත. DNS ප්රචාරණ කාලය සඳහා සැලසුම් (සාමාන්යයෙන් 24-48 පැය සම්පූර්ණ ගෝලීය ප්රචාරණය සඳහා).

බහු-ස්ථාන ස්ථාපනය

ඉහළ ලබා ගත හැකි හා ගෝලීය ළඟා සඳහා, බහු ස්ථානවල යෙදවීම සලකා බලන්න:

භාවිතය
  • ගෝලීය අන්තර්ගතය
  • භූගෝලීය බර සමතුලිත
  • ආපදා යථා තත්ත්වයට පත්
  • දත්ත පදිංචි නීති අනුකූල
  • ජාත්යන්තර පරිශීලකයන් සඳහා අඩු ප්රමාද
යෙදුම
  • DNS මත පදනම් වූ බර සමතුලිත කිරීම (GeoDNS)
  • CDN ඒකාබද්ධ කිරීම (ක්ලවුඩ්ෆ්ලර්, ආදිය)
  • ප්රදේශ හරහා දත්ත සමුදායේ අනුපිටපත්
  • හවුල් ගබඩා විසඳුම්
  • යෙදුම් මට්ටමේ අසාර්ථකත්වය
Need help with multi-region deployment? Contact our solutions team at solutions@vps.org for architecture consulting.