lib/vcloud-rest/vcloud/vapp_networking.rb
def add_network_to_vapp(vAppId, network_section)
        params = {
          'method' => :put,
          'command' => "/vApp/vapp-#{vAppId}/networkConfigSection"
        }

        response, headers = send_request(params, network_section, "application/vnd.vmware.vcloud.networkConfigSection+xml")

        task_id = headers[:location].gsub(/.*\/task\//, "")
        task_id
      end
def add_network_to_vapp(vAppId, network_section)
        params = {
          'method' => :put,
          'command' => "/vApp/vapp-#{vAppId}/networkConfigSection"
        }

        response, headers = send_request(params, network_section, "application/vnd.vmware.vcloud.networkConfigSection+xml")

        task_id = headers[:location].gsub(/.*\/task\//, "")
        task_id
      end
def add_network_to_vapp ( vAppId , network_section ) params = { 'method' => :put , 'command' => "/vApp/vapp-#{vAppId}/networkConfigSection" } response , headers = send_request ( params , network_section , "application/vnd.vmware.vcloud.networkConfigSection+xml" ) task_id = headers [ :location ] . gsub ( / \/ \/ / , "" ) task_id end
Add a new network to a vApp
Add a new network to a vApp