答案 0 :(得分:3)
您可以使用SoftLayer_Virtual_Guest::getObject方法中的以下掩码获取该信息。
mask[consoleIpAddressRecord[ipAddress[ipAddress],port],operatingSystem[passwords]]
完整的REST调用应该是:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/[device_id]/getObject?objectMask=mask[consoleIpAddressRecord[ipAddress[ipAddress],port],operatingSystem[passwords]]
Method: GET
您也可以使用方法SoftLayer_Virtual_Guest::getSoftwareComponents分别获取相同的数据 和Softlayer_Virtual_Guest::getConsoleIpAddressRecord如下:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/[device_id]/getSoftwareComponents?objectMask=mask[passwords]
和
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/[device_id]/getConsoleIpAddressRecord?objectMask=mask[port,ipAddress[ipAddress]]
关于裸机服务器
考虑到您需要进入SoftLayer VPN以通过KMV控制台启动远程访问,您可以使用以下REST调用来获取访问信息:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Hardware_Server/[device_id]/getObject?objectMask=mask[id,remoteManagementAccounts,remoteManagementUsers,remoteManagementComponent]
我希望这对你有所帮助。