使用 API 购买基于支出的承诺

本文档介绍了如何使用 Cloud Commerce Consumer Procurement API 购买基于支出的承诺,以用于 Cloud Marketplace 购买。

此 API 仅支持购买基于支出的承诺,不支持购买基于资源的承诺。

准备工作

确定要购买的优惠

如需购买基于支出的承诺,请使用优惠名称,该名称应指明您要购买的产品和折扣期限,并且必须与您的 Cloud Billing 帐号的模式相符。

以下优惠可供购买,并遵循新的使用模式(直接折扣,无赠金)

产品 术语 范围 优惠名称 必需参数
AlloyDB for PostgreSQL 1 年 全球 services/alloydb.googleapis.com/standardOffers/ff04ec3e-278c-4ec8-8278-12f875a8cea2 commitment_amount(推荐)
hourly_commit
AlloyDB for PostgreSQL 3 年 全球 services/alloydb.googleapis.com/standardOffers/9522b4d8-bff7-4141-81d6-b71d9113c69a commitment_amount(推荐)
hourly_commit
Backup and DR (Oracle) 1 年 全球 services/backupdr.googleapis.com/standardOffers/16e6132e-8a72-4a7f-8941-bf52246afc82 commitment_amount(推荐)
hourly_commit
Backup and DR (Oracle) 3 年 全球 services/backupdr.googleapis.com/standardOffers/1e028b05-4344-4bca-87e7-235ee3536354 commitment_amount(推荐)
hourly_commit
BigQuery 1 年 区域 services/bigqueryreservation.googleapis.com/standardOffers/d73ae4d8-d096-4c9b-9c20-cd92c3c53724 commitment_amount(推荐)
hourly_commit,

region
BigQuery 3 年 区域 services/bigqueryreservation.googleapis.com/standardOffers/f43d480d-3e77-4079-946c-e1b2ab640a8a commitment_amount(推荐)
hourly_commit,

region
Bigtable 1 年 全球 services/bigtable.googleapis.com/standardOffers/c0bf8ba5-65ee-4f7d-9e1e-3953433cf193 commitment_amount(推荐)
hourly_commit
Bigtable 3 年 全球 services/bigtable.googleapis.com/standardOffers/460fb2ef-456d-4263-a070-4f993fa37996 commitment_amount(推荐)
hourly_commit
Cloud Run 3 年 区域 services/run.googleapis.com/standardOffers/88a5fc51-d63b-4865-bf3b-c49e05a8c5c0 commitment_amount(推荐)
hourly_commit,

region
Cloud Run 区域 services/run.googleapis.com/standardOffers/392802d4-e57b-40d3-9684-a1e8cdca6fb5 commitment_amount(推荐)
hourly_commit,

region
Cloud SQL 1 年 区域