Gremlin 查询取消 - Amazon Neptune
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

Gremlin 查询取消

要获取 Gremlin 查询的状态,请使用 HTTP GETPOST 来向 https://your-neptune-endpoint:port/gremlin/status 终端节点提出请求。

Gremlin 查询取消请求参数

  • cancelQuery – 取消时必需。此参数没有相应的值。

  • queryId – 要取消的正在运行的 Gremlin 查询的 ID。

Gremlin 查询取消示例

以下是使用 curl 命令取消查询的示例。

curl https://your-neptune-endpoint:port/gremlin/status \ --data-urlencode "cancelQuery" \ --data-urlencode "queryId=fb34cd3e-f37c-4d12-9cf2-03bb741bf54f"

成功取消返回 HTTP 200 OK。