The Pulsar admin interface

    You can currently interact with the admin interface via:

    • Making HTTP calls against the admin REST API provided by Pulsar . For some restful apis, they might be redirected to topic owner brokers for servingwith , hence the HTTP callers should handle 307 Temporary Redirect. If you are using curl, you should specify -Lto handle redirections.

    Full documentation for this tool can be found in the doc.

    • A Java client interface.

    In this document, examples from each of the three available interfaces will be shown.

    Each of Pulsar's three admin interfaces—-the pulsar-admin CLI tool, the , and the REST API —-requires some special setup if you have enabled in your Pulsar instance.

    You can find documentation for the REST API exposed by Pulsar in this reference document.

    To use the Java admin API, instantiate a object, specifying a URL for a Pulsar broker and a . Here's a minimal example using localhost: