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

প্রধান বাজারে সর্বনিম্ন লেটেন্সী
  • উত্তর আমেরিকা: নিউ ইয়র্ক (২ মিসেস ইউএস ইস্ট), সান ফ্রান্সিসকো (২ মিসেস ইউএস পশ্চিম)
  • ইউরোপ: ফ্রাঙ্কফুর্ট (৩মি. সে.), লন্ডন (৫মি. সে.)
  • এশিয়া: সিঙ্গাপুর (৫মিসেস), টোকিও (৮মিসেস)
  • ওশেনিয়া: সিডনি (শুধুমাত্র অপশন)
বিশ্বব্যাপী বিতরণ করার জন্য সেরা
  1. প্রাথমিক: নিউ ইয়র্ক অথবা সান ফ্রান্সিসকো (বৃহত্তম ব্যবহারকারী ভিত্তি)
  2. দ্বিতীয়: লন্ডন অথবা ফ্রাঙ্কফুর্ট (ইউরোপীয় কাভারেজ)
  3. তৃতীয়: সিঙ্গাপুর অথবা টোকিও (এশিয়া কাভারেজ)
প্রস্তাব: মিশন-ক্রিটিক্যাল অ্যাপ্লিকেশনের জন্য, সর্বোচ্চ আপটাইম এবং ভৌগোলিক অতিরিক্ততার জন্য স্বয়ংক্রিয় ফেইলওভার সহ একাধিক অবস্থানে বিতরণ করুন।

ডেটা সেন্টার পরিকাঠামো

স্ট্যান্ডার্ড বৈশিষ্ট্য (সব অবস্থান)

  • ✓ তৃতীয় স্তরের বা তার উপরের ডেটা সেন্টার
  • ✓ ১০০% আপটাইম SLA
  • ✓ অতিরিক্ত শক্তি (N+1 অথবা 2N)
  • ✓ অতিরিক্ত শীতলতা
  • ✓ ২৪/৭ শারীরিক নিরাপত্তা
  • ✓ বায়োমেট্রিক প্রবেশাধিকার নিয়ন্ত্রণ
  • ✓ DDoS সুরক্ষা (১০ Tbps পর্যন্ত)
  • ✓ IPv4 এবং IPv6 সমর্থন
  • ✓ ব্যক্তিগত নেটওয়ার্কিং (VLAN)
  • ✓ ১০ জিবিপিএস+ নেটওয়ার্ক ব্যাকবোন
  • ✓ একাধিক আপস্ট্রিম প্রদানকারী
  • ✓ প্রধান নেটওয়ার্কের সাথে 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

অবস্থান পরিবর্তন করা হচ্ছে

আপনি স্ন্যাপশট ব্যবহার করে ভিপিএসকে অন্য স্থানে স্থানান্তর করতে পারেন:

  1. আপনার বিদ্যমান VPS এর স্ন্যাপশট তৈরি করুন
  2. লক্ষ্য অবস্থানে একটি নতুন VPS তৈরি করুন
  3. স্ন্যাপশটটি নতুন VPS-এ পুনরুদ্ধার করুন
  4. নতুন IP-এ নির্দেশ করতে DNS রেকর্ড আপডেট করুন
  5. মাইগ্রেশন নিশ্চিত হওয়ার পর পুরনো VPS মুছে ফেলুন
নোট: নতুন অবস্থানে স্থানান্তর করলে নতুন IP ঠিকানা তৈরি হবে। DNS প্রসারণের সময় নির্ধারণ করুন (সাধারণত পূর্ণ বিশ্বব্যাপী প্রসারণের জন্য ২৪-৪৮ ঘণ্টা)।

বহু-স্থানীয় প্রয়োগ

উচ্চ ব্যবহারযোগ্যতা এবং বিশ্বব্যাপী পৌঁছানোর জন্য, একাধিক স্থানে প্রয়োগ করার বিষয়টি বিবেচনা করুন:

ব্যবহারের ক্ষেত্রে
  • গ্লোবাল বিষয়বস্তু সরবরাহ
  • ভৌগলিক লোড ভারসাম্য
  • বিপর্যয় পুনরুদ্ধার
  • তথ্যের নিরাপত্তা আইনের প্রতি সম্মান প্রদর্শন
  • আন্তর্জাতিক ব্যবহারকারীদের জন্য কমানো latency
বাস্তবায়ন
  • DNS-ভিত্তিক লোড ভারসাম্য (GeoDNS)
  • CDN সংযোগ (ক্লাউডফ্লেয়ার, ইত্যাদি)
  • অঞ্চলের মধ্যে ডাটাবেস প্রতিলিপি
  • শেয়ার করা স্টোরেজ সমাধান
  • অ্যাপলিকেশন- লেভেল ফেইলওভার
Need help with multi-region deployment? Contact our solutions team at solutions@vps.org for architecture consulting.