VPS.org API

REST API मिसिलीकरण

अपरेटिङ सिस्टम एपीआई

तपाईंको VPS सर्भरहरूको लागि उपलब्ध अपरेटिङ सिस्टम र वितरणहरूको बारेमा जानकारी प्राप्त गर्नुहोस्।

अन्तिम बिन्दुहरू 2 endpoints
आधार मार्ग /api/v1/operating-systems
प्राप्त गर्नुहोस् /api/v1/operating-systems/

सबै अपरेटिङ सिस्टमहरूको सूची बनाउनुहोस्

VPS सर्भरहरूमा स्थापना गर्न सकिन्छ कि सबै उपलब्ध सञ्चालन प्रणालीको सूची पुन: प्राप्त गर्नुहोस्।

क्वेरी प्यारामिटरहरू

परिमिति प्रकारहरू आवश्यक छ वर्णन
os_type string होइन Filter by OS type: linux, windows
featured boolean होइन Show only featured operating systems

उदाहरण अनुरोध

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

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

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

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

उदाहरण प्रतिक्रिया

{
  "count": 12,
  "results": [
    {
      "id": 1,
      "name": "Ubuntu 22.04 LTS",
      "slug": "ubuntu-22-04",
      "version": "22.04",
      "os_type": "linux",
      "distribution": "Ubuntu",
      "architecture": "x86_64",
      "featured": true,
      "available": true,
      "min_disk_gb": 10,
      "description": "Ubuntu 22.04 LTS (Jammy Jellyfish) - Long Term Support until 2027",
      "icon_url": "https://cdn.vps.org/os-icons/ubuntu.svg"
    },
    {
      "id": 2,
      "name": "Debian 12",
      "slug": "debian-12",
      "version": "12",
      "os_type": "linux",
      "distribution": "Debian",
      "architecture": "x86_64",
      "featured": true,
      "available": true,
      "min_disk_gb": 10,
      "description": "Debian 12 (Bookworm) - Stable release",
      "icon_url": "https://cdn.vps.org/os-icons/debian.svg"
    },
    {
      "id": 3,
      "name": "CentOS Stream 9",
      "slug": "centos-stream-9",
      "version": "9",
      "os_type": "linux",
      "distribution": "CentOS",
      "architecture": "x86_64",
      "featured": false,
      "available": true,
      "min_disk_gb": 10,
      "description": "CentOS Stream 9 - Rolling release tracking RHEL development",
      "icon_url": "https://cdn.vps.org/os-icons/centos.svg"
    },
    {
      "id": 4,
      "name": "Fedora 39",
      "slug": "fedora-39",
      "version": "39",
      "os_type": "linux",
      "distribution": "Fedora",
      "architecture": "x86_64",
      "featured": false,
      "available": true,
      "min_disk_gb": 15,
      "description": "Fedora 39 - Cutting-edge Linux distribution",
      "icon_url": "https://cdn.vps.org/os-icons/fedora.svg"
    },
    {
      "id": 5,
      "name": "Rocky Linux 9",
      "slug": "rocky-linux-9",
      "version": "9",
      "os_type": "linux",
      "distribution": "Rocky Linux",
      "architecture": "x86_64",
      "featured": true,
      "available": true,
      "min_disk_gb": 10,
      "description": "Rocky Linux 9 - Enterprise-grade Linux, RHEL compatible",
      "icon_url": "https://cdn.vps.org/os-icons/rocky.svg"
    }
  ]
}

प्रतिक्रिया क्षेत्रहरू

फिल्ड प्रकारहरू वर्णन
id integer Unique operating system identifier
name string Full operating system name with version
slug string URL-friendly OS identifier
version string OS version number
os_type string Operating system type: linux or windows
distribution string Distribution name (Ubuntu, Debian, CentOS, etc.)
architecture string CPU architecture (x86_64, arm64, etc.)
featured boolean Whether OS is featured/recommended
available boolean Whether OS is currently available for installation
min_disk_gb integer Minimum disk space required in gigabytes
description string Brief description of the operating system
icon_url string URL to OS icon/logo image

प्रतिक्रिया स्थिति कोडहरू

200 अपरेटिङ सिस्टमहरूको सूची सफलतापूर्वक प्राप्त गरियो।
401 अनधिकृत - अमान्य वा हराइरहेको प्रमाणीकरण टोकन
प्राप्त गर्नुहोस् /api/v1/operating-systems/{os_id}/

सञ्चालन प्रणाली विवरण प्राप्त गर्नुहोस्

निर्दिष्ट सञ्चालन प्रणालीको बारेमा विस्तृत जानकारी पुन: प्राप्त गर्नुहोस् ।

मार्ग प्यारामिटरहरू

परिमिति प्रकारहरू आवश्यक छ वर्णन
os_id integer हो Unique operating system ID

उदाहरण अनुरोध

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

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

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

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

उदाहरण प्रतिक्रिया

