英文:
Unable to download application from OnPrem Servers
问题
我需要更改由Anypoint门户创建的Mule代理API。为了下载它,我正在按照这个官方指南进行操作。
为了获取JAR文件,我需要像这样调用CURL命令:
curl -X GET \
https://anypoint.mulesoft.com/hybrid/api/v1/applications/<APP_ID>/artifact \
-H 'Authorization: bearer <BEARER_TOKEN>' \
-H 'X-ANYPNT-ENV-ID: <ENVIRONMENT_ID>' \
-H 'X-ANYPNT-ORG-ID: <ORGANIZATION_ID>' \
-o '<DOWNLOAD_PATH>'
我已经获取到:
- 从指南中发布的URL中获取到了App_ID。
- 使用端点
https://anypoint.mulesoft.com/accounts/login
成功获取到了令牌。 - 从
Access Management
->Business Group
的Business Group ID
字段获取到了X-ANYPNT-ORG-ID
头部。指南中指向的是Organization Id
字段,但似乎已被Business Group ID
替代。 - 从
Access Management
->Business Group
->Environments
选项卡->Settings
选项卡的Client ID
字段获取到了X-ANYPNT-ENV-ID
头部。
然而,当我尝试使用CURL获取JAR文件时,我得到了以下错误信息:
> {"message":"Please provide correct header tokens for Authorization, Organization, and Environment."}
我无法确定哪个元素是错误的。我已经多次检查了每个元素。更改授权会得到与更改其他任何元素相同的错误信息。
也许值得一提的是,我的组织是公司组织的子组织,而我无法访问公司组织。
如果有其他获取JAR文件的方法也可以接受。
英文:
I need to change a Mule Proxy API created by the Anypoint portal.
To download it I am following the this official guide.
To get the JAR file I need to invoke CURL like this:
curl -X GET \
https://anypoint.mulesoft.com/hybrid/api/v1/applications/<APP_ID>/artifact \
-H 'Authorization: bearer <BEARER_TOKEN>' \
-H 'X-ANYPNT-ENV-ID: <ENVIRONMENT_ID>' \
-H 'X-ANYPNT-ORG-ID: <ORGANIZATION_ID>' \
-o '<DOWNLOAD_PATH>'
I got:
- App_ID from the url as posted in the guide.
- the token successfully using endpoint
https://anypoint.mulesoft.com/accounts/login
X-ANYPNT-ORG-ID
header from fieldBusiness Group ID
at theAccess Management
->Business Group
. The guide points to theOrganization Id
field but that seems to be replaced byBusiness Group ID
;X-ANYPNT-ENV-ID
header from fieldClient ID
atAccess Management
->Business Group
-> tabEnvironments
-> tabSettings
.
Yet, when i try to get the JAR file using CURL i get:
> {"message":"Please provide correct header tokens for Authorization, Organization, and Environment."}
I can't figure it out which one element is wrong. I already reviewed each one a few times. Messing with authorization gives the same message that messing with any other element.
Maybe worth mention, my organization is a sub organization from the corporate organization, which is not available to me.
If there is other way to get the JAR that could be acceptable too.
答案1
得分: 3
使用该过程应该可以工作,但它的目的是下载通过Runtime Manager部署的当前应用程序。如果您想下载在API Manager中创建的自动生成的代理,您可以按照文档中的步骤从API Manager中直接下载:
> 您可以按照以下步骤从API Manager中下载在API Manager中生成的代理。
>
> 1. 导航到Anypoint Platform > API Manager。
> 2. 在API Administration中,单击要下载其代理的API实例。
> 3. 单击操作,然后选择下载代理。
请注意,您分享的链接是MuleSoft支持团队根据实际经验创建的知识文章,而不是正式的文档链接。
英文:
Using that procedure should work but it is meant to download the current application deployed through Runtime Manager. If you want to download an autogenerated proxy created in API Manager you can simply download it from API Manager following the procedure in the documentation:
> You can download a proxy that you generated in API Manager by
> following this procedure.
>
> 1. Navigate to Anypoint Platform > API Manager.
> 1. In API Administration, click the API instance whose proxy you want to download.
> 1. Click Actions and select Download Proxy.
Note that the link you shared is a Knowledge Article created by MuleSoft Support team in base to actual experience, not a formal documentation link.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论