public interface Tenants
| Modifier and Type | Method and Description |
|---|---|
void |
createTenant(String tenant,
TenantInfo config)
Create a new tenant.
|
void |
deleteTenant(String tenant)
Delete an existing tenant.
|
TenantInfo |
getTenantInfo(String tenant)
Get the config of the tenant.
|
List<String> |
getTenants()
Get the list of tenants.
|
void |
updateTenant(String tenant,
TenantInfo config)
Update the admins for a tenant.
|
List<String> getTenants() throws PulsarAdminException
Response Example:
["my-tenant", "other-tenant", "third-tenant"]
PulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException - Unexpected errorTenantInfo getTenantInfo(String tenant) throws PulsarAdminException
Get the admin configuration for a given tenant.
tenant - Tenant namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant does not existPulsarAdminException - Unexpected errorvoid createTenant(String tenant, TenantInfo config) throws PulsarAdminException
Provisions a new tenant. This operation requires Pulsar super-user privileges.
tenant - Tenant nameconfig - Config dataPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.ConflictException - Tenant already existsPulsarAdminException.PreconditionFailedException - Tenant name is not validPulsarAdminException - Unexpected errorvoid updateTenant(String tenant, TenantInfo config) throws PulsarAdminException
This operation requires Pulsar super-user privileges.
tenant - Tenant nameconfig - Config dataPulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - Tenant does not existPulsarAdminException - Unexpected errorvoid deleteTenant(String tenant) throws PulsarAdminException
Delete a tenant and all namespaces and topics under it.
tenant - Tenant namePulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException.NotFoundException - The tenant does not existPulsarAdminException.ConflictException - The tenant still has active namespacesPulsarAdminException - Unexpected errorCopyright © 2017–2018 Apache Software Foundation. All rights reserved.