启用从 SoftLayer_account 对象获取 nextInvoiceTotalAmount

Enable to get the nextInvoiceTotalAmount from SoftLayer_account object

我无法从 SoftLayer_Account 对象中获取 nextInvoiceTotalAmount 使用 SoftLayer Rest API

https://api.softlayer.com/rest/v3.1/SoftLayer_Account/getObject.json?objectMask=mask[id,nextInvoiceTotalAmount,openTicketCount,openTicketsWaitingOnCustomerCount]

请问如何获取当前余额属性?

这是因为此属性需要在您的请求中使用 Legacy 对象掩码,对于当前余额,请求应在掩码中添加“balance”属性 ,试试这个改进的请求:

已更新 以检索当前余额和下一张发票金额。

https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Account/getObject?objectMask=id;nextInvoiceTotalAmount;openTicketCount;openTicketsWaitingOnCustomerCount;balance

不要忘记用有效凭据替换 [用户名][apiKey]

当前门户正在使用 SoftLayer_Account::getNextInvoiceTotalAmount 方法仅检索该特定属性,试试这个:

https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Account/getNextInvoiceTotalAmount

更多信息请看下面:

https://sldn.softlayer.com/reference/services/softlayer_account/getnextinvoicetotalamount

https://sldn.softlayer.com/article/Legacy-Object-Masks