gpt4 book ai didi

google-cloud-platform - GCP : Identify correct instance(N1standard 8, N1Highmem 等)使用目录 API

转载 作者:行者123 更新时间:2023-12-05 06:33:51 24 4
gpt4 key购买 nike

我们目前正在开发 GCP 定价模块,为此我们正在使用 GCP catalog API获取各种 GCP 服务的定价。

在分析 Compute Engine 的目录 api 的响应时,我们观察到 sku 对象中没有任何可以用来识别机器类型(N1Standard 4、NIHighmem 16 等)的确切参数。 ) 描述除外。

除了解析描述之外,是否有任何解决方法可以直接获取具有特定内核数的 sku 对象?

是否有任何解决方法可以直接获取特定实例名称的 sku 对象?

例如:N1Standard 16以下是具有 8 个核心的 N1Highcpu 的示例 sku 对象,其中核心数量仅在描述中提及。:

{
"name": "services/<<id>>/skus/C216-207D-0521",
"skuId": "C216-207D-0521",
"description": "Highcpu Intel N1 8 VCPU running in Netherlands",
"category": {
"serviceDisplayName": "Compute Engine",
"resourceFamily": "Compute",
"resourceGroup": "N1Highcpu",
"usageType": "OnDemand"
},
"serviceRegions": [
"europe-west4"
],
"pricingInfo": [
{
"summary": "",
"pricingExpression": {
"usageUnit": "h",
"usageUnitDescription": "hour",
"baseUnit": "s",
"baseUnitDescription": "second",
"baseUnitConversionFactor": 3600,
"displayQuantity": 1,
"tieredRates": [
{
"startUsageAmount": 0,
"unitPrice": {
"currencyCode": "USD",
"units": "0",
"nanos": 312400000
}
}
]
},
"currencyConversionRate": 1,
"effectiveTime": "2018-05-17T08:22:54.236Z"
}
],
"serviceProviderName": "Google"
}

最佳答案

您需要的功能尚未在 Cloud Billing Catalog API 上实现。

目前唯一的解决方法是解析输出以获取 Compute Engine 实例的 SKU。所以,请跟进功能请求here .

关于google-cloud-platform - GCP : Identify correct instance(N1standard 8, N1Highmem 等)使用目录 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50506038/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com