本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
步骤 2:查找可用价目表文件 Amazon Web Service
要提供相关的反馈 Amazon 价目表,请完成这份简短的调查 |
使用 ListPriceLists
API 操作获取您有权查看的价目表参考清单。要筛选结果,您可以指定 ServiceCode
、CurrencyCode
、和 EffectiveDate
参数。
Amazon Web Services 区域 是价目表批量 API 的 API 端点。端点与产品或服务属性无关。
查找价目表文件的示例
例 示例:查找所有人的价目表文件 Amazon Web Services 区域
如果您未指定 --region-code
参数,则 API 操作会返回所有可用 Amazon Web Services 区域的价目表文件参考。
aws pricing list-price-lists --service-code AmazonRDS --currency-code USD --effective-date "2023-04-03 00:00"
响应
{ "NextToken": "abcd1234", "PriceLists": [ { "CurrencyCode": "USD", "FileFormats": [ "json", "csv" ], "PriceListArn": "arn:cn:pricing:::price-list/cn/AmazonRDS/USD/20230328234721/cn-northwest-1", "RegionCode": "cn-northwest-1" }, { "CurrencyCode": "USD", "FileFormats": [ "json", "csv" ], "PriceListArn": "arn:cn:pricing:::price-list/cn/AmazonRDS/USD/20230328234721/cn-northwest-1", "RegionCode": "cn-northwest-1" }, ... ] }
例 示例:查找特定区域的价目表文件
如果您指定 RegionCode
参数,API 操作将返回该区域特定的价目表文件参考。要查找历史价目表文件,请使用 EffectiveDate
参数。例如,您可以指定过去的日期来查找特定的价目表文件。
然后,您可以从响应中将 PriceListArn
值与 GetPriceListFileUrl API 操作配合使用,以获取您的首选价目表文件。
aws pricing list-price-lists --service-code AmazonRDS --currency-code USD --region-code cn-northwest-1 --effective-date "2023-04-03 00:00"
响应
{ "PriceLists": [ { "CurrencyCode": "USD", "FileFormats": [ "json", "csv" ], "PriceListArn": "arn:cn:pricing:::price-list/cn/AmazonRDS/USD/20230328234721/cn-northwest-1", "RegionCode": "cn-northwest-1" } ] }
有关此 API 操作的更多信息,请参阅《API 参考》Amazon Billing and Cost Management 中的ListPriceLists和特定语言的 Amazon SDK。