meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:rest_api [2016/06/09 15:27] – Updated attributes for rack kru | documentation:rest_api [2016/11/03 13:57] (current) – removed vor | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== REST API ====== | ||
| - | |||
| - | ===== Access ===== | ||
| - | |||
| - | The RECS< | ||
| - | |||
| - | Accessing the REST API requires HTTP Basic authentication. The authenticated user has to be in the " | ||
| - | |||
| - | ===== Components ===== | ||
| - | |||
| - | The RECS< | ||
| - | |||
| - | ^ Attribute ^ Description ^ | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |||
| - | ==== Node ==== | ||
| - | |||
| - | Example XML: | ||
| - | |||
| - | < | ||
| - | actualPEGPowerUsage=" | ||
| - | baseBoardId=" | ||
| - | lastSensorUpdate=" | ||
| - | highestTemperature=" | ||
| - | |||
| - | The following table shows the possible attributes (some are optional) and their meaning: \\ | ||
| - | |||
| - | ^ Attribute ^ Description ^ Unit ^ Data type ^ | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |||
| - | In accordance to the component node the API offers nodeList which returns multiple instances of node. | ||
| - | |||
| - | ==== Backplane ==== | ||
| - | |||
| - | Example XML: | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | The attributes have the following meaning: \\ | ||
| - | |||
| - | ^ Attribute ^ Description ^ Unit ^ Data type ^ | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |||
| - | In accordance to the component backplane the API offers backplaneList which returns multiple instances of backplane. | ||
| - | |||
| - | ==== Baseboard ==== | ||
| - | |||
| - | Example XML: | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | The attributes have the following meaning: \\ | ||
| - | |||
| - | ^ Attribute ^ Description ^ Unit ^ Data type ^ | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |||
| - | In accordance to the component baseboard the API offers baseboardList which returns multiple instances of baseboard. | ||
| - | |||
| - | ==== RCU ==== | ||
| - | |||
| - | Example XML: | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | The attributes have the following meaning: \\ | ||
| - | |||
| - | ^ Attribute ^ Description ^ Unit ^ Data type ^ | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |||
| - | In accordance to the component rcu the API offers rcuList which returns multiple instances of rcu. | ||
| - | |||
| - | ==== Rack ==== | ||
| - | |||
| - | Example XML: | ||
| - | |||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | The attributes have the following meaning: \\ | ||
| - | |||
| - | ^ Attribute ^ Description ^ Unit ^ Data type ^ | ||
| - | |'' | ||
| - | |'' | ||
| - | |'' | ||
| - | |||
| - | In accordance to the component rack the API offers rackList which returns multiple instances of rack. | ||
| - | |||
| - | ===== Resources ===== | ||
| - | |||
| - | The resources are split into monitoring resources (for pure information gathering) and management resources (for changing the system configuration or state). | ||
| - | |||
| - | ==== Monitoring ==== | ||
| - | |||
| - | For monitoring the following resources are available: \\ | ||
| - | |||
| - | ^ Attribute ^ Description ^ HTTP Method ^ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |||
| - | ==== Management ==== | ||
| - | |||
| - | The management of individual components can be found under the " | ||
| - | |||
| - | ^ Attribute ^ Description ^ HTTP method ^ Parameter ^ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |''/ | ||
| - | |||
| - | ==== Errors ==== | ||
| - | |||
| - | Information about the success or failure of management requests are returned via HTTP status codes. Please have a look at [[http:// | ||
| - | |||