【问题标题】:Where can I find the GCP cloud service ID's that is required to list down the sku's for each cloud service?我在哪里可以找到列出每个云服务的 sku 所需的 GCP 云服务 ID?
【发布时间】:2020-01-29 07:24:58
【问题描述】:

我打算在 bigquery 中创建一个表,该表将在计费中对每个云服务的 SKU 进行分类。基本上我想复制在 Cloud Next '19 上的一个演示文稿中建议的策略,特别是这个 -> https://youtu.be/UocD6uY2-js

由于有很多 sku 可用,我打算直接从计费 api (GET https://cloudbilling.googleapis.com/v1/{parent=services/*}/skus) 获取这些数据,但问题是,我需要提供我想列出 SKU 的云服务的服务 ID。现在我不知道在哪里可以找到这些服务 ID。

有谁知道我在哪里可以找到谷歌云中每个云服务的服务 ID?比如说 GAE 或 GCE 等?

这是 Cloud Billing API 浏览器的链接,https://developers.google.com/apis-explorer/#search/%20billing/cloudbilling/v1/cloudbilling.services.skus.list

【问题讨论】:

标签: google-cloud-platform google-api google-cloud-billing


【解决方案1】:

似乎有一个名为 services.list 的 API。此 API 将服务作为 service objects 的 JSON 数组返回。每个对象实例都包含一个名为 serviceId 的字段,该字段显示为服务的标识符(例如DA34-426B-A397),我相信这就是您要查找的内容。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-15
    • 2021-11-22
    • 1970-01-01
    • 2023-01-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多