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 கிழக்கு), சான் பிரான்சிஸ்கோ (2ms US மேற்கு)
  • ஐரோப்பா: பிரான்க்ஃபொர்ட் (3ms), லண்டன் (5ms)
  • ஆசியா: சிங்கப்பூர் (5ms), டோக்கியோ (8ms)
  • ஒசியானியா சிட்னி (விருப்பம் மட்டும்)
உலகளாவிய விநியோகத்திற்கான சிறந்த
  1. முதன்மை: நியூயார்க் அல்லது சான் பிரான்சிஸ்கோ (பெரிய பயனர் அடிப்படை)
  2. இரண்டாம்: லண்டன் அல்லது பிரான்க்ஃபீர்ட் (ஐரோப்பாவைக் கொண்டுள்ளது)
  3. மூன்றாம்: சிங்கப்பூர் அல்லது டோக்கியோ (ஆசியப் பகுதி)
& குறி: முக்கியமான பணிகளைச் செய்யும் பயன்பாடுகளுக்கு, அதிகபட்ச செயல்திறன் மற்றும் புவியியல் தேவைக்கு தானாகவே தவறான நிலைக்கு மாற்றும் பல இடங்களுக்குப் பயன்படுத்தவும்.

தரவு மைய கட்டமைப்பு

நிலையான அம்சங்கள் (எல்லா இடங்களும்)

  • ✓ தரம் III அல்லது அதற்கு மேல் தரவு மையங்கள்
  • ✓ 100% செயல்திறன் SLA
  • ✓ தேவையற்ற மின்சாரம் (N+1 அல்லது 2N)
  • ✓ தேவையற்ற குளிர்பதனம்
  • ✓ 24/7 உடல் பாதுகாப்பு
  • ✓ உயிர்மெய்யியல் அணுகல் கட்டுப்பாடு
  • ✓ DDoS பாதுகாப்பு (10 Tbps வரை குறைத்தல்)
  • ✓ IPv4 மற்றும் IPv6 ஆதரவு
  • ✓ தனியார் வலைப்பின்னல் (VLAN) Name
  • ✓ 10 Gbps+ வலைப்பின்னல் முதுகு
  • ✓ பல உச்சநிலை வழங்குநர்கள்
  • ✓ பிஜிபி இணைப்பு

பிணைய வழங்குநர்கள்

இடம் வழங்குநர் மிருகம் குறிப்புகள்
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 ஒருங்கிணைப்பு (க்ளவுட்ஃபிளேர், etc)
  • களங்களுக்கு இடையே தரவுத்தள நகலெடுப்பு
  • பகிரப்பட்ட சேமிப்பு தீர்வுகள்
  • பயன்பாட்டு மட்டத் தவறு
Need help with multi-region deployment? Contact our solutions team at solutions@vps.org for architecture consulting.