

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

# 讀取價目表檔案
<a name="bulk-api-reading-price-list-files"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

使用本節了解如何讀取您的價目表檔案。這涵蓋服務索引檔案、服務版本索引檔案、區域索引檔案，以及 AWS 服務 和 Savings Plans 使用案例的價目表檔案。

## 讀取服務索引檔案
<a name="reading-service-index-files"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

取得服務索引檔案之後，您可以使用它來尋找服務價目表檔案。

服務索引檔案使用 JSON 檔案格式。若要讀取檔案，您可以使用文字應用程式或相關程式來剖析 JSON。

服務索引檔分成兩個主要部分：
+  服務索引檔案的中繼資料
+  AWS 提供或透過 AWS Marketplace 的服務清單。

服務索引檔案的相關資訊包含可下載價格的 URL，以及該服務的區域索引檔案 URL。

### 範例：服務索引檔案
<a name="service-index-file-example"></a>

服務索引檔案如下所示。

```
{
   "formatVersion":"The version number for the offer index format",
   "disclaimer":"The disclaimers for this offer index",
   "publicationDate":"The publication date of this offer index",
   "offers":{
      "firstService":{
         "offerCode":"The service that this price list is for",
         "currentVersionUrl":"The URL for this offer file",
         "currentRegionIndexUrl":"The URL for the regional offer index file",
         "savingsPlanVersionIndexUrl":"The URL for the Savings Plan index file (if applicable)"
      },
      "secondService":{
         "offerCode": ...,
         "currentVersionUrl": ...,
         "currentRegionIndexUrl": ...,
         "savingsPlanVersionIndexUrl":...
      },
      ...
   },
}
```

### 服務索引檔案定義
<a name="offer-index-termdef-version-2"></a>

下列清單定義服務索引檔案中使用的詞彙：

**FormatVersion**  
追蹤服務版本索引檔案所用格式版本的屬性。結構變更時，檔案的 `formatVersion` 會更新。例如，版本將從 `v1` 變更為 `v2`。

**免責聲明**  
適用於服務版本索引檔案的任何免責聲明。

**PublicationDate**  
發行服務版本索引檔案的日期和時間，採用 UTC 格式。舉例來說，它的格式可能類似 `2015-04-09T02:22:05Z` 和 `2015-09-10T18:21:05Z`。

**Offers**  
可用的服務價目表檔案清單。

**Offers:OfferCode**  
 AWS 服務產品的唯一程式碼。舉例來說，它可能是 `AmazonEC2` 或 `AmazonS3`。`OfferCode` 被用作索引的查找索引鍵。

**Offers:CurrentVersionUrl**  
可下載最新服務價目表檔案的 URL。

**Offers:currentRegionIndexUrl**  
案區域區分的可用服務價目表檔案清單。

**Offers:savingsPlanVersionIndexUrl**  
適用 Savings Plan 優惠清單。