【问题标题】:List Mule Apps and their IP addresses列出 Mule 应用程序及其 IP 地址
【发布时间】:2022-11-03 02:22:25
【问题描述】:

有没有办法列出 Cloudhub 中 VPC 中部署的所有 Mule 应用程序,以及它们的私有 IP 地址作为报告(可能在监控中)?我知道私有 IP 地址是动态的并且会发生变化,但是有没有办法获得这样的报告?

【问题讨论】:

    标签: mulesoft cloudhub


    【解决方案1】:

    没有内置的方法可以做到这一点,但是您可以将信息与脚本或应用程序一起收集。我可以给你高层指导。对于与 VPC 关联的每个环境,您需要 get the list of applications,获取部署区域以确认它与 VPC 区域匹配(以防多区域部署已启用)和状态以确保它正在运行。您可以使用 CloudHub 1.0 REST API:https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/cloudhub-api/minor/1.0/pages/home/

    然后使用生成的应用程序列表,您可以查询DNS names used by CloudHub 1.0

    • mule-worker-myapp.region.cloudhub.io 获取公共 IP
    • mule-worker-internal-myapp.region.cloudhub.io 获取VPC内部的IP

    【讨论】:

      猜你喜欢
      • 2013-05-23
      • 1970-01-01
      • 1970-01-01
      • 2018-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-21
      • 2014-03-31
      相关资源
      最近更新 更多