

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

# 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>

如需在其中一種語言特定 AWS SDKs中使用此 API 的詳細資訊，請參閱下列內容：
+  [AWS 命令列界面 V2](https://docs.aws.amazon.com/goto/cli2/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 適用於 .NET V4 的 SDK](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 的 SDK v2](https://docs.aws.amazon.com/goto/SdkForGoV2/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 適用於 Java V2 的 SDK](https://docs.aws.amazon.com/goto/SdkForJavaV2/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 適用於 JavaScript V3 的 SDK](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 V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForPHPV3/elasticfilesystem-2015-02-01/DescribeAccountPreferences) 
+  [AWS 適用於 Python 的 SDK](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) 