September 19, 2016

Get Operating System Reference Codes

Retrieve Virtual Guest creation options, and print a list of available OS reference codes
package main

import (


func main() {
    // Create a session
    sess := session.New()

    // Invoke the 'GetCreateObjectOptions' method from the Virtual_Guest service
    opts, err := services.GetVirtualGuestService(sess).GetCreateObjectOptions()
    if err != nil {

    // Available properties for inspection:

    // Print all available OS reference codes:
    for _, os := range opts.OperatingSystems {


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