简体   繁体   English

在完全分布式环境中为 API 管理器添加 WSO2 apimcli 环境并使用 wso2 身份服务器作为密钥管理器

[英]WSO2 apimcli environment adding for API manager in fully distributed environment and using wso2 Identity server as key manager

I'm trying to create an environment for API manager in fully distributed Environment and using WSO2 identity server as key manager.我正在尝试在完全分布式环境中为 API 管理器创建一个环境,并使用 WSO2 身份服务器作为密钥管理器。 Any inputs for creation of environments in fully distributed environment?在完全分布式环境中创建环境的任何输入?

Note: using WSO2 API Manager 2.6.0 and APIMCLI tool 2.0.3 and supported .war file.注意:使用 WSO2 API Manager 2.6.0 和 APIMCLI 工具 2.0.3 和支持的 .war 文件。

You can follow [1] to configure WSO2 IS as Key manager.您可以按照 [1] 将 WSO2 IS 配置为密钥管理器。 Then follow [2] to configure API Manager as a distributed setup.然后按照 [2] 将 API Manager 配置为分布式设置。 In there, use WSO2 IS as the key manager.在那里,使用 WSO2 IS 作为密钥管理器。

  1. https://docs.wso2.com/display/AM260/Configuring+WSO2+Identity+Server+as+a+Key+Manager https://docs.wso2.com/display/AM260/Configuring+WSO2+Identity+Server+as+a+Key+Manager
  2. https://docs.wso2.com/display/AM260/Deploying+WSO2+API-M+in+a+Distributed+Setup https://docs.wso2.com/display/AM260/Deploying+WSO2+API-M+in+a+Distributed+Setup

You can follow the documents provided by 'Pubci' to deploy a single environment in a distributed manner.您可以按照“Pubci”提供的文档以分布式方式部署单个环境。 I assume your requirement is to then export and import the APIs created in this environment to another environment, where the CLI tool can be set up for the purpose including both the environments in it.我假设您的要求是将在此环境中创建的 API 导出和导入到另一个环境,在其中可以设置 CLI 工具,包括其中的两个环境。

Thanks for the valuable suggestions.感谢您提出宝贵的建议。

We have distributed environment as below and trying to export published API from the same.我们有如下分布式环境,并尝试从中导出已发布的 API。

  1. Identity Server as WSO2 KeyManager -> https://key-m:9443/carbon身份服务器作为 WSO2 KeyManager -> https://key-m:9443/carbon
  2. WSO2 Traffic and Publisher --> https://traffic:9443/carbon , https://publisher:9444/carbon WSO2 流量和发布者 --> https://traffic:9443/carbon , https://publisher:9444/carbon
  3. WSO2 Internal Gateway --> https://internal-gw:9443/carbon WSO2 内部网关 --> https://internal-gw:9443/carbon
  4. WSO2 External Gateway --> https://external-gw:9443/carbon WSO2 外部网关 --> https://external-gw:9443/carbon
  5. WSO2 Store --> https://store:9443/carbon WSO2 商店 --> https://store:9443/carbon

We have deployed "api-import-export-2.6.0-v14.war" in https://external-gw:9443/carbon and cli tool in the same server.我们已经在https://external-gw:9443/carbon和 cli 工具中部署了“api-import-export-2.6.0-v14.war”在同一台服务器上。

We have added environment as below,我们添加了如下环境,

apimcli add-env -n dev \\ --registration https://store:9443/client-registration/v0.14/register \\ --apim https://external-gw:9443 \\ --token https://key-m:9443/token \\ --import-export https://external-gw:9443/api-import-export-2.6.0-v10 \\ --admin https://external-gw:9443/api/am/admin/v0.14 \\ --api_list https://publisher:9444/api/am/publisher/v0.14/apis \\ --app_list https://store:9443/api/am/store/v0.14/applications apimcli add-env -n dev \\ --registration https://store:9443/client-registration/v0.14/register \\ --apim https://external-gw:9443 \\ --token https://key -m:9443/token \\ --import-export https://external-gw:9443/api-import-export-2.6.0-v10 \\ --admin https://external-gw:9443/api/am /admin/v0.14 \\ --api_list https://publisher:9444/api/am/publisher/v0.14/apis \\ --app_list https://store:9443/api/am/store/v0.14 /应用

When we tried to login through cli tool to dev environment, we are getting "403:forbidden".当我们尝试通过 cli 工具登录到开发环境时,我们收到“403:forbidden”。

Suspecting while creating environment, we might have mis-configured urls for registration/apim/token/import-import/admin/api_list/app_list.怀疑在创建环境时,我们可能错误配置了用于注册/apim/token/import-import/admin/api_list/app_list 的 url。

Any help will be highly appreciated.任何帮助将不胜感激。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM