Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section guides you through invoking and working with the TenantManagementService and the operations you can work within this service.

...

DescriptionAdds a new tenant.
Permission Level/permission/protected/manage/monitor/tenants
Input Parameters
ParameterTypeDescription
tenantInfoBeanTenantInfoBean Contains tenant related data
tenantInfoBean.tenantDomain StringThe domain name of the tenant
tenantInfoBean.active Boolean

True - activate the tenant

False- deactivate the tenant

tenantInfoBean.admin StringThe admin username
tenantInfoBean.adminPasswordStringThe admin password
tenantInfoBean.createdDateDateTimeThe date and time that the tenant was created
tenantInfoBean.emailStringThe email address of the tenant
tenantInfoBean.firstnameStringThe first name of the tenant
tenantInfoBean.lastnameStringThe last name of the tenant
tenantInfoBean.originatedService String-
tenantInfoBean.successKeyString-
tenantInfoBean.tenantDomainStringThe tenant domain
tenantInfoBean.tenantIdIntThe tenant ID
tenantInfoBean.usagePlanString-
Request
Expand
titleClick here to see the request
Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mgt.tenant.carbon.wso2.org" xmlns:xsd="http://beans.common.stratos.carbon.wso2.org/xsd">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:addTenant>
         <!--Optional:-->
         <ser:tenantInfoBean>
            <!--Optional:-->
            <xsd:active>?</xsd:active>
            <!--Optional:-->
            <xsd:admin>?</xsd:admin>
            <!--Optional:-->
            <xsd:adminPassword>?</xsd:adminPassword>
            <!--Optional:-->
            <xsd:createdDate>?</xsd:createdDate>
            <!--Optional:-->
            <xsd:email>?</xsd:email>
            <!--Optional:-->
            <xsd:firstname>?</xsd:firstname>
            <!--Optional:-->
            <xsd:lastname>?</xsd:lastname>
            <!--Optional:-->
            <xsd:originatedService>?</xsd:originatedService>
            <!--Optional:-->
            <xsd:successKey>?</xsd:successKey>
            <!--Optional:-->
            <xsd:tenantDomain>?</xsd:tenantDomain>
            <!--Optional:-->
            <xsd:tenantId>?</xsd:tenantId>
            <!--Optional:-->
            <xsd:usagePlan>?</xsd:usagePlan>
         </ser:tenantInfoBean>
      </ser:addTenant>
   </soapenv:Body>
</soapenv:Envelope>            
Response

None

addSkeletonTenant()
DescriptionAdds a new tenant without userstore operations. The tenant will not be persisted in user store level and can be used to trigger post-tenant listeners without actuall creating the tenant. 
Permission Level/permission/protected/manage/monitor/tenants
Input Parameters
ParameterTypeDescription
tenantInfoBeanTenantInfoBean Contains tenant related data
tenantInfoBean.tenantDomain StringThe domain name of the tenant
tenantInfoBean.active Boolean

True - activate the tenant

False- deactivate the tenant

tenantInfoBean.admin StringThe admin username
tenantInfoBean.adminPasswordStringThe admin password
tenantInfoBean.createdDateDateTimeThe date and time that the tenant was created
tenantInfoBean.emailStringThe email address of the tenant
tenantInfoBean.firstnameStringThe first name of the tenant
tenantInfoBean.lastnameStringThe last name of the tenant
tenantInfoBean.originatedService String-
tenantInfoBean.successKeyString-
tenantInfoBean.tenantDomainStringThe tenant domain
tenantInfoBean.tenantIdIntThe tenant ID
tenantInfoBean.usagePlanString-
Request
Expand
titleClick here to see the request
Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mgt.tenant.carbon.wso2.org" xmlns:xsd="http://beans.common.stratos.carbon.wso2.org/xsd">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:addSkeletonTenant>
         <!--Optional:-->
         <ser:tenantInfoBean>
            <!--Optional:-->
            <xsd:active>?</xsd:active>
            <!--Optional:-->
            <xsd:admin>?</xsd:admin>
            <!--Optional:-->
            <xsd:adminPassword>?</xsd:adminPassword>
            <!--Optional:-->
            <xsd:createdDate>?</xsd:createdDate>
            <!--Optional:-->
            <xsd:email>?</xsd:email>
            <!--Optional:-->
            <xsd:firstname>?</xsd:firstname>
            <!--Optional:-->
            <xsd:lastname>?</xsd:lastname>
            <!--Optional:-->
            <xsd:originatedService>?</xsd:originatedService>
            <!--Optional:-->
            <xsd:successKey>?</xsd:successKey>
            <!--Optional:-->
            <xsd:tenantDomain>?</xsd:tenantDomain>
            <!--Optional:-->
            <xsd:tenantId>?</xsd:tenantId>
            <!--Optional:-->
            <xsd:usagePlan>?</xsd:usagePlan>
         </ser:tenantInfoBean>
      </ser:addSkeletonTenant>
   </soapenv:Body>
</soapenv:Envelope>           
Response

None

activateTenant()
DescriptionActivates an existing tenant.
Permission Level/permission/protected/manage/modify/tenants
Input Parameters
ParameterTypeDescription
tenantDomain StringThe domain name of the tenant
Request
Expand
titleClick here to see the request
Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:ser="http://services.mgt.tenant.carbon.wso2.org">
    <soapenv:Header/>
    <soapenv:Body>
        <ser:activateTenant>
            <!­­Optional:­­>
            <ser:tenantDomain>example.com</ser:tenantDomain>
        </ser:activateTenant>
    </soapenv:Body>
</soapenv:Envelope>              
Response
Expand
titleClick here to see the response
Code Block
languagexml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:activateTenantResponse xmlns:ns="http://services.mgt.tenant.carbon.wso2.org">
            <ns:return xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema­instance" />
        </ns:activateTenantResponse>
    </soapenv:Body>
</soapenv:Envelope>

...