Support #43736
closedCEPH API service
0%
Description
I want to create new user, and used this:
curl -X PUT -kv http://10.5.62.163/admin/user?format=json&uid=test&display_name=test
every time I do this I am getting below error:
{
"Code": "AccessDenied",
"RequestId": "tx00000000000000000000b-005e269878-123cd-in",
"HostId": "123cd-in-in"
}
please suggest what I am missing.
my server has mon, mgr,rgw, osd active.
services:
mon: 1 daemons, quorum n2vl-pa-ceph01 (age 4d)
mgr: n2vl-pa-ceph01(active, since 4d)
osd: 12 osds: 12 up (since 4d), 12 in (since 4d)
rgw: 1 daemon active (n2vl-pa-ceph01)
Updated by Ernesto Puerta over 3 years ago
- Status changed from New to Rejected
Hi Priyanka,
The best way of learning about the REST API is to go to the Ceph-Dashboard OpenAPI/Swagger page. Just log to the Dashboard and go to the top-right "?" drop-down menu -> API. That will lead you to the OpenAPI interactive docs, where you can create some working curl requests.
In your specific case, it seems you are not providing the Authentication token. If you try the OpenAPI page you'll see how that's attached to the request.