Viewing cluster configuration options

Understand how to use the RESTful plug-in to view cluster configuration options and their values.

Viewing cluster configuration options using the curl command

On the command line, run the following command:
curl --silent --user USER 'https://CEPH_MANAGER:CEPH_MANAGER_PORT/api/cluster_conf'
Replace:
  • USER with the username.
  • CEPH_MANAGER with the IP address or short hostname of the node with the active ceph-mgr instance.
  • CEPH_MANAGER_PORT with the TCP port number.

    The default TCP port number is 8443.

Enter the user’s password when prompted.
Note: If using a self-signed certificate, use the --insecure option.
curl --silent --insecure --user USER 'https://CEPH_MANAGER:8080/api/cluster_conf'

Viewing cluster configuration options using Python

In the Python interpreter, enter the following:
$ python
>> import requests
>> result = requests.get('https://CEPH_MANAGER:8080/api/cluster_conf', auth=("USER", "PASSWORD"))
>> print result.json()
Replace:
  • CEPH_MANAGER with the IP address or short hostname of the node with the active ceph-mgr instance.
  • USER with the username.
  • PASSWORD with the user’s password.
Note: If using a self-signed certificate, use verify=False.
$ python
>> import requests
>> result = requests.get('https://CEPH_MANAGER:8080/api/cluster_conf', auth=("USER", "PASSWORD"), verify=False)
>> print result.json()

Viewing cluster configuration options using a web browser

In the web browser, go to https://CEPH_MANAGER:8080/api/cluster_conf.

Replace CEPH_MANAGER with the IP address or short hostname of the node with the active ceph-mgr instance.

Enter the username and password when prompted.