

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

# 应用程序应用程序 ID 版本
<a name="applications-applicationid-versions"></a>

## URI
<a name="applications-applicationid-versions-url"></a>

`/applications/applicationId/versions`

## HTTP 方法
<a name="applications-applicationid-versions-http-methods"></a>

### GET
<a name="applications-applicationid-versionsget"></a>

**操作 ID：**`ListApplicationVersions`

列出指定应用程序的版本。


**路径参数**  

| Name | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| applicationId | 字符串 | True | 应用程序的 Amazon 资源名称（ARN）。 | 


**查询参数**  

| Name | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| maxItems | 字符串 | False | 要退货的商品总数。 | 
| nextToken | 字符串 | False | 指定从何处开始分页的令牌。 | 


**响应**  

| 状态代码 | 响应模型 | 说明 | 
| --- |--- |--- |
| 200 | ApplicationVersionPage | 成功 | 
| 400 | BadRequestException | 请求中的参数之一无效。 | 
| 403 | ForbiddenException | 客户端未通过身份验证。 | 
| 404 | NotFoundException | 请求中指定的资源（例如访问策略声明）不存在。 | 
| 429 | TooManyRequestsException | 客户端每单位时间发送的请求数超过了允许的请求数。 | 
| 500 | InternalServerErrorException | 该 Amazon Serverless Application Repository 服务遇到了内部错误。 | 

### OPTIONS
<a name="applications-applicationid-versionsoptions"></a>


**路径参数**  

| Name | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| applicationId | 字符串 | True | 应用程序的 Amazon 资源名称（ARN）。 | 


**响应**  

| 状态代码 | 响应模型 | 说明 | 
| --- |--- |--- |
| 200 | 无 | 200 条回复 | 

## 架构
<a name="applications-applicationid-versions-schemas"></a>

### 响应正文
<a name="applications-applicationid-versions-response-examples"></a>

#### ApplicationVersionPage 架构
<a name="applications-applicationid-versions-response-body-applicationversionpage-example"></a>

```
{
  "versions": [
    {
      "applicationId": "string",
      "semanticVersion": "string",
      "sourceCodeUrl": "string",
      "creationTime": "string"
    }
  ],
  "nextToken": "string"
}
```

#### BadRequestException 架构
<a name="applications-applicationid-versions-response-body-badrequestexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

#### ForbiddenException 架构
<a name="applications-applicationid-versions-response-body-forbiddenexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

#### NotFoundException 架构
<a name="applications-applicationid-versions-response-body-notfoundexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

#### TooManyRequestsException 架构
<a name="applications-applicationid-versions-response-body-toomanyrequestsexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

#### InternalServerErrorException 架构
<a name="applications-applicationid-versions-response-body-internalservererrorexception-example"></a>

```
{
  "message": "string",
  "errorCode": "string"
}
```

## Properties
<a name="applications-applicationid-versions-properties"></a>

### ApplicationVersionPage
<a name="applications-applicationid-versions-model-applicationversionpage"></a>

应用程序的版本摘要列表。


| 属性 | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| nextToken | 字符串 | False | 用于请求下一页结果的令牌。 | 
| versions | [VersionSummary](#applications-applicationid-versions-model-versionsummary) 类型的数组 | True | 应用程序的版本摘要数组。 | 

### BadRequestException
<a name="applications-applicationid-versions-model-badrequestexception"></a>

请求中的参数之一无效。


| 属性 | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| errorCode | 字符串 | False | 400 | 
| message | 字符串 | False | 请求中的参数之一无效。 | 

### ForbiddenException
<a name="applications-applicationid-versions-model-forbiddenexception"></a>

客户端未通过身份验证。


| 属性 | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| errorCode | 字符串 | False | 403 | 
| message | 字符串 | False | 客户端未通过身份验证。 | 

### InternalServerErrorException
<a name="applications-applicationid-versions-model-internalservererrorexception"></a>

该 Amazon Serverless Application Repository 服务遇到了内部错误。


| 属性 | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| errorCode | 字符串 | False | 500 | 
| message | 字符串 | False | 该 Amazon Serverless Application Repository 服务遇到了内部错误。 | 

### NotFoundException
<a name="applications-applicationid-versions-model-notfoundexception"></a>

请求中指定的资源（例如访问策略声明）不存在。


| 属性 | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| errorCode | 字符串 | False | 404 | 
| message | 字符串 | False | 请求中指定的资源（例如访问策略声明）不存在。 | 

### TooManyRequestsException
<a name="applications-applicationid-versions-model-toomanyrequestsexception"></a>

客户端每单位时间发送的请求数超过了允许的请求数。


| 属性 | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| errorCode | 字符串 | False | 429 | 
| message | 字符串 | False | 客户端每单位时间发送的请求数超过了允许的请求数。 | 

### VersionSummary
<a name="applications-applicationid-versions-model-versionsummary"></a>

应用程序版本摘要。


| 属性 | Type | 必需 | 描述 | 
| --- |--- |--- |--- |
| applicationId | 字符串 | True |  应用程序 Amazon 资源名称 (ARN)。 | 
| creationTime | 字符串 | True | 此资源的创建日期和时间。 | 
| semanticVersion | 字符串 | True | 应用程序的语义版本： [https://semver.org/](https://semver.org/)  | 
| sourceCodeUrl | 字符串 | False | 指向应用程序源代码的公共存储库的链接，例如特定 GitHub 提交的 URL。 | 