-cluster
or -c
option to specify the target cluster for the tenant.
This example shows how to create a tenant named example-tenant
for the example-cluster
cluster with the admin role. If you do not configure the admin role when creating the tenant, you cannot perform follow-up operations on the target tenant, such as updating or deleting tenants.
Input
pulsarctl tenants update
command to update the target tenant.
This example shows how to update the admin role for example-tenant
.
Input
example-tenant
.
Input
example-tenant
as an example. For details about how to create a tenant, see work with tenants.example-ns
for example-tenant
.
Input
example-tenant/example-ns
.
Input
example-tenant/example-ns
from the current serving broker.
Input
example-tenant/example-ns
.
Input
pulsarctl topics create TOPIC_NAME
command to create a topic.
0
.
This example shows how to create a non-partitioned topic in the example-tenant/example-ns
namespace.
Input
example-tenant/example-ns
namespace.
Input
pulsarctl topics get TOPIC_NAME
command to get information about a specific topic.
example-tenant/example-ns
namespace.
Input
topic-test
topic.
Input
pulsarctl topics delete TOPIC_NAME
command to delete a partitioned topic. To delete a non-partitioned topic, you need to set the --non-partitioned
parameter.
test-topic
partitioned topic.
Input
topic-test
non-partitioned topic.
Input