为什么谷歌云计算说多伦多没有A2机器类型,而API说它存在?



如果你进入https://cloud.google.com/products/calculator和compute engine

,并填写字段数:实例:1、操作系统:免费,数据中心位置:Toronto

现在,如果您将机器系列更改为"加速器优化";和机器系列到A2:

你会得到一个警告:

This instance type is not available in this region.

但是,如果您使用谷歌云定价API:https://cloudbilling.googleapis.com/v1/services/6f81 - 5844 - 456 - a/skus?key=api_key

数据中有一个对象告诉我们多伦多有A2台机器可用,该对象是:

{
"name":"services/6F81-5844-456A/skus/1CD3-9D89-855A",
"skuId":"1CD3-9D89-855A",
"description":"A2 Instance Core running in Toronto",
"category":{
"serviceDisplayName":"Compute Engine",
"resourceFamily":"Compute",
"resourceGroup":"CPU",
"usageType":"OnDemand"
},
"serviceRegions":[
"northamerica-northeast2"
],
"pricingInfo":[
{
"summary":"",
"pricingExpression":{
"usageUnit":"h",
"displayQuantity":1,
"tieredRates":[
{
"startUsageAmount":0,
"unitPrice":{
"currencyCode":"USD",
"units":"0",
"nanos":34802000
}
}
],
"usageUnitDescription":"hour",
"baseUnit":"s",
"baseUnitDescription":"second",
"baseUnitConversionFactor":3600
},
"currencyConversionRate":1,
"effectiveTime":"2022-07-18T01:31:45.922Z"
}
],
"serviceProviderName":"Google",
"geoTaxonomy":{
"type":"REGIONAL",
"regions":[
"northamerica-northeast2"
]
}
}

谁能解释一下这个或给我参考相关的电子邮件,我可以问他们?

SKU(库存单位)是用于计费的ID。仅仅因为有SKU,并不意味着它"有库存"。(可用)。

要确定机器类型的可用性,使用机器类型API: https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes

相关内容

  • 没有找到相关文章