

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

# DescribeTheme
<a name="API_DescribeTheme"></a>

描述主题。

## 请求语法
<a name="API_DescribeTheme_RequestSyntax"></a>

```
GET /accounts/AwsAccountId/themes/ThemeId?alias-name=AliasName&version-number=VersionNumber HTTP/1.1
```

## URI 请求参数
<a name="API_DescribeTheme_RequestParameters"></a>

请求使用以下 URI 参数。

 ** [AliasName](#API_DescribeTheme_RequestSyntax) **   <a name="QS-DescribeTheme-request-AliasName"></a>
您要描述的主题的别名。如果您命名特定别名，则说明别名指向的版本。您可以通过提供关键字来指定主题的最新版本`$LATEST`中的`AliasName`参数。关键字`$PUBLISHED`不适用于主题。  
长度约束：最小长度为 1。长度上限为 2048。  
模式：`[\w\-]+|(\$LATEST)|(\$PUBLISHED)`

 ** [AwsAccountId](#API_DescribeTheme_RequestSyntax) **   <a name="QS-DescribeTheme-request-AwsAccountId"></a>
的 IDAWS包含您所描述主题的账户。  
模式：`^(aws|[0-9]{12})$`  
必需：是

 ** [ThemeId](#API_DescribeTheme_RequestSyntax) **   <a name="QS-DescribeTheme-request-ThemeId"></a>
主题的 ID。  
长度约束：最小长度为 1。长度上限为 2048。  
模式：`[\w\-]+`  
必需：是

 ** [VersionNumber](#API_DescribeTheme_RequestSyntax) **   <a name="QS-DescribeTheme-request-VersionNumber"></a>
要描述的版本的版本号。如果`VersionNumber`未提供参数值，则描述主题的最新版本。  
有效范围：最小值为 1。

## 请求正文
<a name="API_DescribeTheme_RequestBody"></a>

该请求没有请求体。

## 响应语法
<a name="API_DescribeTheme_ResponseSyntax"></a>

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

{
   "RequestId": "string",
   "Theme": { 
      "Arn": "string",
      "CreatedTime": number,
      "LastUpdatedTime": number,
      "Name": "string",
      "ThemeId": "string",
      "Type": "string",
      "Version": { 
         "Arn": "string",
         "BaseThemeId": "string",
         "Configuration": { 
            "DataColorPalette": { 
               "Colors": [ "string" ],
               "EmptyFillColor": "string",
               "MinMaxGradient": [ "string" ]
            },
            "Sheet": { 
               "Tile": { 
                  "Border": { 
                     "Show": boolean
                  }
               },
               "TileLayout": { 
                  "Gutter": { 
                     "Show": boolean
                  },
                  "Margin": { 
                     "Show": boolean
                  }
               }
            },
            "UIColorPalette": { 
               "Accent": "string",
               "AccentForeground": "string",
               "Danger": "string",
               "DangerForeground": "string",
               "Dimension": "string",
               "DimensionForeground": "string",
               "Measure": "string",
               "MeasureForeground": "string",
               "PrimaryBackground": "string",
               "PrimaryForeground": "string",
               "SecondaryBackground": "string",
               "SecondaryForeground": "string",
               "Success": "string",
               "SuccessForeground": "string",
               "Warning": "string",
               "WarningForeground": "string"
            }
         },
         "CreatedTime": number,
         "Description": "string",
         "Errors": [ 
            { 
               "Message": "string",
               "Type": "string"
            }
         ],
         "Status": "string",
         "VersionNumber": number
      }
   }
}
```

## 响应元素
<a name="API_DescribeTheme_ResponseElements"></a>

如果此操作成功，则该服务将会发送回 HTTP 响应。

 ** [Status](#API_DescribeTheme_ResponseSyntax) **   <a name="QS-DescribeTheme-response-Status"></a>
请求的 HTTP 状态。

服务以 JSON 格式返回的以下数据。

 ** [RequestId](#API_DescribeTheme_ResponseSyntax) **   <a name="QS-DescribeTheme-response-RequestId"></a>
这些区域有：AWS用于此操作的请求 ID。  
类型: 字符串

 ** [Theme](#API_DescribeTheme_ResponseSyntax) **   <a name="QS-DescribeTheme-response-Theme"></a>
您所描述的主题的相关信息。  
类型：[Theme](API_Theme.md) 对象

## 错误
<a name="API_DescribeTheme_Errors"></a>

有关所有操作常见错误的信息，请参阅[常见错误](CommonErrors.md).

 ** AccessDeniedException **   
您无权访问该项目。无法验证提供的凭证。您可能无权执行请求。确保您的账户已获得使用亚马逊的授权 QuickSight 服务，您的策略具有正确的权限，并且您使用的是正确的访问密钥。  
HTTP 状态代码：401

 ** InternalFailureException **   
出现内部故障。  
HTTP 状态代码：500

 ** InvalidParameterValueException **   
一个或多个参数的值无效。  
HTTP 状态代码：400

 ** ResourceExistsException **   
已存在指定的资源。  
HTTP 状态代码：409

 ** ResourceNotFoundException **   
无法找到一个或多个资源。  
HTTP 状态代码：404

 ** ThrottlingException **   
访问受限。  
HTTP 状态代码：429

 ** UnsupportedUserEditionException **   
该错误指示您正在 Amazon 上调用某个操作 QuickSight该版本不支持该操作的订阅。亚马逊Amazon QuickSight 当前具有标准版和企业版。每个版本中并未提供所有操作和功能。  
HTTP 状态代码：403

## 另请参阅
<a name="API_DescribeTheme_SeeAlso"></a>

有关在特定语言的 AWS 软件开发工具包中使用此 API 的更多信息，请参阅以下内容：
+  [AWS 命令行界面](https://docs.aws.amazon.com/goto/aws-cli/quicksight-2018-04-01/DescribeTheme) 
+  [适用于 .NET 的 AWS SDK](https://docs.aws.amazon.com/goto/DotNetSDKV3/quicksight-2018-04-01/DescribeTheme) 
+  [适用于 C\$1\$1 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForCpp/quicksight-2018-04-01/DescribeTheme) 
+  [适用于 Go 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForGoV1/quicksight-2018-04-01/DescribeTheme) 
+  [适用于 Java V2 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForJavaV2/quicksight-2018-04-01/DescribeTheme) 
+  [AWS适用于的开发工具包 JavaScript](https://docs.aws.amazon.com/goto/AWSJavaScriptSDK/quicksight-2018-04-01/DescribeTheme) 
+  [适用于 PHP V3 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForPHPV3/quicksight-2018-04-01/DescribeTheme) 
+  [适用于 Python 的 AWS SDK](https://docs.aws.amazon.com/goto/boto3/quicksight-2018-04-01/DescribeTheme) 
+  [适用于 Ruby V3 的 AWS SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/quicksight-2018-04-01/DescribeTheme) 