简体   繁体   English

Softlayer API:如何获取对象存储的有效使用价格列表?

[英]Softlayer API : How to get list of active usage prices of object storage?

How can I get all active usage prices in control UI? 如何在控件UI中获得所有有效使用价格? Using the api below, I only get the prices of object storage. 使用下面的API,我只能得到对象存储的价格。 To get the prices of object storage bandwidth and cdn bandwidth, what should I do more? 要获取对象存储带宽和CDN带宽的价格,我该怎么办?

Service service = Package.service(client, 206);
service.withMask().categories();
service.withMask().categories().groups().prices().item().activeUsagePrices();
service.getObject();

Softlayer UI 软层UI

Try this method: 试试这个方法:

http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getObjectStorageDatacenters http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getObjectStorageDatacenters

here a rest example: 这里是一个休息的例子:

URL: https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/206/getObjectStorageDatacenters

Method: Get

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM