本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
應用程式 applicationId 版本
URI
/applications/
applicationId
/versions
HTTP 方法
GET
操作 ID:ListApplicationVersions
列出指定應用程式的版本。
名稱 | Type | 必要 | 描述 |
---|---|---|---|
applicationId | 字串 | True | 應用程式的 Amazon Resource Name (ARN)。 |
名稱 | Type | 必要 | 描述 |
---|---|---|---|
maxItems | 字串 | False | 要傳回的項目總數。 |
nextToken | 字串 | False | 用以指定分頁開始位置的字符。 |
狀態碼 | 回應模型 | 描述 |
---|---|---|
200 | ApplicationVersionPage | Success (成功) |
400 | BadRequestException | 請求中的其中一個參數無效。 |
403 | ForbiddenException | 用戶端未驗證。 |
404 | NotFoundException | 請求中指定的資源 (例如,存取政策陳述式) 不存在。 |
429 | TooManyRequestsException | 用戶端傳送的請求數目超過每單位時間允許的數目。 |
500 | InternalServerErrorException | AWS Serverless Application Repository 服務遇到內部錯誤。 |
OPTIONS
名稱 | Type | 必要 | 描述 |
---|---|---|---|
applicationId | 字串 | True | 應用程式的 Amazon Resource Name (ARN)。 |
狀態碼 | 回應模型 | 描述 |
---|---|---|
200 | 無 | 200 個回應 |
結構描述
回應內文
{ "versions": [ { "applicationId": "string", "semanticVersion": "string", "sourceCodeUrl": "string", "creationTime": "string" } ], "nextToken": "string" }
屬性
ApplicationVersionPage
應用程式版本摘要的清單。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
nextToken | string | False | 請求下一頁結果的字符。 |
versions | 類型的陣列 VersionSummary | True | 應用程式的版本摘要陣列。 |
BadRequestException
請求中的其中一個參數無效。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 400 |
message | string | False | 請求中的其中一個參數無效。 |
ForbiddenException
用戶端未驗證。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 403 |
message | string | False | 用戶端未驗證。 |
InternalServerErrorException
AWS Serverless Application Repository 服務遇到內部錯誤。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 500 |
message | string | False | AWS Serverless Application Repository 服務遇到內部錯誤。 |
NotFoundException
請求中指定的資源 (例如,存取政策陳述式) 不存在。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 404 |
message | string | False | 請求中指定的資源 (例如,存取政策陳述式) 不存在。 |
TooManyRequestsException
用戶端傳送的請求數目超過每單位時間允許的數目。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 429 |
message | string | False | 用戶端傳送的請求數目超過每單位時間允許的數目。 |
VersionSummary
應用程式版本摘要。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
applicationId | string | True | 應用程式 Amazon Resource Name (ARN)。 |
creationTime | string | True | 建立此資源的日期和時間。 |
semanticVersion | string | True | 應用程式語意版本: |
sourceCodeUrl | string | False | 應用程式原始碼的公有儲存庫連結,例如特定 GitHub 遞交URL的 。 |
另請參閱
如需在其中一種語言特定 AWS SDKs和參考API中使用此功能的詳細資訊,請參閱以下內容: