...
Value | Description | ||
---|---|---|---|
URL | http://hostname:8888/opennaas/resources/create | ||
Method | POST | ||
Parameter | ResourceDescriptor | Resource descriptor containing the resource info (type, name, description) and its list of capabilities. | |
Return | String | Resource id of the created resource. |
Body Example
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<?xml version="1.0" encoding="UTF-8"?>
<resourceDescriptor xmlns:ns2="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns3="http://www.science.uva.nl/research/sne/ndl#" xmlns:ns4="http://www.science.uva.nl/research/sne/ndl/domain#" xmlns:ns5="org.opennaas.core.resources.descriptor.vcpe">
<capabilityDescriptors>
<information>
<name>bgp capability</name>
<type>bgp</type>
</information>
<id>0</id>
</capabilityDescriptors>
<capabilityDescriptors>
<information>
<name>chassis capability</name>
<type>chassis</type>
</information>
<id>0</id>
</capabilityDescriptors>
<information>
<name>myre</name>
<type>router</type>
</information>
<properties />
</resourceDescriptor> |
Response Example
No Format |
---|
HTTP/1.1 200 OK
Content-Type: application/xml
Date: Wed, 15 Jan 2014 14:22:25 GMT
Content-Length: 36
Server: Jetty(7.5.4.v20111024)
584c96d5-2221-47d0-8c51-c5d4d45f3ff4 |