- Server operating system version
- Ubuntu 24.04 x86_64
- Plesk version and microupdate number
- Plesk Obsidian 18.0.70.1
hello,
i have problems to get the traffic with rest-api ;-(
this and other commands working very well:
i get all Infos About the server.
but this command not working, i have try with several changes,
Nothing helps ;-(
can anybody help me please ??
thanks & regards
millerbln
i have problems to get the traffic with rest-api ;-(
this and other commands working very well:
Code:
curl -X GET -H "X-API-Key: 12345678-1234-5678-1234-123456789012" -H "Content-Type: application/json" -H "Accept: application/json" "https://xx-yy.de:8443/api/v2/server"
but this command not working, i have try with several changes,
Nothing helps ;-(
Code:
curl -X POST -H "X-API-Key: 12345678-1234-5678-1234-123456789012" -H "Content-Type: application/json" -H "Accept: application/json" -d @/root/pleskapi/plesk-traffic1.json "https://xx-xx.de:8443/api/v2/cli/webspace/get_traffic"
Code:
my plesk-traffic1.json is this:
{
<packet>
<webspace>
<get_traffic>
<filter-id>5</filter-id>
<since_date>2025-03-01</since_date>
</get_traffic>
</webspace>
</packet>
}
can anybody help me please ??
thanks & regards
millerbln