OpenStack endpoint information

If you need to find out the endpoint information for different OpenStack services, or the services running on the OpenStack installation, use the OpenStack service catalog. If you need to automate any OpenStack tasks or are integrating any other tools with OpenStack, catalog will also come in handy. The catalog lists services and endpoint information for each of them. The catalog may be different for each deployment.

Getting ready

Ensure that you are logged on to a correctly configured OpenStack client and can access the OpenStack environment as a user with admin privileges.

Refer to Chapter 2, The OpenStack Client, for details of setting up your environment to use OpenStack command-line client.

How to do it…

To list OpenStack catalog information, execute the following command:

openstack catalog list

How it works…

In OpenStack, different service API endpoints can be found out using the OpenStack catalog. The catalog will list all the OpenStack services that it knows about and their respective internal, admin, and public URLs. The catalog is also handy if you are trying to automate any of the OpenStack tasks. On the Command-Line Interface (CLI), list the available endpoints by running the following command:

openstack catalog list
How it works…

The output from our catalog command has been trunkated for this example. The full catalog command will list all the installed services.

Note

The service catalog will be different for each OpenStack installation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.149.180