WSO2:配置和发布给特定的租户

WSO2: configuring and publishing to specific tenants

您好,我正在使用 WSO2 API Manager 1.9.0。我创建了一个API,我想将它发布给特定的租户,我还指定它只对我创建的租户可用。我已经在管理员 (http://:9443/carbon) 上创建了我的租户并配置了外部商店,但是当我尝试发布时我总是无法发布 API 到外部商店。不确定我在配置租户和外部商店之间遗漏了什么。

无视, id="tenantName" 必须与租户名称相同

http://localhost:9763/store

    <ExternalAPIStore **id="Store2"** type="wso2" className="org.wso2.carbon.apimgt.impl.publishers.WSO2APIPublisher">
        <DisplayName>Store1</DisplayName>
        <Endpoint>http://localhost:9763/store</Endpoint>
        <Username>xxxx</Username>
        <Password>xxxx</Password>
    </ExternalAPIStore>

您的端点应该是外部存储的端点。

http://localhost:9763/store

凭据应该是(外部商店的)租户的用户名和密码。 id 可以是你喜欢的任何东西, Display 是将要显示的名称,也可以是你喜欢的任何东西。

如果您尝试从超级租户模式发布到外部商店的租户模式,您必须在超级租户的外部-api-stores.xml中进行配置。或者,如果您需要在外部商店中从租户发布到租户,则在租户中。您必须相应地登录到管理控制台。

请参考这个documentation