我无法使用SoftLayer Rest API从SoftLayer_Account对象获取nextInvoiceTotalAmount
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
不要忘记用有效的凭证替换[username]和[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