Method: Morpheus::CloudsInterface#firewall_enable

Defined in:
lib/morpheus/api/clouds_interface.rb

#firewall_enable(id) ⇒ Object



88
89
90
91
92
93
# File 'lib/morpheus/api/clouds_interface.rb', line 88

def firewall_enable(id)
  url = "#{@base_url}/api/zones/#{id}/security-groups/enable"
  headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' }
  opts = {method: :put, url: url, headers: headers}
  execute(opts)
end