Get network details
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/network \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{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/cloud/{id}/network"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"primaryIp": "<string>",
"ipv6Prefix": "<string>",
"speed": "<string>",
"ipAddresses": [
{
"address": "<string>",
"isPrimary": true,
"family": "IPv4",
"gateway": "<string>",
"netmask": "<string>",
"ptr": "<string>"
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Cloud
Get network details
The VM’s primary IPv4, extra IPv4s and IPv6 address with gateways and netmasks, plus the customer’s routed IPv6 prefix.
ptr is a live reverse-DNS lookup (1.5 s timeout per address, null when none or slow). Any team role can read it.
GET
/
v1
/
cloud
/
{id}
/
network
Get network details
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/network \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{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/cloud/{id}/network"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"primaryIp": "<string>",
"ipv6Prefix": "<string>",
"speed": "<string>",
"ipAddresses": [
{
"address": "<string>",
"isPrimary": true,
"family": "IPv4",
"gateway": "<string>",
"netmask": "<string>",
"ptr": "<string>"
}
]
}
}{
"success": false,
"error": "<string>"
}{
"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
Service id of the cloud server.