November 23, 2017


Get report of an specific scan request.

On this case we'll use the method getReport() from SoftLayer_Network_Security_Scanner_Request
service. The method will return a HTML string.
See below for more details.

Important manual pages:

Author: SoftLayer Technologies, Inc. <>

package main

import (

func main() {
	// SoftLayer API username and key
	username := "set me"
	apikey   := "set me"

	// The id of scan request you want to get its report.
	scanId := 2066403

	// Create a session
	sess := session.New(username, apikey)

	// Get SoftLayer_Network_Security_Scanner_Request service
	service := services.GetNetworkSecurityScannerRequestService(sess)

	// Use getReport() method to get specific information in HTML format
	report, err := service.Id(scanId).GetReport()
	if err != nil {
		fmt.Printf("\n Unable to get the scan's report:\n - %s\n", err)



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