GET
/dashboard/service/{id}/vps/ips Get VPS IP addresses
Retrieve all IP addresses assigned to the VPS.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The service ID of the VPS. |
search | string | query | Search filter for IP addresses. |
Response
200
403
404
successbooleandataarrayRequest
curl -X GET "https://api.royalehosting.net/dashboard/service/{id}/vps/ips" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/service/{id}/vps/ips", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://api.royalehosting.net/dashboard/service/{id}/vps/ips",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": [
{
"id": 0,
"address": "string",
"dns_name": "string",
"version": "IPv4"
}
]
}