2010-11-08 07:21:31 -05:00
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class Brightbox
|
2010-11-08 07:21:31 -05:00
|
|
|
class Real
|
2012-11-15 09:30:09 -05:00
|
|
|
# Requests a new cloud IP address for the account.
|
|
|
|
#
|
|
|
|
# @param [Hash] options
|
|
|
|
# @option options [String] :reverse_dns Reverse DNS hostname
|
|
|
|
# @option options [String] :name Name for Cloud IP
|
|
|
|
# @option options [Array] :port_translators Port on which external clients connect and port on which your service is listening.
|
|
|
|
#
|
|
|
|
# @return [Hash, nil] The JSON response parsed to a Hash or nil if no options passed
|
|
|
|
#
|
|
|
|
# @see https://api.gb1.brightbox.com/1.0/#cloud_ip_create_cloud_ip
|
|
|
|
#
|
2012-10-29 13:55:45 -04:00
|
|
|
def create_cloud_ip(options = {})
|
|
|
|
request("post", "/1.0/cloud_ips", [201], options)
|
2010-11-08 07:21:31 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2012-04-11 06:17:26 -04:00
|
|
|
end
|