{
  "id": 1,
  "name": "Ubuntu 22.04 LTS",
  "slug": "ubuntu-22-04",
  "version": "22.04",
  "os_type": "linux",
  "distribution": "Ubuntu",
  "architecture": "x86_64",
  "featured": true,
  "available": true,
  "min_disk_gb": 10,
  "description": "Ubuntu 22.04 LTS (Jammy Jellyfish) - Long Term Support until 2027",
  "icon_url": "https://cdn.vps.org/os-icons/ubuntu.svg",
  "release_date": "2022-04-21",
  "support_end_date": "2027-04-21",
  "default_user": "root",
  "package_manager": "apt",
  "init_system": "systemd",
  "kernel_version": "5.15",
  "features": [
    "Long Term Support (LTS) until 2027",
    "5 years of free security updates",
    "Extended Security Maintenance available",
    "Large community support",
    "Extensive package repository",
    "Cloud-optimized kernel",
    "Regular point releases"
  ],
  "recommended_for": [
    "Web servers (Apache, Nginx)",
    "Application servers",
    "Database servers (MySQL, PostgreSQL)",
    "Docker containers",
    "Kubernetes nodes",
    "Development environments",
    "Production workloads"
  ],
  "installation_notes": [
    "Requires minimum 10GB disk space",
    "SSH enabled by default on port 22",
    "UFW firewall available but not enabled by default",
    "Automatic security updates can be configured",
    "Cloud-init supported for automated setup"
  ]
}

प्रतिक्रिया स्थिति कोडहरू

200 Successfully retrieved operating system details
401 अनधिकृत - अमान्य वा हराइरहेको प्रमाणीकरण टोकन
404 Not Found - Operating system does not exist

Featured Operating Systems

VPS.org धेरै प्रयोगका लागि निम्न सञ्चालन प्रणाली सिफारिस गर्दछ:

Ubuntu 22.04 LTS
  • Best for: General purpose servers, web hosting
  • Support: Until April 2027
  • Package Manager: APT
  • Why choose: Most popular, extensive documentation, large community
Debian 12
  • Best for: Stability-focused production servers
  • Support: ~5 years
  • Package Manager: APT
  • Why choose: Rock-solid stability, security-focused
Rocky Linux 9
  • Best for: Enterprise applications, RHEL workloads
  • Support: ~10 years
  • Package Manager: DNF/YUM
  • Why choose: RHEL compatible, enterprise-grade
AlmaLinux 9
  • Best for: Enterprise servers, cPanel hosting
  • Support: ~10 years
  • Package Manager: DNF/YUM
  • Why choose: RHEL compatible, backed by CloudLinux

सही OS चयन

प्रयोगको मामलाद्वारा

केस प्रयोग गर्नुहोस् सिफारिस गरिएको ओएस कारण
Web Hosting Ubuntu 22.04 LTS, Debian 12 Excellent LAMP/LEMP stack support, large community
Docker/Containers Ubuntu 22.04 LTS, Debian 12 Native Docker support, optimized kernels
Enterprise Apps Rocky Linux 9, AlmaLinux 9 RHEL compatibility, long support cycles
Development Ubuntu 22.04 LTS, Fedora 39 Latest packages, developer-friendly tools
Database Servers Debian 12, Rocky Linux 9 Stability, performance, long-term support
cPanel Hosting AlmaLinux 9, Rocky Linux 9 Official cPanel support

अनुभव स्तरद्वारा

रोज्न मद्दत चाहिन्छ? मा हाम्रो समर्थन टोली सम्पर्क hello@vps.org आफ्नो विशिष्ट आवश्यकताहरु मा आधारित व्यक्तिगत OS सिफारिसहरु लागि।

स्थापना र सेटअप

OS स्थापनाको समयमा के हुन्छ

  1. छवि चयन: हाम्रो भण्डारबाट OS टेम्प्लेट चयन गरिएको छ
  2. डिस्क विभाजन: योजना साइजमा आधारित स्वचालित विभाजन
  3. आधार स्थापना गर्नुहोस्: कोर ओएस प्याकेजहरू स्थापना गरिएको छ (५-१० मिनेट)
  4. सञ्जाल सेटअप: आईपी ठेगाना, डीएनएस, र गेटवे कन्फिगर गरिएको छName
  5. SSH सेटअप: पोर्ट २२ मा SSH सर्भर सक्षम पारिएको छ
  6. मूल पहुँच: इमेल मार्फत पठाइएको मूल पासवर्ड
  7. क्लाउड-इनिट्स: सुरुआत कन्फिगरेसन लागू गरियो (यदि समर्थित भएमा)

स्थापना पछिका चरणहरू

पूर्वनिर्धारित प्रमाणपत्र

महत्वपूर्ण: सर्भर सिर्जना पछि तुरुन्तै तपाईँको दर्ता गरिएको इमेल ठेगानामा मूल प्रमाणीकरण पठाइन्छ । सुरक्षाका लागि पहिलो लगइनमा पूर्वनिर्धारित पासवर्ड परिवर्तन गर्नुहोस् ।

समर्थन र मिसिलिकरण

OS-विशिष्ट सेटअप मार्गदर्शकहरूको लागि, हाम्रो भ्रमण गर्नुहोस् मिसिलीकरण केन्द्र: