

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

# 使用亚马逊 Neptune 简介 APIs
<a name="using-neptune-apis"></a>

Amazon Neptune 管理 APIs 为创建、管理和删除 Neptune 数据库集群和实例提供 SDK 支持，而 Neptune 数据则 APIs 提供 SDK 支持，用于将数据加载到图表中、运行查询、获取图表中数据的相关信息以及运行机器学习操作。 APIs它们适用于所有 SDK 语言。通过自动签署 API 请求，它们非常简单地将 Neptune 集成到应用程序中。

本页提供有关如何使用它们的信息 APIs。

## IAM 操作的名称与 Neptune 数据 API SDK 的名称不同
<a name="neptune-apis-shared-iam-actions"></a>

当您在启用了 IAM 身份验证的集群上调用 Neptune API 方法时，您必须为进行调用的用户或角色附加一个 IAM policy，从而为要执行的操作提供权限。您可以使用相应的 [IAM 操作](iam-dp-actions.md)在策略中设置这些权限。还可以使用 [IAM 条件键](iam-data-condition-keys.md)限制可以采取的操作。

大多数 IAM 操作与其对应的 API 方法同名，但数据 API 中的某些方法具有不同的名称，因为有些方法由多个方法共享。下表列出了数据方法及其对应的 IAM 操作：


