Ceph Rest Api 是一套ceph自带的HTTP接口,官方文档上待补充,但其实,配好ceph rest api之后,默认页面会显示所有的API列表。放在这里作为参考。
Possible commands: | Method | Description |
---|---|---|
auth/add?entity=entity( |
PUT | add auth info for |
auth/caps?entity=entity( |
PUT | update caps for |
auth/del?entity=entity( |
PUT | delete all caps for |
auth/export?entity={entity( |
GET | write keyring for requested entity, or master keyring if none given |
auth/get?entity=entity( |
GET | write keyring file with requested key |
auth/get-key?entity=entity( |
GET | display requested key |
auth/get-or-create?entity=entity( |
PUT | add auth info for |
auth/get-or-create-key?entity=entity( |
PUT | get, or add, key for |
auth/import | PUT | auth import: read keyring file from -i |
auth/list | GET | list authentication state |
auth/print-key?entity=entity( |
GET | display requested key |
auth/print_key?entity=entity( |
GET | display requested key |
tell/ |
PUT | OSD benchmark: write |
tell/ |
PUT | log a message to the cluster log |
compact | PUT | cause compaction of monitor's leveldb storage |
config-key/del?key=key( |
PUT | delete |
config-key/exists?key=key( |
GET | check for |
config-key/get?key=key( |
GET | get |
config-key/list | GET | list keys |
config-key/put?key=key( |
PUT | put |
tell/ |
PUT | run cpu profiling on daemon |
tell/ |
PUT | set osd_recovery_delay_start to |
tell/ |
GET | dump missing objects to a named file |
df?detail={detail} | GET | show cluster free space stats |
tell/ |
GET | dump pg recovery statistics |
tell/ |
PUT | flush pg stats |
fs/ls | GET | list filesystems |
fs/new?fs_name=fs_name( |
PUT | make new filesystem using named pools |
fs/reset?fs_name=fs_name( |
PUT | disaster recovery only: reset to a single-MDS map |
fs/rm?fs_name=fs_name( |
PUT | disable the named filesystem |
fsid | GET | show cluster FSID/UUID |
health?detail={detail} | GET | show cluster health |
heap?heapcmd=heapcmd(dump|start_profiler |stop_profiler|release|stats) | PUT | show heap usage info (available only if compiled with tcmalloc) |
tell/ |
PUT | show heap usage info (available only if compiled with tcmalloc) |
injectargs?injected_args=injected_args(< string>) [ |
PUT | inject config arguments into monitor |
tell/ |
PUT | inject configuration arguments into running OSD |
tell/ |
GET | list missing objects on this pg, perhaps starting at an offset given in JSON |
log?logtext=logtext( |
PUT | log supplied text to the monitor log |
tell/ |
PUT | mark all unfound objects in this pg as lost, either removing or reverting to a prior version if one is available |
mds/add_data_pool?pool=pool( |
PUT | add data pool |
mds/cluster_down | PUT | take MDS cluster down |
mds/cluster_up | PUT | bring MDS cluster up |
mds/compat/rm_compat?feature=feature( |
PUT | remove compatible feature |
mds/compat/rm_incompat?feature=feature(< int[0-]>) | PUT | remove incompatible feature |
mds/compat/show | GET | show mds compatibility settings |
mds/deactivate?who=who( |
PUT | stop mds |
mds/dump?epoch={epoch( |
GET | dump info, optionally from epoch |
mds/fail?who=who( |
PUT | force mds to status failed |
mds/getmap?epoch={epoch( |
GET | get MDS map, optionally from epoch |
mds/newfs?metadata=metadata( |
PUT | make new filesystem using pools |
mds/remove_data_pool?pool=pool( |
PUT | remove data pool |
mds/rm?gid=gid( |
PUT | remove nonactive mds |
mds/rmfailed?who=who( |
PUT | remove failed mds |
mds/set?var=var(max_mds|max_file_size|al low_new_snaps|inline_data)&val=val( |
PUT | set mds parameter to |
mds/set_max_mds?maxmds=maxmds( |
PUT | set max MDS index |
mds/set_state?gid=gid( |
PUT | set mds state of |
mds/setmap?epoch=epoch( |
PUT | set mds map; must supply correct epoch number |
mds/stat | GET | show MDS status |
mds/stop?who=who( |
PUT | stop mds |
mds/tell?who=who( |
PUT | send command to particular mds |
mon/add?name=name( |
PUT | add new monitor named |
mon/dump?epoch={epoch( |
GET | dump formatted monmap (optionally from epoch) |
mon/getmap?epoch={epoch( |
GET | get monmap |
mon/remove?name=name( |
PUT | remove monitor named |
mon/stat | GET | summarize monitor status |
mon_status | GET | report status of monitors |
osd/blacklist?blacklistop=blacklistop(ad d|rm)&addr=addr( |
PUT | add (optionally until |
osd/blacklist/ls | GET | show blacklisted clients |
osd/blocked-by | GET | print histogram of which OSDs are blocking their peers |
osd/create?uuid={uuid( |
PUT | create new osd (with optional UUID) |
osd/crush/add?id=id( |
PUT | add or update crushmap position and weight for |
osd/crush/add- bucket?name=name( |
PUT | add no-parent (probably root) crush bucket |
osd/crush/create-or-move?id=id( |
PUT | create entry or move existing entry for |
osd/crush/dump | GET | dump crush map |
osd/crush/get- tunable?tunable=straw_calc_version | PUT | get crush tunable |
osd/crush/link?name=name( |
PUT | link existing entry for |
osd/crush/move?name=name( |
PUT | move existing entry for |
osd/crush/remove?name=name( |
PUT | remove |
osd/crush/rename- bucket?srcname=srcname( |
PUT | rename bucket |
osd/crush/reweight?name=name( |
PUT | change |
osd/crush/reweight-all | PUT | recalculate the weights for the tree to ensure they sum correctly |
osd/crush/reweight- subtree?name=name( |
PUT | change all leaf items beneath |
osd/crush/rm?name=name( |
PUT | remove |
osd/crush/rule/create- erasure?name=name( |
PUT | create crush rule |
osd/crush/rule/create- simple?name=name( |
PUT | create crush rule |
osd/crush/rule/dump?name={name( |
GET | dump crush rule |
osd/crush/rule/list | GET | list crush rules |
osd/crush/rule/ls | GET | list crush rules |
osd/crush/rule/rm?name=name( |
PUT | remove crush rule |
osd/crush/set | PUT | set crush map from input file |
osd/crush/set?id=id( |
PUT | update crushmap position and weight for |
osd/crush/set-tunable?tunable=straw_calc _version&value=value( |
PUT | set crush tunable |
osd/crush/show-tunables | GET | show current crush tunables |
osd/crush/tree | GET | dump crush buckets and items in a tree view |
osd/crush/tunables?profile=profile(legac y|argonaut|bobtail|firefly|hammer|optima l|default) | PUT | set crush tunables values to |
osd/crush/unlink?name=name( |
PUT | unlink |
osd/deep-scrub?who=who( |
PUT | initiate deep scrub on osd |
osd/df?output_method={output_method(plai n|tree)} | GET | show OSD utilization |
osd/down?ids=ids( |
PUT | set osd(s) |
osd/dump?epoch={epoch( |
GET | print summary of OSD map |
osd/erasure-code- profile/get?name=name( |
GET | get erasure code profile |
osd/erasure-code-profile/ls | GET | list all erasure code profiles |
osd/erasure-code- profile/rm?name=name( |
PUT | remove erasure code profile |
osd/erasure-code- profile/set?name=name( |
PUT | create erasure code profile |
osd/find?id=id( |
GET | find osd |
osd/getcrushmap?epoch={epoch( |
GET | get CRUSH map |
osd/getmap?epoch={epoch( |
GET | get OSD map |
osd/getmaxosd | GET | show largest OSD id |
osd/in?ids=ids( |
PUT | set osd(s) |
osd/lost?id=id( |
PUT | mark osd as permanently lost. THIS DESTROYS DATA IF NO MORE REPLICAS EXIST, BE CAREFUL |
osd/ls?epoch={epoch( |
GET | show all OSD ids |
osd/lspools?auid={auid( |
GET | list pools |
osd/map?pool=pool( |
GET | find pg for |
osd/metadata?id=id( |
GET | fetch metadata for osd |
osd/out?ids=ids( |
PUT | set osd(s) |
osd/pause | PUT | pause osd |
osd/perf | GET | print dump of OSD perf summary stats |
osd/pg- temp?pgid=pgid( |
PUT | set pg_temp mapping pgid:[ |
osd/pool/create?pool=pool( |
PUT | create pool |
osd/pool/delete?pool=pool( |
PUT | delete pool |
osd/pool/get?pool=pool( |
GET | get pool parameter |
osd/pool/get-quota?pool=pool( |
GET | obtain object or byte limits for pool |
osd/pool/ls?detail={detail} | GET | list pools |
osd/pool/mksnap?pool=pool( |
PUT | make snapshot |
osd/pool/rename?srcpool=srcpool( |
PUT | rename |
osd/pool/rmsnap?pool=pool( |
PUT | remove snapshot |
osd/pool/set?pool=pool( |
PUT | set pool parameter to |
osd/pool/set-quota?pool=pool( |
PUT | set object or byte limit on pool |
osd/pool/stats?name={name( |
GET | obtain stats from all pools, or from specified pool |
osd/primary-affinity?id=id( |
PUT | adjust osd primary-affinity from 0.0 <= |
osd/primary- temp?pgid=pgid( |
PUT | set primary_temp mapping pgid: |
osd/repair?who=who( |
PUT | initiate repair on osd |
osd/reweight?id=id( |
PUT | reweight osd to 0.0 < |
osd/reweight-by-pg?oload=oload( |
PUT | reweight OSDs by PG distribution [overload-percentage-for-consideration, default 120] |
osd/reweight-by- utilization?oload={oload( |
PUT | reweight OSDs by utilization [overload-percentage-for-consideration, default 120] |
osd/rm?ids=ids( |
PUT | remove osd(s) |
osd/scrub?who=who( |
PUT | initiate scrub on osd |
osd/set?key=key(full|pause|noup|nodown|n oout|noin|nobackfill|norebalance|norecov er|noscrub|nodeep-scrub|notieragent) | PUT | set |
osd/setcrushmap | PUT | set crush map from input file |
osd/setmaxosd?newmax=newmax( |
PUT | set new maximum osd value |
osd/stat | GET | print summary of OSD map |
osd/thrash?num_epochs=num_epochs( |
PUT | thrash OSDs for |
osd/tier/add?pool=pool( |
PUT | add the tier |
osd/tier/add-cache?pool=pool( |
PUT | add a cache |
osd/tier/cache-mode?pool=pool( |
PUT | specify the caching mode for cache tier |
osd/tier/remove?pool=pool( |
PUT | remove the tier |
osd/tier/remove- overlay?pool=pool( |
PUT | remove the overlay pool for base pool |
osd/tier/set-overlay?pool=pool( |
PUT | set the overlay pool for base pool |
osd/tree?epoch={epoch( |
GET | print OSD tree |
osd/unpause | PUT | unpause osd |
osd/unset?key=key(full|pause|noup|nodown |noout|noin|nobackfill|norebalance|norec over|noscrub|nodeep-scrub|notieragent) | PUT | unset |
pg/debug?debugop=debugop(unfound_objects _exist|degraded_pgs_exist) | GET | show debug info about pgs |
pg/deep-scrub?pgid=pgid( |
PUT | start deep-scrub on |
pg/dump?dumpcontents={dumpcontents(all|s ummary|sum|delta|pools|osds|pgs|pgs_brie f) [all|summary|sum|delta|pools|osds|pgs |pgs_brief...]} | GET | show human-readable versions of pg map (only 'all' valid with plain) |
pg/dump_json?dumpcontents={dumpcontents( all|summary|sum|pools|osds|pgs) [all|summary|sum|pools|osds|pgs...]} | GET | show human-readable version of pg map in json only |
pg/dump_pools_json | GET | show pg pools info in json only |
pg/dump_stuck?stuckops={stuckops(inactiv e|unclean|stale|undersized|degraded) [in active|unclean|stale|undersized|degraded ...]}&threshold={threshold( |
GET | show information about stuck pgs |
pg/force_create_pg?pgid=pgid( |
PUT | force creation of pg |
pg/getmap | GET | get binary pg map to -o/stdout |
pg/ls?pool={pool( |
GET | list pg with specific pool, osd, state |
pg/ls-by-osd?osd=osd( |
GET | list pg on osd [osd] |
pg/ls-by-pool?poolstr=poolstr( |
GET | list pg with pool = [poolname | poolid] |
pg/ls-by-primary?osd=osd( |
GET | list pg with primary = [osd] |
pg/map?pgid=pgid( |
GET | show mapping of pg to osds |
pg/repair?pgid=pgid( |
PUT | start repair on |
pg/scrub?pgid=pgid( |
PUT | start scrub on |
pg/send_pg_creates | PUT | trigger pg creates to be issued |
pg/set_full_ratio?ratio=ratio( |
PUT | set ratio at which pgs are considered full |
pg/set_nearfull_ratio?ratio=ratio( |
PUT | set ratio at which pgs are considered nearly full |
pg/stat | GET | show placement group status. |
tell/ |
GET | show details of a specific pg |
quorum?quorumcmd=quorumcmd(enter|exit) | PUT | enter or exit quorum |
quorum_status | GET | report status of monitor quorum |
report?tags={tags( |
GET | report full status of cluster, optional title tag strings |
tell/ |
PUT | reset pg recovery statistics |
scrub | PUT | scrub the monitor stores |
status | GET | show cluster status |
sync/force?validate1={--yes-i-really- mean-it}&validate2={--i-know-what-i-am- doing} | PUT | force sync of and clear monitor store |
tell?target=target( |
PUT | send a command to a specific daemon |
tell/ |
GET | report version of OSD |
version | GET | show mon daemon version |