

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

# Amazon ParallelCluster API
<a name="api-reference-v3"></a>

**什么是 Amazon ParallelCluster API？**

Amazon ParallelCluster API 是一种无服务器应用程序，一旦部署到您的应用程序 Amazon Web Services 账户，便可通过 API 提供对 Amazon ParallelCluster 功能的编程访问。

Amazon ParallelCluster API 以独立[Amazon CloudFormation](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html)模板的形式分发，其中包括一个公开 Amazon ParallelCluster 功能的 [Amazon API Gateway](https://docs.amazonaws.cn/apigateway/latest/developerguide/welcome.html) 终端节点和一个负责处理所调用[Amazon Lambda](https://docs.amazonaws.cn/lambda/latest/dg/welcome.html)功能的函数。

下图显示了 Amazon ParallelCluster API 基础架构的高级架构图。

 ![\[a high-level architecture diagram of the ParallelCluster API infrastructure\]](http://docs.amazonaws.cn/parallelcluster/latest/ug/images/API-Architecture-r2.png) 

## Amazon ParallelCluster API 文档
<a name="api-reference-documentation-v3"></a>

描述该 API 的 OpenAPI 规范文件可以从以下网址下载： Amazon ParallelCluster 

```
https://<REGION>-aws-parallelcluster.s3.<REGION>.amazonaws.com/parallelcluster/<VERSION>/api/ParallelCluster.openapi.yaml
```

从 OpenAPI 规范文件开始，你可以使用 [Swagger UI 或 Redoc 等众多可用工具中的一个来生成 API](https://swagger.io/tools/swagger-ui/) [的文档](https://github.com/Redocly/redoc)。 Amazon ParallelCluster 

**如何部署 Amazon ParallelCluster API**

要部署 Amazon ParallelCluster API，你需要成为 API 的管理员 Amazon Web Services 账户。

用于部署 API 的模板可在以下 URL 中找到：

```
https://<REGION>-aws-parallelcluster.s3.<REGION>.amazonaws.com/parallelcluster/<VERSION>/api/parallelcluster-api.yaml
```

哪里`<REGION>`是需要部署 API Amazon Web Services 区域 的地方，`<VERSION>`是 Amazon ParallelCluster 版本（例如 3.15.0）。

Amazon Lambda 使用带有 Lambda 层接口[Amazon ParallelCluster Python 库 API](pc-py-library-v3.md)来处理 API 调用的功能。

**警告**  
中任何有权访问我们的 Amazon Web Services 账户 Amazon API Gateway 服务的用户都会自动继承管理 Amazon ParallelCluster API 资源的权限。 Amazon Lambda 