class Bmc::Sdk::CreateServer
CreateServer
command create (request) a new server for account. Server DNS will be configured to access Google's public DNS at 8.8.8.8.
Attributes
server[RW]
Public Class Methods
new(client, server)
click to toggle source
server is a ProvisionedServer
# File lib/commands.rb, line 13 def initialize(client, server) @client = client @server = server end
Public Instance Methods
execute()
click to toggle source
# File lib/commands.rb, line 18 def execute return @client.post( "#{Entrypoint}servers", headers: {'Content-Type': 'application/json'}, body: @server.to_json) end