Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 ValueDescription
URLhttp://hostname:8888/opennaas/resources/ 
Method

GET

 
ReturnList<String>Ids of all existing resources.
Response Example
Code Block
themeEclipse
languagehtml/xml
<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.

 ValueDescription
URLhttp://hostname:8888/opennaas/resources/{resourceId} 
Method

GET

 
ReturnResourceInfoId, name, type, state and list of capabilities of the resource.
Response Example
Code Block
themeEclipse
languagehtml/xml
      <?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>