在 WSO2 碳中删除租户的最佳方法是什么? [英] How is the best way to delete a tenant in WSO2 carbon?
问题描述
我正在尝试使用TenantMgtAdminServiceStub"类中的deleteTenant"方法删除租户,但没有奏效,显示错误.我想知道这是否是删除租户的最佳方式......我正在寻求帮助,我发现了这个 post 但每次我想删除租户时都不可能重新启动服务器.
I'm trying to delete a tenant using the method "deleteTenant" in the class "TenantMgtAdminServiceStub" but it didn't works, it shows an error. I'm wondering if this is the best way to delete a tenant... I was looking for help and I found this post but is not a possibility restart the server every time I want to delete a tenant.
我发布此内容的前几天,其中包含我在使用时遇到的错误那个方法.
Days before I post this with the error I got when I use that method.
谢谢!
推荐答案
从 UI 中创建的租户无法从 UI 中删除.但是,使用 RemoteTenantManagerService 的 deleteTenant 操作我们可以删除一个租户.这是基于 API-Manager1.9.0 之类的产品
Tenants once created from the UI cannot be deleted from the UI. However, Using the deleteTenant operation of RemoteTenantManagerService we can delete a tenant. This am basing on a product like API-Manager1.9.0
以 https://localhost:9443/services/RemoteTenantManagerService?wsdl 访问此 RemoteTenantManagerService请按照以下步骤操作
To access this RemoteTenantManagerService as https://localhost:9443/services/RemoteTenantManagerService?wsdl follow the following steps
step1:在 vi ../repository/conf/carbon.xml 中将以下属性设置为 false <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
step1: set the following property to false in vi ../repository/conf/carbon.xml <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
step2:启动服务器,然后访问https://localhost:9443/services/RemoteTenantManagerService?wsdl 通过肥皂用户界面
step2: start the server and then access https://localhost:9443/services/RemoteTenantManagerService?wsdl via soap ui
step3:如果创建了一个租户,每个租户都应该有一个我们需要传递的租户 ID
step3: if a tenant is created each tenant should have a tenant id which we need to pass
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.um.carbon.wso2.org">
<soapenv:Header/>
<soapenv:Body>
<ser:deleteTenant>
<!--Optional:-->
<ser:tenantId>?</ser:tenantId>
</ser:deleteTenant>
</soapenv:Body>
</soapenv:Envelope>
注意:如果要创建同名租户需要重启服务器
Note: if you are to create a tenant with the same name you will need to restart the server
问候,shavantha
regards,shavantha
这篇关于在 WSO2 碳中删除租户的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!