【发布时间】:2021-12-18 00:30:07
【问题描述】:
我正在尝试连接到 Neptune DB 并使用 CURL 命令获取顶点详细信息。我有它的shell脚本。但不知何故,可变数据并没有通过它 gremlin 查询。我有一个 Orgid.txt 文件,其中存在tenantid,我的 shell 脚本读取该文件并将其传递给“name”变量
#!/bin/bash
i=1
rm VerticesCount1
while IFS= read -r line
do
name="$line"
#echo "Orgid name is "$i": $name"
curl -X POST https://<Neptune_endpoint>:<port>/gremlin -d '{"gremlin":"g.V().has(\"system.tenantId\",\"$name\").count()"}' >> VerticesCount1
#printf "\n"
echo >> VerticesCount1
((i=i+1))
done < Orgid.txt
【问题讨论】:
标签: shell curl gremlin amazon-neptune