如何使用WSO2 API Manager REST API(不是Publisher Web Portal)设置端点安全性
我正在使用WSO2 APIM 4.0.0。我想创建和发布一个API。根据文档,除了发布者Web门户外,还可以使用REST API来执行此操作。我认为,要完成此任务以下内容:应该完成:
- 通过使用https:// {apimhost}/api/am/am/publisher/v2/apis创建API
- ,使用https:// https:// /am/publisher/v2/apis/{apiid}/修订
- 版使用https:// {apimhost}/api/am/am/publisher/v2/apis/{apiid}/deploy-reviens
- 使用https发布API /{apimhost}/api/am/am/publisher/v2/apis/change-lifecycle
可能存在端点的情况。假设它是用基本验证确保的。一个人可以使用端点安全配置在发布者Web门户上轻松设置此设置,如下所示:
问题是如何使用Publisher(或另一个)REST API设置安全参数端点?是否有任何API为端点指定安全参数?
I am using wso2 apim 4.0.0. I would like to create and publish an api. According to the documentation, besides publisher web portal, one can do this by using rest api. I think, to fulfill this task followings should be done:
- Create the api by using https://{apimhost}/api/am/publisher/v2/apis
- Create a revision for the api using https://{apimhost}/api/am/publisher/v2/apis/{apiId}/revisions
- Deploy the revision using https://{apimhost}/api/am/publisher/v2/apis/{apiId}/deploy-revision
- Publish the api using https://{apimhost}/api/am/publisher/v2/apis/change-lifecycle
There might be situations where endpoints are secured. Let's say it is secured with basic auth. One can easily set this up on publisher web portal using endpoint security configurations as depicted below:
The question is how I can set up security parameters endpoints using publisher(or another) rest api? Is there any api to specify security parameters for endpoints?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过将
endpoint_security
块引入API创建请求主体,可以通过WSO2 API Manager REST API添加端点安全配置。Adding Endpoint Security configurations can be achieved via the WSO2 API Manager Publisher REST API by introducing the
endpoint_security
block to the API creation request body as defined below