本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
Applications applicationId Templates templateId
URI
/applications/
applicationId
/templates/templateId
HTTP方法
GET
操作 ID:GetCloudFormationTemplate
取得指定的 AWS CloudFormation 範本。
路徑參數 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
名稱 | Type | 必要 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
applicationId | 字串 | True | 應用程式的 Amazon 資源名稱 (ARN)。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
templateId | 字串 | True | 由UUID傳回 CreateCloudFormationTemplate。 模式:[0-9 A-法-F] {8}\-[0-9 A-法-F] {4}\-[0-9 A-法-F] {4}\-[0-9 A-法-F] {4}\-[0-9 阿法-F] {12} |
回應 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
狀態碼 | 回應模型 | 描述 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
200 | TemplateDetails | Success (成功) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 | BadRequestException | 請求中的其中一個參數無效。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
403 | ForbiddenException | 用戶端未驗證。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 | NotFoundException | 請求中指定的資源(例如,訪問策略語句)不存在。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
429 | TooManyRequestsException | 用戶端傳送超過每單位時間允許的要求數目。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
500 | InternalServerErrorException | 服 AWS Serverless Application Repository 務遇到內部錯誤。 |
OPTIONS
路徑參數 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
名稱 | Type | 必要 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
applicationId | 字串 | True | 應用程式的 Amazon 資源名稱 (ARN)。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
templateId | 字串 | True | 由UUID傳回 CreateCloudFormationTemplate。 模式:[0-9 A-法-F] {8}\-[0-9 A-法-F] {4}\-[0-9 A-法-F] {4}\-[0-9 A-法-F] {4}\-[0-9 阿法-F] {12} |
回應 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
狀態碼 | 回應模型 | 描述 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
200 | 無 | 二百個回應 |
結構描述
回應內文
{ "templateId": "string", "templateUrl": "string", "applicationId": "string", "semanticVersion": "string", "status": enum, "creationTime": "string", "expirationTime": "string" }
屬性
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 | 請求中指定的資源(例如,訪問策略語句)不存在。 |
TemplateDetails
範本的詳細資料。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
applicationId | string | True | 應用程序 Amazon 資源名稱(ARN)。 |
creationTime | string | True | 建立此資源的日期和時間。 |
expirationTime | string | True | 此範本的到期日期和時間。範本會在建立後 1 小時過期。 |
semanticVersion | string | True | 該應用程序的語義版本: |
status | string 價值觀: | True | 範本建立工作流程的狀態。 可能的值: |
templateId | string | True | 由UUID傳回 CreateCloudFormationTemplate。 模式:[0-9 A-法-F] {8}\-[0-9 A-法-F] {4}\-[0-9 A-法-F] {4}\-[0-9 A-法-F] {4}\-[0-9 阿法-F] {12} |
templateUrl | string | True | 可用來部署應用程式的範本連結 AWS CloudFormation。 |
TooManyRequestsException
用戶端傳送超過每單位時間允許的要求數目。
屬性 | Type | 必要 | 描述 |
---|---|---|---|
errorCode | string | False | 429 |
message | string | False | 用戶端傳送超過每單位時間允許的要求數目。 |
另請參閱
如需有關API在其中一種特定語言 AWS SDKs和參照中使用此功能的詳細資訊,請參閱下列內容: