

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

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

**什么是 AWS ParallelCluster API？**

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

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

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

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

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

描述该 API 的 OpenAPI 规范文件可以从以下网址下载： AWS 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)。 AWS ParallelCluster 

**如何部署 AWS ParallelCluster API**

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

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

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

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

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

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