Tani web based tools  2.01.01
Tani web socket JSON frames
license handling


License/Read

Read licensed licenses + useful addons.

Request

empty

Response

Example

in:
{
"function": "License/Read",
"id": "some-text-or-number",
"data": {}
}
out:
{
"function": "License/Read",
"id": "some-text-or-number",
"status": 0,
"data": {
"Licenses": [
{
TODO
}
]
}
}


License/ReadEx

Read all available licenses.

Request

empty

Response

See also
License/Read

Example

in:
{
"function": "License/ReadEx",
"id": "some-text-or-number",
"data": {}
}
out:
{
"function": "License/ReadEx",
"id": "some-text-or-number",
"status": 0,
"data": {
"Licenses": [
{
TODO
}
]
}
}


License/ReadRent

Read licenses marked for software renting.

Request

empty

Response

See also
License/Read

Example

in:
{
"function": "License/ReadRent",
"id": "some-text-or-number",
"data": {}
}
out:
{
"function": "License/ReadRent",
"id": "some-text-or-number",
"status": 0,
"data": {
"Licenses": [
{
TODO
}
]
}
}


License/ReadAddons

Read the available addons for a base license.

Request

empty

Response

See also
License/Read

Example

in:
{
"function": "License/ReadAddons",
"id": "some-text-or-number",
"data": {
"LicenseOrderNo": "123-45-678"
}
}
out:
{
"function": "License/ReadAddons",
"id": "some-text-or-number",
"status": 0,
"data": {
"Licenses": [
{
TODO
}
]
}
}


License/Write

Write license information.

Request

note: exactly one of Licenses and LicensesText is required

Response

empty

Example

in:
{
"function": "License/Write",
"id": "some-text-or-number",
"data": {
TODO
}
}
out:
{
"function": "License/Write",
"id": "some-text-or-number",
"status": 0,
"data": {}
}


License/SwitchDemo

Change the demo license.

Request

Response

empty

Example

in:
{
"function": "License/SwitchDemo",
"id": "some-text-or-number",
"data": {
"LicenseOrderNo": "123-4567-89"
}
}
out:
{
"function": "License/SwitchDemo",
"id": "some-text-or-number",
"status": 0,
"data": {}
}


License/ReadHardwareReference

Read list of possible hardware reference values.

Request

empty

Response

Example

in:
{
"function": "License/ReadHardwareReference",
"id": "some-text-or-number",
"data": {}
}
out:
{
"function": "License/ReadHardwareReference",
"id": "some-text-or-number",
"status": 0,
"data": {
"References": [
{
"Method": "MAC",
"Index": 0,
"Data": "001122334455",
"Name": "eth0"
}
]
}
}


License/SetHardwareReference

Sets the hardware reference value to use for future license requests.

Request

Response

empty

Example

in:
{
"function": "License/SetHardwareReference",
"id": "some-text-or-number",
"data": {
"Method": "MAC",
"Index": 0,
}
}
out:
{
"function": "License/SetHardwareReference",
"id": "some-text-or-number",
"status": 0,
"data": {}
}