November 23, 2017
Get Scan vulnerabilities from a VSI.

Important manual pages:

import SoftLayer
import json

USERNAME = 'set me'
API_KEY = 'set me'

# The virtual guest ID you want to get the vulnerabilities scan.
virtualGuestId = 11528955

# Declares a new API service object.
client = SoftLayer.Client(username=USERNAME, api_key=API_KEY)
virtualGuestService = client['SoftLayer_Virtual_Guest']

# Declares an object mask to get information about the vulnerabilities scans in the VSI.
objectMask = "mask[securityScanRequests]"

    result = virtualGuestService.getObject(id=virtualGuestId, mask=objectMask)
    print(json.dumps(result["securityScanRequests"], sort_keys=True, indent=2, separators=(',', ': ')))
except SoftLayer.SoftLayerAPIError as e:
    print("Error  faultCode=%s, faultString=%s"
          % (e.faultCode, e.faultString))


If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue