0

对于已配置的 SoftLayer 虚拟服务器和裸机服务器。

SoftLayer_Virtual_Guest 和 SoftLayer_Hardware 中的哪个属性/方法可以返回设备的上行端口速度值?

谢谢。

4

2 回答 2

0

要从已配置的虚拟访客/硬件中获取项目,您可以使用以下 GET 请求:

* Virtual Guest:



   https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/[vsi_id]/getObject?objectMask=mask[id,fullyQualifiedDomainName,billingItem[id,orderItem[id,description,order[id,items]]]]

* Hardware:

   https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Hardware/[hardware_id]/getObject?objectMask=mask[id,fullyQualifiedDomainName,billingItem[id,orderItem[id,description,order[id,items]]]]
于 2016-01-04T15:53:58.680 回答
0

您可以尝试获取设备计费项中的项目并查找端口速度值。

这些 RestFul 将返回项目

https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware_Server/$HardwareID/getObject?objectMask=mask[billingItem[children[item]]]

Method GET

https://api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/$VSIID/getObject?objectMask=mask[billingItem[children[item]]]

Method GET

Note: Replace $HardwareID and $VSIID with the ID of the hardware or VSI you wish to see the items

问候

于 2015-12-31T14:29:24.307 回答