Project

General

Profile

Actions

Support #43736

closed

CEPH API service

Added by priyanka mondal over 4 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Pull request ID:

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)
Actions #1

Updated by Greg Farnum about 4 years ago

  • Project changed from Ceph to mgr
Actions #2

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.

Actions

Also available in: Atom PDF