无法从OnPrem服务器下载应用程序。

huangapple go评论60阅读模式
英文:

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 GroupBusiness 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 field Business Group ID at the Access Management->Business Group. The guide points to the Organization Id field but that seems to be replaced by Business Group ID;
  • X-ANYPNT-ENV-ID header from field Client ID at Access Management->Business Group-> tab Environments-> tab Settings.

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.

huangapple
  • 本文由 发表于 2023年8月9日 01:29:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76861929.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定