Child pages
  • Add Blueprint
Skip to end of metadata
Go to start of metadata

Use the following request to add new blueprint:

POST /blueprints.xml
POST /blueprints.json

XML Request example

curl -i -u user:userpass -X POST http://onapp.test/blueprints.xml -d '<blueprint><label>johnblueprint</label><blueprint_template_id>14</blueprint_template_id><data_store_id>5</data_store_id><customer_network_id>116</customer_network_id><required_startup>1</required_startup></blueprint>' -H 'Accept: application/xml' -H 'Content-type: application/xml'


JSON Request example

curl -i -u user:userpass -X POST http://onapp.test/blueprints.json -d '{"blueprint":{"label":"johnblueprint",
"blueprint_template_id": "14","data_store_id":"5","customer_network_id":"116", "required_startup":"1"}}' -H 'Accept: application/json' -H 'Content-type: application/json'

Where:

label - blueprint name

blueprint_template_id - ID of the template to build the blueprint from

data_store_id - ID of a data store to which the blueprint will be assigned

customer_network - ID of the customer network which will be used for this blueprint

required_startup - set 1 to start up the blueprint after creation

 

XML Output example

 <?xml version="1.0" encoding="UTF-8"?>
<blueprint>
  <blueprint_template_id type="integer">14</blueprint_template_id>
  <built type="boolean">false</built>
  <created_at type="datetime">2013-08-28T16:13:55+03:00</created_at>
  <customer_network_id type="integer">116</customer_network_id>
  <data_store_id type="integer">5</data_store_id>
  <hypervisor_id nil="true"/>
  <id type="integer">59</id>
  <identifier>tdo20mf3ue792s</identifier>
  <label>blueprint</label>
  <state>off</state>
  <updated_at type="datetime">2013-08-28T16:13:55+03:00</updated_at>
  <user_id type="integer">618</user_id>
</blueprint>
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels