GET
/dashboard/service/{id}/dedicated/bandwidth/summary Get bandwidth summary
Returns a summary of monthly bandwidth usage without time series data.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The service ID of the dedicated server |
Response
200
403
404
successbooleandataobjectmonthlyUsageGBnumbermonthlyUsageTBnumbermonthlyLimitTBnumbernullableRequest
curl -X GET "https://api.royalehosting.net/dashboard/service/{id}/dedicated/bandwidth/summary" \
-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}/dedicated/bandwidth/summary", {
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}/dedicated/bandwidth/summary",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": {
"monthlyUsageGB": 150.25,
"monthlyUsageTB": 0.15,
"monthlyLimitTB": 10
}
}