https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getQuotes?objectMask=mask[id,name,order[id,status,items[id,description,domainName,hostName,location]]]
Method: GET
SoftLayer\u Billing\u Order\u Quote::getObject
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Billing_Order_Quote/[quoteID]/getObject?objectMask=mask[id,name,order[id,status,items[id,description,location]]]
Method: GET
如果您试图检索在放置报价单时发送的相同订单信息结构,那么您需要使用方法getRecalculatedOrderContainer,它应该返回packageId、presetId、location、item prices等,但据我所知,由于这些值,所以hostname、domain、sshKeys、provisionScripts、vlan不在报价单中 可能会随着时间的推移而改变用户在下订单之前是否需要新的值,或者是为了避免由于VLAN和子网等资源的可用性而导致的系统错误。你知道吗
现在,如果您想检索orderId、items等,那么您需要使用object-mask特性无论您使用的是方法
Account::getQuotes
还是SoftLayer_Billing_Order_Quote::getObject
,它们都返回列表中的数据类型SoftLayer_Billing_Order_Quote,或者作为单个对象。你知道吗帐户::getQuotes
SoftLayer\u Billing\u Order\u Quote::getObject
参考文献:
https://softlayer.github.io/reference/services/SoftLayer_Account/getQuotes/
https://softlayer.github.io/reference/services/SoftLayer_Billing_Order_Quote/
https://softlayer.github.io/reference/datatypes/SoftLayer_Billing_Order_Quote/
谢谢Albert GetedOrderContainer是我要找的东西。你知道吗
相关问题 更多 >
编程相关推荐