VSI testing
Use the SoftLayer_Virtual_Guest service with the getObject method and look for dedicatedAccountHostOnlyFlag
. In the following example the response from the API is true which means this is a Private Node VSI.
curl -s --user "$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY" "https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/GUEST_ID/getObject?objectMask=mask\[dedicatedAccountHostOnlyFlag\]
{"dedicatedAccountHostOnlyFlag":true}%
Use the SoftLayer_Virtual_Guest service with the getLocalDiskFlag method. If the response is true the VSI is using a local disk. If it is false then the VSI is using SAN storage.
curl -s --user "$SOFTLAYER_USERNAME:$SOFTLAYER_API_KEY" "https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/GUEST_ID/getLocalDiskFlag" | python -m json.tool
false