ಒಂದು VPS ಅನ್ನು ನೀವು ಎಲ್ಲಿ ಬರೆಯಬಹುದು ಎಂದು ಇಲ್ಲಿ ನಮೂದಿಸಿ. ಪರಿಚಾರಕವನ್ನು ರಚಿಸುವಾಗ ತಾಣದ ಗುರುತು ಚಿಹ್ನೆಯನ್ನು_ID ಎಂದು ಸಂರಚಿಸಿರಿ.
ಲಭ್ಯವಿರುವ ಎಲ್ಲಾ ದತ್ತ ಮಧ್ಯವರ್ತಿಗಳ ಪಟ್ಟಿಯನ್ನು ಇಲ್ಲಿ ನೀವು ತೆಗೆದು ಹಾಕಬಹುದು. ಇಲ್ಲಿ ನೀವು VPS ಪರಿಚಾರಕಗಳನ್ನು (server) ಪರಿಶೀಲಿಸಬಹುದು.
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": 1,
"next": null,
"previous": null,
"results": [
{
"id": 1,
"name": "New Jersey",
"country_name": "United States",
"country_code": "US",
"is_active": true
}
]
}
| ಕ್ಷೇತ್ರ | ಪ್ರಕಾರ | ವಿವರಣೆ |
|---|---|---|
id |
integer | ತಾಣ ಗುರುತುಗಾರ (encerication). ಒಂದು ಪರಿಚಾರಕವನ್ನು ರಚಿಸುವಾಗ, ಇದನ್ನು ತಾಣ_IDಯಂತೆ ಬಳಸಿ. |
name |
string | ಮಾನವ ಓದಲು ಅಶಕ್ತ ಸ್ಥಳದ ಹೆಸರು |
country_name |
string | ದೇಶವು ನೆಲೆಯಲ್ಲಿದೆ |
country_code |
string | ISO 3166- 1 ಆಲ್ಫಾ- 2 ದೇಶದ ಸಂಕೇತ, ದೊಡ್ಡದು |
is_active |
boolean | ಈ ಸ್ಥಳವು ಹೊಸ ಪರಿಚಾರಕಗಳನ್ನು ಸ್ವೀಕರಿಸುತ್ತಿದೆಯೆ |
| 200 | ಸ್ಥಳಗಳ ಪಟ್ಟಿಯನ್ನು ಯಶಸ್ವಿಯಾಗಿ ಮರುಪಡೆಯಲಾಗಿದೆ. |
| 403 | API ಗುರುತು ಕಾಣಿಸುತ್ತಿಲ್ಲ ಅಥವ ಅಗತ್ಯವಾದ ಸೂಚಕಕ್ಕೆ ಬೇಕಾದ ಅನುಮತಿ ಇಲ್ಲ |
ಒಂದು ಸ್ಥಳವನ್ನು ಅದರ ಗುರುತುಗನುಸಾರ ಪಡೆದುಕೊಳ್ಳಿ. ಪ್ರತ್ಯುತ್ತರವು ಮೇಲಿನ ಹೊಲಗಳೊಂದಿಗೆ ಇರುವ ಒಂದು ಸ್ಥಳವಾಗಿರುತ್ತದೆ.
curl -X GET "https://admin.vps.org/api/v1/locations/1/" \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"id": 1,
"name": "New Jersey",
"country_name": "United States",
"country_code": "US",
"is_active": true
}
ಪ್ರತಿಯೊಂದು VPS.org ಪರಿಚಾರಕವು ಈಗ ನಮ್ಮ ನ್ಯೂಜರ್ಜ್, ಅಂದರೆ IPv4 ಹಾಗು IPv6 ಗಿಂತ ಹೆಚ್ಚಿನ ಕಡೆ ಗಿರಾಕಿಗಳ ಕೆಲಸ ಮಾಡುತ್ತದೆ. ಯಾವಾಗಲೂ ಒಂದು ಗುರುತು ಗುರುತು ಹಾಕುವ ಬದಲು, ನಿಮ್ಮ ಐಕ್ಯತೆ ಹೊಸ ಸ್ಥಳಗಳನ್ನು ಆಯಾ ಸ್ಥಳಗಳನ್ನು ಆದುಕೊಂಡಾಗ ಆದುಕೊಂಡಿತು.