简体   繁体   English

在 Artifactory 上分发发布包时,边缘节点 map 如何到 jfrog CLI API?

[英]When distributing a release bundle on Artifactory how do the edge nodes map to the jfrog CLI API?

I'm trying to distribute my release bundles using the jfrog CLI and based on how we have setup our Artifactory instance I'm not sure how the web interface maps to the [CLI API][1].我正在尝试使用 jfrog CLI 分发我的发布包,并且基于我们如何设置 Artifactory 实例,我不确定 web 接口如何映射到 [CLI API][1]。 On the web interface it asks me to select the edge nodes I want to distribute to however, the API talks about sites, cities and country codes.在 web 界面上,它要求我 select 我想分发到的边缘节点,然而,API 谈论站点、城市和国家代码。 My goal is to distribute to a single one of the edge nodes.我的目标是分发到单个边缘节点。

[1]: https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Distribution#CLIforJFrogDistribution-DistributingaReleaseBundle%20( [1]: https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Distribution#CLIforJFrogDistribution-DistributingaReleaseBundle%20(

The difference between the UI and REST API/CLI is that: UI 和 REST API/CLI 的区别在于:

  1. Via UI the Distribution receives the list of available Destinations from Mission Control.通过 UI,Distribution 接收来自 Mission Control 的可用目的地列表。 Then, once you select any, it is automatically creates the pattern map that is submitted via REST API (/ui endpoint).然后,一旦您使用 select 任何一个,它就会自动创建通过 REST ZDB974238714CA8DE14Z4 提交的模式 map。
  2. REST API: you need to provide the Destinations in a form of patterns REST API:您需要以模式的形式提供目的地
  3. JFROG CLI: wrapping the API. JFROG CLI:包装 API。

The pattern build in the json (distribution_rules): json (distribution_rules) 中构建的模式:

  1. "site_name": Destination name or wildcard (*) “site_name”:目标名称或通配符 (*)
  2. Every Destination has a city and Country that can be set in advance (when the Destination is registered).每个目的地都有一个可以提前设置的城市和国家(当目的地注册时)。 Wildcard supported as well.也支持通配符。

So, in your case site == edge, city and country code are optional params.因此,在您的情况下,站点 == 边缘、城市和国家代码是可选参数。 See Mission Control API for getting list of Destinations: https://www.jfrog.com/confluence/display/JFROG/Mission+Control+REST+API#MissionControlRESTAPI-GetJPDList查看任务控制 API 获取目的地列表: https://www.jfrog.com/confluence/display/JFROG/Mission+Control+REST+API#MissionControlRESTAPI-GetJPDList

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

相关问题 如何使用Filespec捆绑JFrog Artifactory中的工件? - How Do I Bundle Artifacts in JFrog Artifactory Using Filespecs? 使用人工Jfrog CLI搜索时如何获取URL - How to get url when searching using the artifactory jfrog cli 如何使用JFrog CLI将构建和工件发布到Artifactory? - How do Publish Build and Artifact to Artifactory using JFrog CLI? 如何通过 Rest API 或任何 CLI 命令导出 jfrog 工件存储库? - how to export jfrog artifactory repositories through Rest API or any CLI command? 当我分发发布包时,附加到人工制品的人工制品属性是否复制到边缘节点 - Are artifactory properties attached to an artefact replicated to edge node when i distribute a release bundle Artifactory CLI-Jfrog-如何通过jfrog CLI获取二进制哈希码(SHA1,SHA256) - Artifactory CLI - Jfrog - How to get binary Hash code (SHA1, SHA256) through jfrog CLI 使用 JFrog CLI 时 Artifactory 下载中的奇怪行为 - Weird behavior in Artifactory download when using JFrog CLI 如何使用JFrog Artifactory打包或捆绑工件以进行配置管理? - how to package or bundle artifacts with JFrog Artifactory for configuration management purposes? Artifactory Jfrog CLI无法验证 - Artifactory jfrog cli unable to authenticate 如何使用JFrog CLI按版本号对Artifactory软件包搜索结果进行排序? - How to sort Artifactory package search result by version number with JFrog CLI?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM