

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# ListTemplates
<a name="API_ListTemplates"></a>

列出目前 Amazon 中的所有範本 QuickSight 帳戶。

## 請求語法
<a name="API_ListTemplates_RequestSyntax"></a>

```
GET /accounts/AwsAccountId/templates?max-result=MaxResults&next-token=NextToken HTTP/1.1
```

## URI 請求參數
<a name="API_ListTemplates_RequestParameters"></a>

請求會使用下列 URI 參數。

 ** [AwsAccountId](#API_ListTemplates_RequestSyntax) **   <a name="QS-ListTemplates-request-AwsAccountId"></a>
的 IDAWS包含你刊登範本的帳戶。  
長度限制：12 的固定長度。  
模式：`^[0-9]{12}$`  
必要：是

 ** [MaxResults](#API_ListTemplates_RequestSyntax) **   <a name="QS-ListTemplates-request-MaxResults"></a>
每筆請求傳回結果的最大數量。  
有效範圍：最小值為 1。最大值為 100。

 ** [NextToken](#API_ListTemplates_RequestSyntax) **   <a name="QS-ListTemplates-request-NextToken"></a>
用於下一組結果的符記，如果沒有其他結果則為 null。

## 請求主體
<a name="API_ListTemplates_RequestBody"></a>

請求沒有請求主體。

## 回應語法
<a name="API_ListTemplates_ResponseSyntax"></a>

```
HTTP/1.1 Status
Content-type: application/json

{
   "NextToken": "string",
   "RequestId": "string",
   "TemplateSummaryList": [ 
      { 
         "Arn": "string",
         "CreatedTime": number,
         "LastUpdatedTime": number,
         "LatestVersionNumber": number,
         "Name": "string",
         "TemplateId": "string"
      }
   ]
}
```

## 回應元素
<a name="API_ListTemplates_ResponseElements"></a>

如果動作成功，則服務傳回下列 HTTP 回應。

 ** [Status](#API_ListTemplates_ResponseSyntax) **   <a name="QS-ListTemplates-response-Status"></a>
請求的 HTTP 狀態。

服務會傳回下列 JSON 格式的資料。

 ** [NextToken](#API_ListTemplates_ResponseSyntax) **   <a name="QS-ListTemplates-response-NextToken"></a>
用於下一組結果的符記，如果沒有其他結果則為 null。  
類型：字串

 ** [RequestId](#API_ListTemplates_ResponseSyntax) **   <a name="QS-ListTemplates-response-RequestId"></a>
所以此AWS此操作的請求 ID。  
類型：字串

 ** [TemplateSummaryList](#API_ListTemplates_ResponseSyntax) **   <a name="QS-ListTemplates-response-TemplateSummaryList"></a>
一種結構，包含有關清單中範本的資訊。  
類型：的陣列[TemplateSummary](API_TemplateSummary.md)對象  
陣列成員：項目數上限為 100。

## 錯誤
<a name="API_ListTemplates_Errors"></a>

如需所有動作常見的錯誤相關資訊，請參閱[常見錯誤](CommonErrors.md)。

 ** InternalFailureException **   
發生內部故障。  
HTTP 狀態碼：500

 ** InvalidNextTokenException **   
`NextToken` 值無效。  
HTTP 狀態碼：400

 ** InvalidParameterValueException **   
一或多個參數的值無效。  
HTTP 狀態碼：400

 ** ResourceNotFoundException **   
無法找到一個或多個資源。  
HTTP 狀態碼：404

 ** ThrottlingException **   
存取已調節。  
HTTP 狀態碼：429

 ** UnsupportedUserEditionException **   
此錯誤表示您正在呼叫 Amazon 的操作 QuickSight訂閱版本不包括對該操作的支持。amazon QuickSight 目前包含 Standard Edition (企業版)。不是每個版本都會提供所有操作和功能。  
HTTP 狀態碼：403

## 另請參閱
<a name="API_ListTemplates_SeeAlso"></a>

如需在語言特定的 AWS 開發套件之一中使用此 API 的詳細資訊，請參閱下列說明：
+  [AWS 命令列界面](https://docs.aws.amazon.com/goto/aws-cli/quicksight-2018-04-01/ListTemplates) 
+  [適用於 .NET 的 AWS 開發套件](https://docs.aws.amazon.com/goto/DotNetSDKV3/quicksight-2018-04-01/ListTemplates) 
+  [適用於 C\$1\$1 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForCpp/quicksight-2018-04-01/ListTemplates) 
+  [適用於 Go 的 AWS 開發套件](https://docs.aws.amazon.com/goto/SdkForGoV1/quicksight-2018-04-01/ListTemplates) 
+  [適用於 Java 的 AWS 開發套件第 2 版](https://docs.aws.amazon.com/goto/SdkForJavaV2/quicksight-2018-04-01/ListTemplates) 
+  [AWS適用於的套件 JavaScript](https://docs.aws.amazon.com/goto/AWSJavaScriptSDK/quicksight-2018-04-01/ListTemplates) 
+  [適用於 PHP V3 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForPHPV3/quicksight-2018-04-01/ListTemplates) 
+  [適用於 Python 的 AWS SDK](https://docs.aws.amazon.com/goto/boto3/quicksight-2018-04-01/ListTemplates) 
+  [適用於 Ruby 的 AWS 開發套件第 3 版](https://docs.aws.amazon.com/goto/SdkForRubyV3/quicksight-2018-04-01/ListTemplates) 