...
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/resources/ | |
Method | GET | |
Return | List<String> | Ids of all existing resources. |
Response Example
Code Block | ||||
---|---|---|---|---|
| ||||
<resources> <resource>b6c3a6c9-9a2e-4bc4-9604-13d014bd508f</resource> <resource>584c96d5-2221-47d0-8c51-c5d4d45f3ff4</resource> <resource>c65gfr15-22er-74j0-87gh-hg78nnlo0aqe</resource> </resources> |
...
GetResourceInfoFromId
Returns the main information from a specific resource: id, name, type, state and the list of capabilities it contains.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/resources/{resourceId} | |
Method | GET | |
Return | ResourceInfo | Id, name, type, state and list of capabilities of the resource. |
Response Example
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <resourceInfo> <resourceId>584c96d5-2221-47d0-8c51-c5d4d45f3ff4< |
...
/resourceId>
<name>myre</name>
<type>router</type>
<state>ACTIVE</state>
<capabilities>
<capability>ip</capability>
<capability>chassis</capability>
<capability>bgp</capability>
</capabilities>
</resourceInfo> |