| 数据 API 操作名称 | IAM 通信信息 | 
| --- | --- | 
| [CancelGremlinQuery](https://docs.aws.amazon.com/neptune/latest/data-api/API_CancelGremlinQuery.html)（cancel\$1gremlin\$1query） | *操作：*`neptune-db:CancelQuery` | 
|  [CancelLoaderJob](https://docs.aws.amazon.com/neptune/latest/data-api/API_CancelLoaderJob.html)（取消加载器任务）  | *操作：*`neptune-db:CancelLoaderJob` | 
| [取消 MLDataProcessingJob（取消](https://docs.aws.amazon.com/neptune/latest/data-api/API_CancelMLDataProcessingJob.html) \$1ml\$1data\$1processing\$1job） | *操作：*`neptune-db:CancelMLDataProcessingJob` | 
| [取消 MLModelTrainingJob（取消](https://docs.aws.amazon.com/neptune/latest/data-api/API_CancelMLModelTrainingJob.html) \$1ml\$1model\$1training\$1job） | *操作：*`neptune-db:CancelMLModelTrainingJob` | 
| [CancelOpenCypherQuery](https://docs.aws.amazon.com/neptune/latest/data-api/API_CancelOpenCypherQuery.html)（cancel\$1open\$1cypher\$1query） | *操作：*`neptune-db:CancelQuery` | 
| [创建MLEndpoint（创建](https://docs.aws.amazon.com/neptune/latest/data-api/API_CreateMLEndpoint.html) \$1ml\$1endpoint） | *操作：*`neptune-db:CreateMLEndpoint` | 
| [删除MLEndpoint（delet](https://docs.aws.amazon.com/neptune/latest/data-api/API_DeleteMLEndpoint.html) e\$1ml\$1endpoint） | *操作：*`neptune-db:DeleteMLEndpoint` | 
| [DeletePropertygraphStatistics](https://docs.aws.amazon.com/neptune/latest/data-api/API_DeletePropertygraphStatistics)（删除属性图表\$1统计信息） | *操作：*`neptune-db:DeleteStatistics` | 
| [DeleteSparqlStatistics](https://docs.aws.amazon.com/neptune/latest/data-api/API_DeleteSparqlStatistics)（delete\$1sparql\$1statistics） | *操作：*`neptune-db:DeleteStatistics` | 
| [ExecuteFastReset](https://docs.aws.amazon.com/neptune/latest/data-api/API_ExecuteFastReset)execute\$1fast\$1reset () | *操作：*`neptune-db:ResetDatabase` | 
| [ExecuteGremlinExplainQuery](https://docs.aws.amazon.com/neptune/latest/data-api/API_ExecuteGremlinExplainQuery)（execute\$1gremlin\$1explain\$1query） |  *操作：* [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/neptune/latest/userguide/using-neptune-apis.html) *条件键：*`neptune-db:QueryLanguage:Gremlin`  | 
| [ExecuteGremlinProfileQuery](https://docs.aws.amazon.com/neptune/latest/data-api/API_ExecuteGremlinProfileQuery)（execute\$1gremlin\$1profile\$1query） |  *操作：*`neptune-db:ReadDataViaQuery` *条件键：*`neptune-db:QueryLanguage:Gremlin`  | 
| [ExecuteGremlinQuery](https://docs.aws.amazon.com/neptune/latest/data-api/API_ExecuteGremlinQuery)（execute\$1gremlin\$1query） |  *操作：* [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/neptune/latest/userguide/using-neptune-apis.html) *条件键：*`neptune-db:QueryLanguage:Gremlin`  | 
| [ExecuteOpenCypherExplainQuery](https://docs.aws.amazon.com/neptune/latest/data-api/API_ExecuteOpenCypherExplainQuery)（execute\$1open\$1cypher\$1expher\$1expher\$1 |  *操作：*`neptune-db:ReadDataViaQuery` *条件键：*`neptune-db:QueryLanguage:OpenCypher`  | 
| [ExecuteOpenCypherQuery](https://docs.aws.amazon.com/neptune/latest/data-api/API_ExecuteOpenCypherQuery)（execute\$1open\$1cypher\$1query） |  *操作：* [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/neptune/latest/userguide/using-neptune-apis.html) *条件键：*`neptune-db:QueryLanguage:OpenCypher`  | 
| [GetEngineStatus](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetEngineStatus.html)（获取引擎状态） | *操作：*`neptune-db:GetEngineStatus` | 
| [GetGremlinQueryStatus](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetGremlinQueryStatus)(get\$1gremlin\$1query\$1status) |  *操作：*`neptune-db::GetQueryStatus` *条件键：*`neptune-db:QueryLanguage:Gremlin`  | 
| [GetLoaderJobStatus](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetLoaderJobStatus.html)（获取加载器任务状态） | *操作：*`neptune-db:GetLoaderJobStatus` | 
| G@@ [et MLData ProcessingJob (获取](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetMLDataProcessingJob) \$1ml\$1data\$1processing\$1job) | *操作：*`neptune-db:GetMLDataProcessingJobStatus` | 
| [获取 MLEndpoint (获取](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetMLEndpoint) \$1ml\$1endpoint) | *操作：*`neptune-db:GetMLEndpointStatus` | 
| G@@ [et MLModel TrainingJob](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetMLModelTrainingJob) (get\$1ml\$1model\$1training\$1job) | *操作：*`neptune-db:GetMLModelTrainingJobStatus` | 
| [获取 MLModel TransformJob](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetMLModelTransformJob) (get\$1ml\$1model\$1transform\$1job) | *操作：*`neptune-db:GetMLModelTransformJobStatus` | 
| [GetOpenCypherQueryStatus](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetOpenCypherQueryStatus)（获取\$1open\$1cypher\$1query\$1status） |  *操作：*`neptune-db::GetQueryStatus` *条件键：*`neptune-db:QueryLanguage:OpenCypher`  | 
| [GetPropertygraphStatistics](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetPropertygraphStatistics)（获取属性图\$1统计信息） | *操作：*`neptune-db:GetStatisticsStatus` | `` | 
| [GetPropertygraphStream](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetPropertygraphStream)（get\$1propertygraph\$1stre |  *操作：*`neptune-db:GetStreamRecords` *条件键：* [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/neptune/latest/userguide/using-neptune-apis.html)  | 
| [GetPropertygraphSummary](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetPropertygraphSummary)（获取属性图摘要） | *操作：*`neptune-db:GetGraphSummary` | 
| [获取RDFGraph摘要](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetRDFGraphSummary)（get\$1rdf\$1graph\$1summary） | *操作：*`neptune-db:GetGraphSummary` | 
| [GetSparqlStatistics](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetSparqlStatistics)(get\$1sparql\$1statistics) | *操作：*`neptune-db:GetStatisticsStatus` | 
| [GetSparqlStream](https://docs.aws.amazon.com/neptune/latest/data-api/API_GetSparqlStream)(get\$1sparql\$1stream) |  *操作：*`neptune-db::GetStreamRecords` *条件键：*`neptune-db:QueryLanguage:Sparql`  | 
| [ListGremlinQueries](https://docs.aws.amazon.com/neptune/latest/data-api/API_ListGremlinQueries)（list\$1gremlin\$1queries） |  *操作：*`neptune-db::GetQueryStatus` *条件键：*`neptune-db:QueryLanguage:Gremlin`  | 
| [列表MLEndpoints（列表](https://docs.aws.amazon.com/neptune/latest/data-api/API_ListMLEndpoints.html) \$1ml\$1endpoints） | *操作：*`neptune-db:ListMLEndpoints` | `` | 
| [列表 MLModel TrainingJobs](https://docs.aws.amazon.com/neptune/latest/data-api/API_ListMLModelTrainingJobs.html)（list\$1ml\$1model\$1training\$1jobs） | *操作：*`neptune-db:ListMLModelTrainingJobs` | 
| [列表 MLModel TransformJobs](https://docs.aws.amazon.com/neptune/latest/data-api/API_ListMLModelTransformJobs.html)（list\$1ml\$1model\$1transform\$1jobs） | *操作：*`neptune-db:ListMLModelTransformJobs` | 
| [ListOpenCypherQueries](https://docs.aws.amazon.com/neptune/latest/data-api/API_ListOpenCypherQueries)（list\$1open\$1cypher\$1queries） |  *操作：*`neptune-db::GetQueryStatus` *条件键：*`neptune-db:QueryLanguage:OpenCypher`  | 
| [ManagePropertygraphStatistics](https://docs.aws.amazon.com/neptune/latest/data-api/API_ManagePropertygraphStatistics)（管理\$1属性图\$1统计信息） | *操作：*`neptune-db:ManageStatistics` | 
| [ManageSparqlStatistics](https://docs.aws.amazon.com/neptune/latest/data-api/API_ManageSparqlStatistics)（manage\$1sparql\$1statistics） | *操作：*`neptune-db:ManageStatistics` | 
| [StartLoaderJob](https://docs.aws.amazon.com/neptune/latest/data-api/API_StartLoaderJob.html)（start\$1loader\$1job） | *操作：*`neptune-db:StartLoaderJob` | 
| [启动 MLModel DataProcessingJob](https://docs.aws.amazon.com/neptune/latest/data-api/API_StartMLModelDataProcessingJob.html)（start\$1ml\$1data\$1processing\$1job） | *操作：*`neptune-db:StartMLModelDataProcessingJob` | 
| [开始 MLModel TrainingJob](https://docs.aws.amazon.com/neptune/latest/data-api/API_StartMLModelTrainingJob.html)（start\$1ml\$1model\$1training\$1job） | *操作：*`neptune-db:StartMLModelTrainingJob` | 
| [启动 MLModel TransformJob](https://docs.aws.amazon.com/neptune/latest/data-api/API_StartMLModelTransformJob.html)（start\$1ml\$1model\$1transform\$1job） | *操作：*`neptune-db:StartMLModelTransformJob` | 