4.7 Multitenancy Management Commands

Use the commands in Table 4-7 to manage tenants.


Table 4-7 Multitenancy Management Commands

Use this command... To... Use with WLST...

deprovisionTenant

Deprovisions a tenant from the metadata store.

Online

listTenants

Lists the tenants.

Online


4.7.1 deprovisionTenant

Deprovisions a tenant from the metadata store. All metadata associated with the tenant will be removed from the store

Syntax

deprovisionTenant(repository, partition, tenantName)

Argument Definition
repository

The name of the repository that contains the tenant.

partition

The name of the partition that contains the tenant.

tenantName

A unique name identifying the tenant to use for this operation.


Example

The following example deprovisions the tenant with tenantName tenant1:

wls:/weblogic/serverConfig> deprovisionTenant("mds-myrepos", "part1", "tenant1")
Executing operation: deprovisionTenant.
Tenant "tenant1" has been deprovisioned.

4.7.2 listTenants

Lists all tenants in an MDS Repository partition.

Syntax

listTenants(repository, partition)

Argument Definition
repository

The name of the repository that contains the tenants.

partition

The name of the partition that contains the tenants.


Example

The following example lists all tenants in the specified repository and partition:

wls:/weblogic/serverConfig> listTenants("mds-myrepos", "part1")
Executing operation: listTenants.
0  GLOBAL
1  tenant1
2  tenant2
3  tenant3