

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

# 读取价目表文件
<a name="bulk-api-reading-price-list-files"></a>


|  | 
| --- |
| 要提供相关的反馈 Amazon 价目表，请完成这[份简短的调查](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回复将是匿名的。**注意：**本调查仅提供英文版。 | 

此部分可用来了解如何阅读价目表文件。这包括服务索引文件、服务版本索引文件、区域索引文件以及两者 Amazon Web Services 服务 和 Savings Plans 用例的价目表文件。

## 读取服务索引文件
<a name="reading-service-index-files"></a>


|  | 
| --- |
| 要提供相关的反馈 Amazon 价目表，请完成这[份简短的调查](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回复将是匿名的。**注意：**本调查仅提供英文版。 | 

获得服务索引文件后，您可以用来查找服务价目表文件。

服务索引文件以 JSON 文件格式提供。您可以使用解析 JSON 的文本应用程序或程序来读取文件。

服务索引文件分为两个主要部分：
+  有关服务索引文件的元数据
+  要么是提供的服务清单，要么是通过 Amazon Marketplace Amazon 提供的服务。

有关服务索引文件的信息包含相关 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**  
可用服务价目表文件清单。

**优惠：OfferCode**  
 Amazon 服务产品的唯一代码。例如，可能是 `AmazonEC2` 或 `AmazonS3`。`OfferCode` 用作索引的查找关键字。

**优惠：CurrentVersionUrl**  
您可以从中下载最多 up-to-date服务价目表文件的 URL。

**优惠：currentRegionIndex网址**  
按地区列出的可用服务价目表文件清单。

**优惠：savingsPlanVersionIndexUrl**  
适用的 Savings Plan 报价列表。