softlayer 中的计费项目是什么
What are the items billable in softlayer
我可以使用哪个 API 来获取符合在 softlayer 帐户中计费的项目。例如:虚拟访客、裸机服务器、存储、网络等。如果 API 不存在,那么所有类别的设备都符合计费条件?
据我所知,不存在特定的 API 调用来检索可计费的项目,但您可以为下一张发票获取项目及其类别 (categoryCode)。
以下 Rest 调用将对此有所帮助:
https://$user$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getNextInvoiceTopLevelBillingItems?objectMask=mask[orderItem[item]]
Method: Get
此外,您还可以检索属于特定发票的项目:
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Billing_Invoice/8141353/getItems.json?objectMask=mask[id, billingItem[orderItem[item]]]
Method: Get
将 8141353 替换为您的发票 ID。
参考文献:
Updated
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getNextInvoiceTopLevelBillingItems.json?objectMask=mask[category[group]]
Method: Get
我可以使用哪个 API 来获取符合在 softlayer 帐户中计费的项目。例如:虚拟访客、裸机服务器、存储、网络等。如果 API 不存在,那么所有类别的设备都符合计费条件?
据我所知,不存在特定的 API 调用来检索可计费的项目,但您可以为下一张发票获取项目及其类别 (categoryCode)。
以下 Rest 调用将对此有所帮助:
https://$user$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getNextInvoiceTopLevelBillingItems?objectMask=mask[orderItem[item]]
Method: Get
此外,您还可以检索属于特定发票的项目:
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Billing_Invoice/8141353/getItems.json?objectMask=mask[id, billingItem[orderItem[item]]]
Method: Get
将 8141353 替换为您的发票 ID。
参考文献:
Updated
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getNextInvoiceTopLevelBillingItems.json?objectMask=mask[category[group]]
Method: Get