选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

ListQueries

聚焦模式
ListQueries - Neptune Analytics
此页面尚未翻译为您的语言。 请求翻译

ListQueries API fetches the list of running/waiting/cancelling queries on the graph.

ListQueries syntax

aws neptune-graph list-queries \ --graph-identifier <graph-id> \ --region <region> \ --max-results <result_count> --state [all | running | waiting | cancelling]

ListQueries inputs

  • graph-identifier (required)

    Type: String

    Identifier representing your graph.

  • region (required)

    Type: String

    Region where the graph is present.

  • max-results (required)

    Type: Integer

    The maximum number of results to be fetched by the API.

  • state (optional)

    Type: String

    Supported values: all | running | waiting | cancelling

    If state parameter is not specified, the API fetches all types.

ListQueries outputs

# Sample Response { "queries": [ { "id": "130ab841-8b4b-46c3-afbe-af00274c7fd9", "queryString": "MATCH p=(n)-[*]-(m) RETURN p;", "waited": 0, "elapsed": 1686, "state": "RUNNING" } ] }

The output contains a list of query objects, each containing:

  • id: String - representing the unique identifier of the query.

  • queryString: String - The actual query text. The queryString may be truncated if the actual query string is too long.

  • waited: Integer - The time in milliseconds for which the query has waited in the waiting queue before being picked up by a worker thread.

  • elapsed: Integer - The time in milliseconds representing the running time of the query.

  • state: Current state of the query (running | waiting | cancelling).

The default list order is queries that are running, followed by waiting and cancelling.

ListQueries Examples

AWS CLI
aws neptune-graph list-queries \ --graph-identifier <graph-id> \ --region us-east-1 \ --max-results 200 --state waiting
AWSCURL
awscurl -X GET "https://<graph-id>.<endpoint>/queries?state=WAITING&maxResults=200" \ -H "Content-Type: application/x-www-form-urlencoded" \ --region us-east-1 \ --service neptune-graph
aws neptune-graph list-queries \ --graph-identifier <graph-id> \ --region us-east-1 \ --max-results 200 --state waiting

本页内容

下一主题:

GetQuery

上一主题:

ExecuteQuery
隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。