Properties, like namespaces, can be managed using the admin API. There are currently two configurable aspects of properties:
You can list all of the properties associated with an {% popover instance %} using the list
subcommand:
$ pulsar-admin properties list
That will return a simple list, like this:
my-property-1 my-property-2
You can create a new property using the create
subcommand:
$ pulsar-admin properties create my-property
When creating a property, you can assign admin roles using the -r
/--admin-roles
flag. You can specify multiple roles as a comma-separated list. Here are some examples:
$ pulsar-admin properties create my-property \ --admin-roles role1,role2,role3 $ pulsar-admin properties create my-property \ -r role1
You can see a property's configuration as a JSON object using the get
subcommand and specifying the name of the property:
$ pulsar-admin properties get my-property { "adminRoles": [ "admin1", "admin2" ], "allowedClusters": [ "cl1", "cl2" ] }
You can delete a property using the delete
subcommand and specifying the property name:
$ pulsar-admin properties delete my-property
You can update a property's configuration using the update
subcommand