github.com/gophercloud/gophercloud@v1.11.0/openstack/compute/v2/extensions/remoteconsoles/doc.go (about) 1 /* 2 Package remoteconsoles provides the ability to create server remote consoles 3 through the Compute API. 4 You need to specify at least "2.6" microversion for the ComputeClient to use 5 that API. 6 7 Example of Creating a new RemoteConsole 8 9 computeClient, err := openstack.NewComputeV2(providerClient, endpointOptions) 10 computeClient.Microversion = "2.6" 11 12 createOpts := remoteconsoles.CreateOpts{ 13 Protocol: remoteconsoles.ConsoleProtocolVNC, 14 Type: remoteconsoles.ConsoleTypeNoVNC, 15 } 16 serverID := "b16ba811-199d-4ffd-8839-ba96c1185a67" 17 18 remtoteConsole, err := remoteconsoles.Create(computeClient, serverID, createOpts).Extract() 19 if err != nil { 20 panic(err) 21 } 22 23 fmt.Printf("Console URL: %s\n", remtoteConsole.URL) 24 */ 25 package remoteconsoles