

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

# DescribeAccountPreferences
<a name="API_DescribeAccountPreferences"></a>

返回当前与发出请求的用户 AWS 账户 关联的账户偏好设置 AWS 区域。

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

```
GET /2015-02-01/account-preferences HTTP/1.1
Content-type: application/json

{
   "MaxResults": number,
   "NextToken": "string"
}
```

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

该请求不使用任何 URI 参数。

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

请求接受采用 JSON 格式的以下数据。

 ** [MaxResults](#API_DescribeAccountPreferences_RequestSyntax) **   <a name="efs-DescribeAccountPreferences-request-MaxResults"></a>
（可选）检索账户首选项时，可以选择指定 `MaxItems` 参数以限制响应中返回的对象数量。默认值是 100。  
类型：整数  
有效范围：最小值为 1。  
必需：否

 ** [NextToken](#API_DescribeAccountPreferences_RequestSyntax) **   <a name="efs-DescribeAccountPreferences-request-NextToken"></a>
（可选）如果响应负载已分页，则可以在后续请求中使用 `NextToken` 获取下一页 AWS 账户 首选项。  
类型：字符串  
长度限制：最小长度为 1。最大长度为 128。  
模式：`.+`  
必需：否

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

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

{
   "NextToken": "string",
   "ResourceIdPreference": { 
      "ResourceIdType": "string",
      "Resources": [ "string" ]
   }
}
```

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

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

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

 ** [NextToken](#API_DescribeAccountPreferences_ResponseSyntax) **   <a name="efs-DescribeAccountPreferences-response-NextToken"></a>
如果存在的记录多于响应中返回的记录，则显示。可以在随后的请求中使用 `NextToken` 来获取其他描述。  
类型：字符串  
长度限制：最小长度为 1。最大长度为 128。  
模式：`.+`

 ** [ResourceIdPreference](#API_DescribeAccountPreferences_ResponseSyntax) **   <a name="efs-DescribeAccountPreferences-response-ResourceIdPreference"></a>
描述当前与发出请求的用户 AWS 账户 关联的资源 ID 首选项设置 AWS 区域。  
类型：[ResourceIdPreference](API_ResourceIdPreference.md) 对象

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

 ** InternalServerError **   
如果服务器端发生错误，则返回此内容。    
 ** ErrorCode **   
错误代码是用于唯一标识错误条件的字符串。这意味着按类型检测和处理错误的程序将读取和理解错误代码。  
 ** Message **   
错误消息包含错误条件的常规描述 (英语)。它主要面向用户受众。如果用户遇到不知如何处理或不愿处理的错误条件，简单的程序将直接向最终用户显示消息。支持更详尽的错误处理和适当国际化的复杂程序更容易忽略错误消息。
HTTP 状态代码：500

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

有关以特定语言之一使用此 API 的更多信息 AWS SDKs，请参阅以下内容：
+  [AWS 命令行界面 V2](https://docs.aws.amazon.com/goto/cli2/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 适用于.NET 的 SDK V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 适用于 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 适用于 Go v2 的 SDK](https://docs.aws.amazon.com/goto/SdkForGoV2/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 适用于 Java 的 SDK V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS JavaScript V3 版软件开发工具包](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 适用于 Kotlin 的 SDK](https://docs.aws.amazon.com/goto/SdkForKotlin/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 适用于 PHP 的 SDK V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS Python 软件开发工具包](https://docs.aws.amazon.com/goto/boto3/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 适用于 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 