Versions Compared

Key

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

Table of Contents

WADL

URL

http://hostname:8888/opennaas/resources?_wadl

...

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

POST

 
Path ParameterresourceIdId of the resource to be modifiedstarted.
Return- 

StopResource

The StopResource method stops a resource, only if it's in STARTED state.

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

POST

 
Path ParameterresourceIdId of the resource to be modifiedstopped.
Return- 

RemoveResource

The RemoveResource method removes a resource from OpenNaaS, only if it's in INITIALIZED state. It the resource is in STARTED state, it must be stopped before calling this method.

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

POST

 
Path ParameterresourceIdId of the resource to be modifiedremoved.
Return- 

GetResourceTypes

...

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

GET

 
ReturnList<String>Name of the resources types supported by OpenNaaS.

GetNameFromResourceID

Given the resourceId of an existing resource, this method return its name.

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

GET

 
Path ParameterresourceIdId of the resource to be modifiedwhich name we want to retrieve.
ReturnList<String>StringName of the resources types supported by OpenNaaS.

GetNameFromResouceID

...

resource identified by the given resourceId.

GetResourceDescriptor

Given the resourceId of an existing resource, this method returns its whole resource descriptor.

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

GET

 
Path ParameterresourceIdId of the resource which descriptor we want to retrieve
ReturnResourceDescriptorName of the resource identified by the given resourceId.