Hello everyone,
i want to get rrddata from webapi. I use the https://github.com/CpuID/pve2-api-php-client PHP-API. But this is dosent work. Can anyone help me?
i want to get rrddata from webapi. I use the https://github.com/CpuID/pve2-api-php-client PHP-API. But this is dosent work. Can anyone help me?
PHP:
if ($px->login ()) {
$status = $px->get("/nodes/kvm11/qemu/223/rrddata", array('timeframe' => 'hour'));
var_dump($status);
}
Code:
----------------------------------------------
FULL RESPONSE: HTTP/1.1 400 Parameter verification failed.
Cache-Control: max-age=0 Connection: close
Date: Tue, 27 Sep 2016 21:25:59 GMT
Pragma: no-cache Server: pve-api-daemon/3.0
Content-Length: 81
Content-Type: application/json;charset=UTF-8 Expires: Tue, 27 Sep 2016 21:25:59 GMT {"errors":{"timeframe":"property is missing and it is not optional"},"data":null}
END FULL RESPONSE
Headers: HTTP/1.1 400 Parameter verification failed.
Cache-Control: max-age=0
Connection: close
Date: Tue, 27 Sep 2016 21:25:59 GMT
Pragma: no-cache Server: pve-api-daemon/3.0 Content-Length: 81
Content-Type: application/json;charset=UTF-8 Expires: Tue, 27 Sep 2016 21:25:59 GMT
End Headers Data: {"errors":{"timeframe":"property is missing and it is not optional"},"data":null} End Data RESPONSE ARRA