Table of Contents |
---|
WADL
URL
http://hostname:8888/opennaas/resources?_wadl
...
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/resources/start/{resourceId} | |
Method | POST | |
Path Parameter | resourceId | Id of the resource to be modifiedstarted. |
Return | - |
StopResource
The StopResource method stops a resource, only if it's in STARTED state.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/resources/stop/{resourceId} | |
Method | POST | |
Path Parameter | resourceId | Id 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.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/resources/remove/{resourceId} | |
Method | POST | |
Path Parameter | resourceId | Id of the resource to be modifiedremoved. |
Return | - |
GetResourceTypes
...
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/getResourceTypes/ | |
Method | GET | |
Return | List<String> | Name of the resources types supported by OpenNaaS. |
GetNameFromResourceID
Given the resourceId of an existing resource, this method return its name.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/resources/getName/{resourceId} | |
Method | GET | |
Path Parameter | resourceId | Id of the resource to be modifiedwhich name we want to retrieve. |
Return | List<String>String | Name 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.
Value | Description | |
---|---|---|
URL | http://hostname:8888/opennaas/resources/getDescriptor/{resourceId} | |
Method | GET | |
Path Parameter | resourceId | Id of the resource which descriptor we want to retrieve |
Return | ResourceDescriptor | Name of the resource identified by the given resourceId. |