Get a server's IP assignments
curl --request GET \
--url https://my.server.express/api/v1/dedicated/{id}/network \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/dedicated/{id}/network', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/{id}/network"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"primaryIp": "<string>",
"speed": "<string>",
"ipAddresses": [
{
"address": "<string>",
"isPrimary": true,
"family": "IPv4",
"gateway": "<string>",
"netmask": "<string>",
"subnet": "<string>",
"ownedBySubnet": "<unknown>"
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Dedicated
Get a server's IP assignments
The primary IP, port speed and every IP TenantOS has assigned to the box, from the cached TenantOS answer. Readable by the owner, any team member and staff. A server with no TenantOS id answers 404; if TenantOS has never answered for it the route answers 500.
GET
/
v1
/
dedicated
/
{id}
/
network
Get a server's IP assignments
curl --request GET \
--url https://my.server.express/api/v1/dedicated/{id}/network \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/dedicated/{id}/network', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/{id}/network"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"primaryIp": "<string>",
"speed": "<string>",
"ipAddresses": [
{
"address": "<string>",
"isPrimary": true,
"family": "IPv4",
"gateway": "<string>",
"netmask": "<string>",
"subnet": "<string>",
"ownedBySubnet": "<unknown>"
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
bearerAuthapiToken
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
The dedicated server's service id.