<p>如果您试图检索在放置报价单时发送的相同订单信息结构,那么您需要使用方法<a href="https://softlayer.github.io/reference/services/SoftLayer_Billing_Order_Quote/getRecalculatedOrderContainer/" rel="nofollow noreferrer">getRecalculatedOrderContainer</a>,它应该返回packageId、presetId、location、item prices等,但据我所知,由于这些值,所以hostname、domain、sshKeys、provisionScripts、vlan不在报价单中
可能会随着时间的推移而改变用户在下订单之前是否需要新的值,或者是为了避免由于VLAN和子网等资源的可用性而导致的系统错误。你知道吗</p>
<pre><code>https://[username]:[apikey]api.softlayer.com/rest/v3/SoftLayer_Billing_Order_Quote/[quoteID]/getRecalculatedOrderContainer
Method: GET
</code></pre>
<p>现在,如果您想检索orderId、items等,那么您需要使用<a href="https://softlayer.github.io/article/object-masks/" rel="nofollow noreferrer">object-mask</a>特性无论您使用的是方法<code>Account::getQuotes</code>还是<code>SoftLayer_Billing_Order_Quote::getObject</code>,它们都返回列表中的数据类型<a href="https://softlayer.github.io/reference/datatypes/SoftLayer_Billing_Order_Quote/" rel="nofollow noreferrer">SoftLayer_Billing_Order_Quote</a>,或者作为单个对象。你知道吗</p>
<p><strong>帐户::getQuotes</strong></p>
<pre><code>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
</code></pre>
<p><strong>SoftLayer\u Billing\u Order\u Quote::getObject</strong></p>
<pre><code>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
</code></pre>
<p>参考文献:</p>
<p><a href="https://softlayer.github.io/reference/services/SoftLayer_Account/getQuotes/" rel="nofollow noreferrer">https://softlayer.github.io/reference/services/SoftLayer_Account/getQuotes/</a></p>
<p><a href="https://softlayer.github.io/reference/services/SoftLayer_Billing_Order_Quote/" rel="nofollow noreferrer">https://softlayer.github.io/reference/services/SoftLayer_Billing_Order_Quote/</a></p>
<p><a href="https://softlayer.github.io/reference/datatypes/SoftLayer_Billing_Order_Quote/" rel="nofollow noreferrer">https://softlayer.github.io/reference/datatypes/SoftLayer_Billing_Order_Quote/</a></p>