lib/yao/resources/server.rb in yao-0.12.0 vs lib/yao/resources/server.rb in yao-0.13.0
- old
+ new
@@ -51,9 +51,14 @@
def self.remove_security_group(id, sg_name)
action(id, {"removeSecurityGroup": {"name": sg_name}})
end
+ def self.get_vnc_console(id)
+ response = action(id, {"os-getVNCConsole": {"type": "novnc"}})
+ response.dig("console", "url")
+ end
+
class << self
alias :stop :shutoff
end
extend MetadataAvailable