Fi àtòjọ àwọn ààyè-iṣẹ́ hàn nínú àwọn ààyè-iṣẹ́ tí o lè fi VPS pamọ́. Fi ID ààyè-iṣẹ́ náà lọ́wọ́lọ́wọ́ bíi location_id látigbá tí o bá kọ́ sáà.
Gba àtòjọ àwọn ààyè-iṣẹ́ datacenter tó lè wa níbí tí o ti lè fi àwọn sáà VPS pamọ́.
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
}
]
}
| Àwọn Ààyè-iṣẹ́ | Irú | Àwọn Àkọlé |
|---|---|---|
id |
integer | Àtòjọ-ẹ̀yàn ààyè-iṣẹ́. Lò ní bíi àtòjọ-ẹ̀yàn_àyè-iṣẹ́ láti fi sáà kọ́. |
name |
string | Orúkọ ààyè-iṣẹ́ tí a lè kà |
country_name |
string | Àwọn ààyè-iṣẹ́ àwọn ààyè-iṣẹ́ |
country_code |
string | Àwọn àmì-ìwé àwọn ààyè-iṣẹ́ ISO 3166-1 alpha-2, àwọn à |
is_active |
boolean | Bó ààyè-iṣẹ́ náà gbá àwọn sáà tuntun |
| 200 | Àkójọ àwọn ibi tí a ti rí gbà ní àṣeyọrí |
| 403 | Tokénà API tí kò bá jẹ́ tàbí tí kò bá jẹ́, tàbí tokénà náà kò ní ìṣẹ̀dà tí a fẹ́ |
Gba ààyè-iṣẹ́ kan láti inú ID rẹ. Àwọn ìṣàmúlò-ètò ní àwọn ààyè-iṣẹ́ tí a fi pamọ́ síì.
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
}
Gbogbo ile itọju VPS.org ti a n ṣiṣẹ lọwọlọwọ wa ni ipo wa ni New Jersey, Amẹrika, ati pe ile itọju yii n fi ọrọ rẹ ṣe pinṣe pọ si awọn alabari lọwọ ni ayé gbogbo nipasẹ IPv4 ati IPv6. Jọwọ ka aye ti ipo naa ni gbogbo igba, ki o ma ṣe ṣiṣayẹwo idéntifáàkẹ́ kan, nitorí pé èyí yóò jẹ́ kí ohunṣiṣẹ́ rẹ mọ awọn ipo tuntun nigba ti wọn ba ṣaṣe.