本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
应用程序应用程序 ID 版本
URI
/applications/applicationId/versions
HTTP 方法
GET
操作 ID:ListApplicationVersions
列出指定应用程序的版本。
| 名称 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| applicationId | 字符串 | True | 应用程序的 Amazon 资源名称(ARN)。 | 
| 名称 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| maxItems | 字符串 | False | 要退货的商品总数。 | 
| nextToken | 字符串 | False | 指定从何处开始分页的令牌。 | 
| 状态代码 | 响应模型 | 说明 | 
|---|---|---|
| 200 | ApplicationVersionPage | 成功 | 
| 400 | BadRequestException | 请求中的参数之一无效。 | 
| 403 | ForbiddenException | 客户端未通过身份验证。 | 
| 404 | NotFoundException | 请求中指定的资源(例如访问策略声明)不存在。 | 
| 429 | TooManyRequestsException | 客户端每单位时间发送的请求数超过了允许的请求数。 | 
| 500 | InternalServerErrorException | 该 Amazon Serverless Application Repository 服务遇到了内部错误。 | 
OPTIONS
| 名称 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| applicationId | 字符串 | True | 应用程序的 Amazon 资源名称(ARN)。 | 
| 状态代码 | 响应模型 | 说明 | 
|---|---|---|
| 200 | 无 | 200 条回复 | 
Schema
响应正文
{ "versions": [ { "applicationId": "string", "semanticVersion": "string", "sourceCodeUrl": "string", "creationTime": "string" } ], "nextToken": "string" }
属性
ApplicationVersionPage
应用程序的版本摘要列表。
| 属性 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| nextToken | 字符串 | False | 用于请求下一页结果的令牌。 | 
| versions | VersionSummary 类型的数组 | True | 应用程序的版本摘要数组。 | 
BadRequestException
请求中的参数之一无效。
| 属性 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| errorCode | 字符串 | False | 400 | 
| message | 字符串 | False | 请求中的参数之一无效。 | 
ForbiddenException
客户端未通过身份验证。
| 属性 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| errorCode | 字符串 | False | 403 | 
| message | 字符串 | False | 客户端未通过身份验证。 | 
InternalServerErrorException
该 Amazon Serverless Application Repository 服务遇到了内部错误。
| 属性 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| errorCode | 字符串 | False | 500 | 
| message | 字符串 | False | 该 Amazon Serverless Application Repository 服务遇到了内部错误。 | 
NotFoundException
请求中指定的资源(例如访问策略声明)不存在。
| 属性 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| errorCode | 字符串 | False | 404 | 
| message | 字符串 | False | 请求中指定的资源(例如访问策略声明)不存在。 | 
TooManyRequestsException
客户端每单位时间发送的请求数超过了允许的请求数。
| 属性 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| errorCode | 字符串 | False | 429 | 
| message | 字符串 | False | 客户端每单位时间发送的请求数超过了允许的请求数。 | 
VersionSummary
应用程序版本摘要。
| 属性 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| applicationId | 字符串 | True | 应用程序 Amazon 资源名称 (ARN)。 | 
| creationTime | 字符串 | True | 此资源的创建日期和时间。 | 
| semanticVersion | 字符串 | True | 应用程序的语义版本: | 
| sourceCodeUrl | 字符串 | False | 指向应用程序源代码的公共存储库的链接,例如特定 GitHub 提交的 URL。 |