EMI.CONF.SET
Sets the EMI.CONF key in the configuration data state tree “new” with given key value. The changes take effect in the system only after commit (please see emi.conf.commit).
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| session | JSON String | yes | Session ID |
| key | JSON String or JSON Array of Strings | yes | Specify EMI.CONF key which info is to be retrieved |
| value | JSON String | yes | Specify EMI.CONF key value which is to be set |
Response
No response result returned if request is successful.
Error Codes
| Reference | Description |
|---|---|
| EOK | No errors (contains warnings) |
| EBADPARAM | Error in parameters |
| ENOTFOUND | The specified EMI.CONF key not found |
| 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.conf.set",
"params":
{ "session":"",
"key":"aa.bb.cc",
"value":"10"
}
}
Response from EMI-RPC Server:
{
"EMI-RPC": "1.0",
"id": 2
}
