MCPcopy Create free account
hub / github.com/ceph/ceph / get

Method get

src/pybind/mgr/mgr_module.py:1497–1516  ·  view source on GitHub ↗

Called by the plugin to fetch named cluster-wide objects from ceph-mgr. :param str data_name: Valid things to fetch are osdmap_crush_map_text, osd_map, osd_map_tree, osd_map_crush, config, mon_map, fs_map, osd_metadata, pg_summary, io_rate, pg_dump,

(self, data_name: str, mutable: bool = False)

Source from the content-addressed store, hash-verified

1495
1496 @API.expose
1497 def get(self, data_name: str, mutable: bool = False) -> Any:
1498 """
1499 Called by the plugin to fetch named cluster-wide objects from ceph-mgr.
1500
1501 :param str data_name: Valid things to fetch are osdmap_crush_map_text,
1502 osd_map, osd_map_tree, osd_map_crush, config, mon_map, fs_map,
1503 osd_metadata, pg_summary, io_rate, pg_dump, df, osd_stats,
1504 health, mon_status, devices, device <devid>, pg_stats,
1505 pool_stats, pg_ready, osd_ping_times, mgr_map, mgr_ips,
1506 modified_config_options, service_map, mds_metadata,
1507 have_local_config_map, osd_pool_stats, pg_status.
1508 :param bool mutable: If True, returns a mutable copy of the data that can
1509 be modified safely. If False (default), returns read-only cached
1510 data (in case cached enabled) for better performance and cache protection.
1511
1512 Note:
1513 All these structures have their own JSON representations: experiment
1514 or look at the C++ ``dump()`` methods to learn about them.
1515 """
1516 return self._ceph_get(data_name, mutable)
1517
1518 @API.expose
1519 def erase(self, data_name: str) -> None:

Callers 15

pool_existsMethod · 0.95
have_enough_osdsMethod · 0.95
get_mgr_ipMethod · 0.95
get_pools_by_takeMethod · 0.45
get_ec_profileMethod · 0.45
find_takesMethod · 0.45
find_rootsMethod · 0.45
get_rule_rootMethod · 0.45

Calls 1

_ceph_getMethod · 0.80

Tested by

no test coverage detected