简体   繁体   English

WSO2 apim 从开发环境到 QA/生产环境从 APIM 发布者导出/导入多个 api

[英]WSO2 apim exporting/importing multiple apis from APIM publisher from develop environment to QA / production environment

How to do a WSO2 apim exporting/importing of multiple apis from APIM publisher from develop environment to QA / production environment .如何执行 WSO2 apim 从开发环境到 QA/生产环境的 APIM 发布者的多个 api 的导出/导入。 Say I have a 15 Apis defined in APIM publisher with params , need these to be exported to another environment where another wso2 APIM is hosted in that environment with a different db in there.假设我在 APIM 发布者中定义了一个带有 params 的 15 个 API,需要将它们导出到另一个环境中,在该环境中另一个 wso2 APIM 托管在该环境中,并在其中具有不同的数据库。

API Import-Export tool can only be used to migrate APIs in between different environments of the same APIM version. API 导入导出工具只能用于在同一 APIM 版本的不同环境之间迁移 API。 This is not supported for Migrating APIs across different APIM versions.跨不同 APIM 版本迁移 API 不支持此操作。 Therefore, It is really suit for your requirement.因此,它非常适合您的要求。

But, we can export multiple APIs at once using the WSO2 API Manager import/export tool.但是,我们可以使用 WSO2 API Manager 导入/导出工具一次导出多个 API。 Using the command in the following documentation[1] you can export all APIs of a particular tenant.使用以下文档中的命令[1],您可以导出特定租户的所有 API。

But importing multiple APIs is not supported at all.但是根本不支持导入多个 API。

Further, exporting or importing number of APIs as per our choice(like two, three APIs) is also not possible right now.此外,现在也不可能根据我们的选择导出或导入一定数量的 API(例如两个、三个 API)。

[1] https://apim.docs.wso2.com/en/latest/learn/api-controller/migrating-apis-to-different-environments/#export-all-the-apis-of-a-tenant-at-once [1] https://apim.docs.wso2.com/en/latest/learn/api-controller/migrating-apis-to-different-environments/#export-all-the-apis-of-a-tenant-一下子

You can use the CLI tool for this .您可以为此使用 CLI 工具。 From that wso2 apim allows you to import/export both APIs and Applications among multiple environments on the same version.从那个 wso2 apim 允许您在同一版本的多个环境中导入/导出 API 和应用程序。

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

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