本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
手动获取价目表文件
要提供相关的反馈 Amazon 价目表,请完成这份简短的调查 |
我们建议您使用批量 Amazon 价目表 API 以编程方式查找和下载价目表文件。有关更多信息,请参阅 第 1 步:查找可用 Amazon Web Services。
如果您不想使用批量 Amazon 价目表 API,可以手动下载价目表文件。如果您已经掌握了所需的信息,则可以跳至相关主题。
主题
要提供相关的反馈 Amazon 价目表,请完成这份简短的调查 |
您可以使用服务索引文件查找批量 Amazon 价目表 API 提供的可用计划 Amazon Web Services 和 Savings Plans。
要下载服务索引文件,请导航至以下 URL:
https://pricing.cn-north-1.amazonaws.com.cn/offers/v1.0/cn/index.json
您可以在服务索引文件中搜索服务以查询其定价。要下载特定服务的价目表文件,请使用 offerCode
或 serviceCode
。
有关更多信息,请参阅以下主题:
要提供相关的反馈 Amazon 价目表,请完成这份简短的调查 |
对于您在步骤 1 中检索到的 Amazon Web Service 或 Savings Plan,您可以使用服务版本索引文件查找价目表的所有历史版本。
要下载服务版本索引文件,请使用 serviceCode
或 savingsPlanCode
。要查找 serviceCode
和 savingsPlanCode
的值,请参阅 第 1 步:查找可用 Amazon Web Services。
要下载的服务版本索引文件 Amazon Web Service,请导航到以下 URL。将 <serviceCode>
替换为您自己的信息。
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/
<serviceCode>
/index.json
例如,Amazon Elastic Compute Cloud(Amazon EC2)显示在如下所示的 URL 中。
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/AmazonEC2/index.json
注意
除了服务版本索引文件中提供的版本外,还有另一个名为 current
的版本。该current
版本指向特定价目表文件的最新版本 Amazon Web Service。
要下载节省计划的最新服务版本索引文件,请在 URL 中指定 savingsPlanCode
和 current
。将 < savingsPlanCode >
替换为你自己的信息。
https://pricing.cn-northwest-1.amazonaws.com.cn/savingsPlan/v1.0/cn/
<savingsPlanCode>
/current/index.json
例如,AWSComputeSavingsPlan
和 AWSMachineLearningSavingsPlans
的当前版本的 URL 如下所示。
https://pricing.cn-northwest-1.amazonaws.com.cn/savingsPlan/v1.0/cn/AWSComputeSavingsPlan/current/index.json
https://pricing.cn-northwest-1.amazonaws.com.cn/savingsPlan/v1.0/cn/AWSMachineLearningSavingsPlans/current/index.json
有关更多信息,请参阅 读取服务索引文件。
要提供相关的反馈 Amazon 价目表,请完成这份简短的调查 |
对于上一步中的 Amazon Web Service 或 Savings Plan 版本,您可以找到 Amazon Web Service 提供产品供购买的所有 Amazon Web Services 区域 和边缘站点。
要下载的服务区域索引文件 Amazon Web Service,请导航到以下 URL。将 <serviceCode>
和 <version>
替换为您自己的信息。
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/
<serviceCode>
/<version>
/region_index.json
例如,AmazonRDS
的服务代码及其 current
版本的 URL 如下所示。
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/AmazonRDS/current/region_index.json
要下载节省计划的服务区域索引文件,请导航至以下 URL。将 < savingsPlanCode >
替换为你自己的信息。
https://pricing.cn-northwest-1.amazonaws.com.cn/savingsPlan/v1.0/cn/
<savingsPlanCode>
/current/region_index.json
例如,AWSComputeSavingsPlan
的节省计划及其 current
版本的 URL 如下所示。
https://pricing.cn-northwest-1.amazonaws.com.cn/savingsPlan/v1.0/cn/AWSComputeSavingsPlan/current/region_index.json
有关更多信息,请参阅 读取服务区域索引文件。
要提供相关的反馈 Amazon 价目表,请完成这份简短的调查 |
在前面的步骤中,您检索了以下有关 Amazon Web Service的信息:
-
服务代码
-
节省计划代码
-
版本
-
Amazon Web Services 区域
接下来,您可以使用此信息在服务价目表文件中查找定价。文件以 CSV 和 JSON 格式提供。
查找服务价目表文件
服务价目表文件提供与服务相关的详细信息,例如:
-
该文件中价格的生效日期
-
服务价目表的版本
-
提供的产品列表及其详细信息,以及以 JSON 和 CSV 格式提供的价格
在以下 URL 中,您可以更改 URL 以指定所需的格式(JSON 或 CSV)。
要下载服务价目表文件,请导航至以下 URL。将每个用户输入占位符
替换为您自己的信息。
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/
<serviceCode>
/<version>
/<regionCode>
/index.<format>
以下示例适用于 Amazon Relational Database Service(Amazon RDS)。此服务在 URL 中显示为 AmazonRDS。
例 示例:Amazon RDS 价目表文件的当前版本
要获取的最新版本 Amazon RDS 价目表文件,请使用以下 URL。
CSV 格式
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/AmazonRDS/current/cn-northwest-1/index.csv
JSON 格式
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/AmazonRDS/current/cn-northwest-1/index.json
例 示例:Amazon RDS 价目表文件的特定版本
要获取的特定版本 Amazon RDS 价目表文件,请使用以下 URL。
CSV 格式
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/AmazonRDS/20230328234721/cn-northwest-1/index.csv
JSON 格式
https://pricing.cn-northwest-1.amazonaws.com.cn/offers/v1.0/cn/AmazonRDS/20230328234721/cn-northwest-1/index.json
查找节省计划的服务价目表文件
节省计划的服务价目表文件提供了与节省计划相关的详细信息,例如:
-
该文件中价格的生效日期
-
服务价目表的版本
-
提供的产品列表及其详细信息,以及以 JSON 和 CSV 格式提供的价格
在以下 URL 中,您可以更改 URL 以指定所需的格式(JSON 或 CSV)。
要下载节省计划的服务价目表文件,请使用以下 URL。将每个用户输入占位符
替换为您自己的信息。
https://pricing.cn-northwest-1.amazonaws.com.cn/savingsPlan/v1.0/cn/
<savingsPlanCode>
/<version>
/<regionCode>
/index.json
例 示例:Amazon 的服务价目表文件 SageMaker
要获取,请使用以下 URL。
CSV 格式
https://pricing.cn-northwest-1.amazonaws.com.cn/savingsPlan/v1.0/cn/AWSComputeSavingsPlan/20230509202901/cn-northwest-1/index.csv
JSON 格式
https://pricing.cn-northwest-1.amazonaws.com.cn/savingsPlan/v1.0/cn/AWSComputeSavingsPlan/20230509202901/cn-northwest-1/index.json
有关更多信息,请参阅 读取服务价目表文件。