

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

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

列出当前 Amazon 中的所有模板 QuickSight account.

## 请求语法
<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 当前具有标准版和企业版。每个版本中并未提供所有操作和功能。  
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 SDK](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 SDK](https://docs.aws.amazon.com/goto/SdkForGoV1/quicksight-2018-04-01/ListTemplates) 
+  [适用于 Java V2 的 AWS SDK](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 V3 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/quicksight-2018-04-01/ListTemplates) 