sesam - How do i get the public IP for my Sesam Instance
问题描述
I need to get the external IP for my Sesam instance, for firewall reasons. It's not available through the GUI and i do not have ssh to the box.
Is there any other way of doing this except contacting support?
解决方案
您可以使用 URL 系统来实现这一点,有多种方法,但这是我使用过的一种。
添加以下系统:
{
"_id": "IP",
"type": "system:url",
"url_pattern": "http://ip-api.com/%s"
}
添加以下管道:
{
"_id": "ipjson",
"type": "pipe",
"name": "IP",
"source": {
"type": "json",
"system": "IP",
"url": "json"
},
"transform": {
"type": "dtl",
"rules": {
"default": [
["add", "_id", "External-IP"],
["rename", "query", "IP"]
]
}
}
}
这应该输出到“ipjson”数据集,你会在那里找到 IP。
请注意,您的 IP 可能会发生变化。
推荐阅读
- linux - 如何结束对特定输出的期望交互?
- python - 在 VS CODE 中设置 cwd
- c# - Unity C#如何避免点击并仅通过滑动来按字符移动
- python - Python/Selenium - 如何将 JavaScript 创建的 CSV 直接保存到变量中
- vb.net - 数据表到水晶报表
- java - Java 创建应用程序单例的简单方法
- ios14 - 没有可观察对象的方法
- jquery - jQuery - 在按钮单击时增加调整 div 的大小
- javafx - 使用 Yocto 为嵌入式系统构建 OpenJFX
- azure-active-directory - azure 中的自定义 OAuth 范围