

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

# ListLongTermPricing
<a name="API_ListLongTermPricing"></a>

**注意**  
 AWS Snowball 邊緣 不再提供給新客戶。新客戶應探索[AWS DataSync](https://aws.amazon.com/datasync/)線上傳輸、用於安全實體傳輸的[AWS 資料傳輸終端機](https://aws.amazon.com/data-transfer-terminal/)，或 AWS 合作夥伴解決方案。對於邊緣運算，請探索 [AWS Outposts](https://aws.amazon.com/outposts/)。

列出所有長期定價類型。

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

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

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

如需所有動作的一般參數資訊，請參閱《[Common Parameters](CommonParameters.md)》。

請求接受採用 JSON 格式的下列資料。

 ** [MaxResults](#API_ListLongTermPricing_RequestSyntax) **   <a name="Snowball-ListLongTermPricing-request-MaxResults"></a>
要傳回的`ListLongTermPricing`物件數量上限。  
類型：整數  
有效範圍：最小值為 0。最大值為 100。  
必要：否

 ** [NextToken](#API_ListLongTermPricing_RequestSyntax) **   <a name="Snowball-ListLongTermPricing-request-NextToken"></a>
因為 HTTP 請求是無狀態的，所以這是您下一個 清單`ListLongTermPricing`要傳回的起點。  
類型：字串  
長度限制：長度下限為 1。長度上限為 1024。  
模式：`.*`  
必要：否

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

```
{
   "LongTermPricingEntries": [ 
      { 
         "CurrentActiveJob": "string",
         "IsLongTermPricingAutoRenew": boolean,
         "JobIds": [ "string" ],
         "LongTermPricingEndDate": number,
         "LongTermPricingId": "string",
         "LongTermPricingStartDate": number,
         "LongTermPricingStatus": "string",
         "LongTermPricingType": "string",
         "ReplacementJob": "string",
         "SnowballType": "string"
      }
   ],
   "NextToken": "string"
}
```

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

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

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

 ** [LongTermPricingEntries](#API_ListLongTermPricing_ResponseSyntax) **   <a name="Snowball-ListLongTermPricing-response-LongTermPricingEntries"></a>
每個`LongTermPricingEntry`物件都包含狀態、ID 和有關 `LongTermPricing`類型的其他資訊。  
類型：[LongTermPricingListEntry](API_LongTermPricingListEntry.md) 物件陣列

 ** [NextToken](#API_ListLongTermPricing_ResponseSyntax) **   <a name="Snowball-ListLongTermPricing-response-NextToken"></a>
由於 HTTP 請求是無狀態的，因此這是您下一個傳回清單的起點`ListLongTermPricing`。  
類型：字串  
長度限制：長度下限為 1。長度上限為 1024。  
模式：`.*`

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

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

 ** InvalidNextTokenException **   
`NextToken` 字串發生意外變更，且操作已停止。在不變更`NextToken`字串的情況下執行操作，然後再試一次。  
HTTP 狀態碼：400

 ** InvalidResourceException **   
找不到指定的資源。請檢查您在上一個請求中提供的資訊，然後再試一次。    
 ** ResourceType **   
提供的資源值無效。
HTTP 狀態碼：400

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

如需在其中一種語言特定 AWS SDKs中使用此 API 的詳細資訊，請參閱下列內容：
+  [AWS 命令列界面 V2](https://docs.aws.amazon.com/goto/cli2/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 .NET V4 的 SDK](https://docs.aws.amazon.com/goto/DotNetSDKV4/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 Go 的 SDK v2](https://docs.aws.amazon.com/goto/SdkForGoV2/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 Java V2 的 SDK](https://docs.aws.amazon.com/goto/SdkForJavaV2/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 JavaScript V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 Kotlin 的 SDK](https://docs.aws.amazon.com/goto/SdkForKotlin/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 PHP V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForPHPV3/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 Python 的 SDK](https://docs.aws.amazon.com/goto/boto3/snowball-2016-06-30/ListLongTermPricing) 
+  [AWS 適用於 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/snowball-2016-06-30/ListLongTermPricing) 