github.com/gophercloud/gophercloud@v1.11.0/openstack/compute/v2/extensions/extendedserverattributes/results.go (about)

     1  package extendedserverattributes
     2  
     3  // ServerAttributesExt represents basic OS-EXT-SRV-ATTR server response fields.
     4  // You should use extract methods from microversions.go to retrieve additional
     5  // fields.
     6  type ServerAttributesExt struct {
     7  	// Host is the host/hypervisor that the instance is hosted on.
     8  	Host string `json:"OS-EXT-SRV-ATTR:host"`
     9  
    10  	// InstanceName is the name of the instance.
    11  	InstanceName string `json:"OS-EXT-SRV-ATTR:instance_name"`
    12  
    13  	// HypervisorHostname is the hostname of the host/hypervisor that the
    14  	// instance is hosted on.
    15  	HypervisorHostname string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname"`
    16  
    17  	// ReservationID is the reservation ID of the instance.
    18  	// This requires microversion 2.3 or later.
    19  	ReservationID *string `json:"OS-EXT-SRV-ATTR:reservation_id"`
    20  
    21  	// LaunchIndex is the launch index of the instance.
    22  	// This requires microversion 2.3 or later.
    23  	LaunchIndex *int `json:"OS-EXT-SRV-ATTR:launch_index"`
    24  
    25  	// RAMDiskID is the ID of the RAM disk image of the instance.
    26  	// This requires microversion 2.3 or later.
    27  	RAMDiskID *string `json:"OS-EXT-SRV-ATTR:ramdisk_id"`
    28  
    29  	// KernelID is the ID of the kernel image of the instance.
    30  	// This requires microversion 2.3 or later.
    31  	KernelID *string `json:"OS-EXT-SRV-ATTR:kernel_id"`
    32  
    33  	// Hostname is the hostname of the instance.
    34  	// This requires microversion 2.3 or later.
    35  	Hostname *string `json:"OS-EXT-SRV-ATTR:hostname"`
    36  
    37  	// RootDeviceName is the name of the root device of the instance.
    38  	// This requires microversion 2.3 or later.
    39  	RootDeviceName *string `json:"OS-EXT-SRV-ATTR:root_device_name"`
    40  
    41  	// Userdata is the userdata of the instance.
    42  	// This requires microversion 2.3 or later.
    43  	Userdata *string `json:"OS-EXT-SRV-ATTR:user_data"`
    44  }