Skip to content

Instantly share code, notes, and snippets.

@bascht
Created November 29, 2013 17:00
Show Gist options
  • Select an option

  • Save bascht/7708753 to your computer and use it in GitHub Desktop.

Select an option

Save bascht/7708753 to your computer and use it in GitHub Desktop.
Processing by Api::V1::HostsController#create as JSON
Parameters: {"capabilities"=>"build", "host"=>{"ptable_id"=>1, "operatingsystem_id"=>1, "medium_id"=>5, "type"=>"Host::Managed", "name"=>"…", "environment_id"=>8, "provision_method"=>"build", "domain_id"=>"1", "architecture_id"=>"1", "compute_attributes"=>{"path"=>"…", "volumes_attributes"=>{"new_volumes"=>{"name"=>"Hard disk", "thin"=>true, "size_gb"=>10, "datastore"=>"…"}, "0"=>{"name"=>"Hard disk", "thin"=>true, "size_gb"=>10, "datastore"=>"…"}}, "interfaces_attributes"=>{"0"=>{"network"=>"VLan496"}, "new_interfaces"=>{"network"=>"…"}}, "start"=>1, "memory_mb"=>1024, "cluster"=>"…", "power_action"=>"start", "cpus"=>1}, "build"=>1, "compute_resource_id"=>1, "enabled"=>1, "subnet_id"=>1}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment