[英]SoftLayer API : How to get list VM created from baremetal
I would like to get a list of VMs provisioned from baremetal servers rather than from Xen servers. 我想获得从裸机服务器而非Xen服务器配置的VM的列表。
The following api lists me VMs from Xen server and not from Baremetal, https://api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests 以下api列出了来自Xen服务器而不是来自Baremetal的VM, https: //api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests
I've never tried that and I am not sure if that is possible, but I think you may see this methods: 我从未尝试过,并且不确定是否可行,但是我认为您可能会看到以下方法:
Your bare metal server should have a virtual host you can get that virtual host using this: http://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/getVirtualHost 您的裸机服务器应具有一个虚拟主机,您可以使用以下虚拟主机: http : //sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/getVirtualHost
If you do not get any virtual host you can try import it using this: http://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/importVirtualHost 如果没有任何虚拟主机,则可以尝试使用以下虚拟主机导入: http : //sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/importVirtualHost
If you can get the virtual host you can use these method to manage the guests: http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Host 如果可以获取虚拟主机,则可以使用以下方法来管理访客: http : //sldn.softlayer.com/reference/services/SoftLayer_Virtual_Host
and this one is for list the guests http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Host/getGuests 这是用于列出来宾的http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Host/getGuests
Regards 问候
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.