启用从SoftLayer_account对象获取nextInvoiceTotalAmount

时间:2017-08-22 13:39:59

标签: ibm-cloud-infrastructure

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

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

你能让我知道如何获得当前余额的属性吗?

1 个答案:

答案 0 :(得分:0)

这是由于此属性要求在您的请求中使用旧版对象掩码,对于当前余额,请求应添加" 余额"掩码中的属性,尝试这个改进的请求:

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

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