/pulsar-admin-client-js

Missing admin client for Apache Pulsar. Autogenerated from Swagger definitions.

Primary LanguageJavaScriptMIT LicenseMIT

pulsar-admin-client-js

Missing admin client for Apache Pulsar. Autogenerated from Swagger definitions.

Motivation

At the time of May 26, 2022, the official Pulsar client for Node doesn't support Pulsar admin API that can be used for editing tenants, namespaces, etc.

For our project we needed it to setup better test environment.

Usage

npm i pulsar-admin-client
import * as pulsarAdmin from "pulsar-admin-client";

const pulsarAdminClient = new pulsarAdmin.Client({ BASE: "http://localhost:8080/admin/v2" });
  await pulsarAdminClient.tenants.createTenant(
    "new-tenant",
    { allowedClusters: ["standalone"] }
  );