EMI.STAT.LIST

September 20th, 2009 Leave a comment Go to comments

This feature is still under development

This method lists the EMI.STAT modules that are present in the system.

Request Parameters

Name Type Mandatory Description
session JSON String yes Session ID
module JSON String no Specify EMI.STAT module name for which the information is to be retrieved.

Response

Name Type Description
data JSON Array Result array

Result Array is JSON Array which contains JSON Objects. The contained JSON Object(s) Structure:

{
  data:
  [
    {
      "module_name": _JSON String_,
      "version": _JSON String_,
      "description": _JSON String_,
      "author": _JSON String_,
      "dependencies": _JSON String_,
      "size": _JSON String_,
      "friendly_name": _JSON String_,
      "binary": _JSON String_
    }, ...
  ]
}

Error Codes

Reference Description
EOK No errors (contains warnings)
EGENERAL Some other error
ESESSION Session with the given ID is not found

Examples

Request to EMI-RPC Server:

{
 "EMI-RPC": "1.0",
 "id": 2,
 "method": "emi.stat.list",
 "params":
	{ "session":"session_id" }
}

Response from EMI-RPC Server:

{
 "EMI-RPC": "1.0",
 "id": 2,
 "result":{ "data": [{module1_data} , {module2_data},… }
}
  1. No comments yet.
  1. No trackbacks yet.