Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
04-17-2014, 07:00 AM #1
- Join Date
- Mar 2011
- Thanked 0 Times in 0 Posts
How to use ceph admin api using curl and php?
I am trying to use the ceph admin oops api in the Admin Operations — Ceph Documentation. Currently i am trying the following method to display the usages
curl -i 'http://ceph-gateway/admin/usage?format=json' -X GET -H 'Authorization: AWS <access-key>hash-of-header-and-secret>' -H 'Host: ceph-gateway' -H 'Content-Length: 0'
But i am getting the access denied and 403 error as the result of the above line?
If anyone knows, could you please explain how we can use the ceph admin oops api functions using php and curl ? also could you please check if there any error in the way which used above ?
Thanks in advance..