gpt4 book ai didi

amazon-web-services - 如何以编程方式获得 aws ebs 定价?

转载 作者:行者123 更新时间:2023-12-04 08:15:34 25 4
gpt4 key购买 nike

是否可以通过编程方式下载 aws ebs 定价?

我能够下载整个 AWS 服务索引文件,但我没有看到列出了 Amazon EBS。

我下载了 AmazonEC2 定价信息。它有 PricePerUnit,这意味着 EC2 实例,但没有专门显示 EBS 卷的 PricePerUnit ......

https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/using-ppslong.html

最佳答案

当然有。

寻找 "productFamily" : "Storage",在报价文件中:

https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/us-east-1/index.json

"HY3BZPP2B6K8MSJF" : {
"sku" : "HY3BZPP2B6K8MSJF",
"productFamily" : "Storage",
"attributes" : {
"servicecode" : "AmazonEC2",
"location" : "US East (N. Virginia)",
"locationType" : "AWS Region",
"storageMedia" : "SSD-backed",
"volumeType" : "General Purpose",
"maxVolumeSize" : "16 TiB",
"maxIopsvolume" : "10000",
"maxIopsBurstPerformance" : "3000 for volumes <= 1 TiB",
"maxThroughputvolume" : "160 MB/sec",
"usagetype" : "EBS:VolumeUsage.gp2",
"operation" : "",
"servicename" : "Amazon Elastic Compute Cloud"
}
},

从那里抢 sku代码并搜索它,您将看到如下内容:
 "HY3BZPP2B6K8MSJF" : {
"HY3BZPP2B6K8MSJF.JRTCKXETXF" : {
"offerTermCode" : "JRTCKXETXF",
"sku" : "HY3BZPP2B6K8MSJF",
"effectiveDate" : "2018-06-01T00:00:00Z",
"priceDimensions" : {
"HY3BZPP2B6K8MSJF.JRTCKXETXF.6YS6EN2CT7" : {
"rateCode" : "HY3BZPP2B6K8MSJF.JRTCKXETXF.6YS6EN2CT7",
"description" : "$0.10 per GB-month of General Purpose SSD (gp2) provisioned storage - US East (Northern Virginia)",
"beginRange" : "0",
"endRange" : "Inf",
"unit" : "GB-Mo",
"pricePerUnit" : {
"USD" : "0.1000000000"
},
"appliesTo" : [ ]
}
},
"termAttributes" : { }
}
},

关于amazon-web-services - 如何以编程方式获得 aws ebs 定价?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51386296/

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