You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Получение информации о серийном номере

Авторизация требуется.

GET /v1.0/serial/getinfo/{serialstring}

Возвращает элемент serial:

{
    "serial": {
        "_id": 10176,
        "activationcount": 1,
        "activationlimit": 30,
        "binding": {
            "CAN_REPLACE_CPU": false,
            "CAN_REPLACE_DVD": false,
            "CAN_REPLACE_HDD": false,
            "CAN_REPLACE_MAC": false,
            "CAN_REPLACE_MOTHERBOARD": false,
            "CAN_REPLACE_OS": false,
            "CPU": true,
            "DVD": false,
            "HDD": true,
            "MAC": true,
            "MOTHERBOARD": true,
            "OS": false
        },
        "binding_maxhardwarechangenumber": 0,
        "customer": {
            "_id": 246,
            "archivationdate": 0,
            "archived": false,
            "companyname": "",
            "description": "Autocreated from activator info",
            "email": "bma_customer@guardant.ru",
            "lastname": "",
            "name": "bma_customer",
            "phone": "+7(495)555-55-55",
            "status": 0
        },
        "dongleid": -1235188599,
        "licensecontainerversion": 393218,
        "serialstring": "LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP",
        "status": 0
    }
}

Изменение серийного номера

Авторизация требуется.  Входные параметры RAW JSON:

{
"status":0,
"activationLimit":9
}

Значения параметры status:

  • 0 NORMAL, 
  • 1 BLOCKED (номер заблокирован).

Нельзя задать лимит активаций ниже, чем текущее число число реальных активаций (activationcount) и выше, чем:

  • 50 номеров для заказа с кодами доступа, отличными от демонстрационных;
  • 10 номеров демо-заказа.

PUT /v1.0/serials/{id}

Возвращает элемент serial:

{
"serial": {
"_id": 58273,
"activationcount": 4,
"activationlimit": 9,
"dongleid": -1244123347,
"serialstring": "w388Nt-ecbUam-hp1h3M-mxXgHp-tdk9k7",
"status": 0
}
}

Получение актуальной лицензии для серийного номера

Авторизация требуется.

GET /v1.0/serials/{id}/getactuallicense

Возвращает элемент serial:

{
    "serial": {
        "_id": 10176,
        "activationcount": 0,
        "activationlimit": 30,
        "actuallicense": [
            {
                "_id": 10044,
                "accesscode_id": 4,
                "archivationdate": 0,
                "archived": false,
                "binding": {
                    "CAN_REPLACE_CPU": false,
                    "CAN_REPLACE_DVD": false,
                    "CAN_REPLACE_HDD": false,
                    "CAN_REPLACE_MAC": false,
                    "CAN_REPLACE_MOTHERBOARD": false,
                    "CAN_REPLACE_OS": false,
                    "CPU": true,
                    "DVD": false,
                    "HDD": true,
                    "MAC": true,
                    "MOTHERBOARD": true,
                    "OS": false
                },
                "binding_maxhardwarechangenumber": 0,
                "description": "product43",
                "featuresWithLicenses": [
                    {
                        "_id": 10045,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 2,
                            "flags": 0,
                            "netlicensescount": 2,
                            "rentbegindate": 1530910800,
                            "rentdayscount": 0,
                            "rentenddate": 1541883600,
                            "runcounter": 0
                        },
                        "description": "feature74",
                        "featurenumber": 74,
                        "license": {
                            "consumptionmode": 2,
                            "flags": 0,
                            "netlicensescount": 2,
                            "rentbegindate": 1530910800,
                            "rentdayscount": -842150451,
                            "rentenddate": 1541883600,
                            "runcounter": 0
                        },
                        "name": "feature74"
                    },
                    {
                        "_id": 10046,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 10,
                            "rentbegindate": 0,
                            "rentdayscount": 110,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "description": "feature75",
                        "featurenumber": 75,
                        "license": {
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 10,
                            "rentbegindate": 0,
                            "rentdayscount": 110,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "name": "feature75"
                    },
                    {
                        "_id": 10047,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 0,
                            "rentbegindate": 0,
                            "rentdayscount": 11,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "description": "feature76",
                        "featurenumber": 76,
                        "license": {
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 0,
                            "rentbegindate": 0,
                            "rentdayscount": 11,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "name": "feature76"
                    }
                ],
                "flags": 0,
                "modification": 0,
                "name": "product43",
                "productnumber": 43,
                "status": 1
            },
            {
                "_id": 10045,
                "accesscode_id": 4,
                "archivationdate": 0,
                "archived": false,
                "binding": {
                    "CAN_REPLACE_CPU": false,
                    "CAN_REPLACE_DVD": false,
                    "CAN_REPLACE_HDD": false,
                    "CAN_REPLACE_MAC": false,
                    "CAN_REPLACE_MOTHERBOARD": false,
                    "CAN_REPLACE_OS": false,
                    "CPU": true,
                    "DVD": false,
                    "HDD": true,
                    "MAC": true,
                    "MOTHERBOARD": true,
                    "OS": false
                },
                "binding_maxhardwarechangenumber": 0,
                "description": "product44",
                "featuresWithLicenses": [
                    {
                        "_id": 10042,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 34,
                            "rentbegindate": 0,
                            "rentdayscount": 40,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "description": "feature71",
                        "featurenumber": 71,
                        "license": {
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 34,
                            "rentbegindate": 0,
                            "rentdayscount": 40,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "name": "feature71"
                    },
                    {
                        "_id": 10048,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 2,
                            "flags": 0,
                            "netlicensescount": 20,
                            "rentbegindate": 0,
                            "rentdayscount": 365,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "description": "feature77",
                        "featurenumber": 77,
                        "license": {
                            "consumptionmode": 2,
                            "flags": 0,
                            "netlicensescount": 20,
                            "rentbegindate": 0,
                            "rentdayscount": 365,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "name": "feature77"
                    }
                ],
                "flags": 0,
                "modification": 0,
                "name": "product44",
                "productnumber": 44,
                "status": 1
            },
            {
                "_id": 10047,
                "accesscode_id": 4,
                "archivationdate": 0,
                "archived": false,
                "binding": {
                    "CAN_REPLACE_CPU": false,
                    "CAN_REPLACE_DVD": false,
                    "CAN_REPLACE_HDD": false,
                    "CAN_REPLACE_MAC": false,
                    "CAN_REPLACE_MOTHERBOARD": false,
                    "CAN_REPLACE_OS": false,
                    "CPU": true,
                    "DVD": false,
                    "HDD": true,
                    "MAC": true,
                    "MOTHERBOARD": true,
                    "OS": false
                },
                "binding_maxhardwarechangenumber": 0,
                "description": "product42_1",
                "featuresWithLicenses": [
                    {
                        "_id": 10042,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 45,
                            "rentbegindate": 0,
                            "rentdayscount": 88,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "description": "feature71",
                        "featurenumber": 71,
                        "license": {
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 56,
                            "rentbegindate": 0,
                            "rentdayscount": 238,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "name": "feature71"
                    },
                    {
                        "_id": 10047,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 13,
                            "rentbegindate": 0,
                            "rentdayscount": 23,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "description": "feature76",
                        "featurenumber": 76,
                        "license": {
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 13,
                            "rentbegindate": 0,
                            "rentdayscount": 23,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "name": "feature76"
                    }
                ],
                "flags": 0,
                "modification": 1,
                "name": "product42_1",
                "productnumber": 42,
                "status": 1
            },
            {
                "_id": 10046,
                "accesscode_id": 4,
                "archivationdate": 0,
                "archived": false,
                "binding": {
                    "CAN_REPLACE_CPU": false,
                    "CAN_REPLACE_DVD": false,
                    "CAN_REPLACE_HDD": false,
                    "CAN_REPLACE_MAC": false,
                    "CAN_REPLACE_MOTHERBOARD": false,
                    "CAN_REPLACE_OS": false,
                    "CPU": true,
                    "DVD": false,
                    "HDD": true,
                    "MAC": true,
                    "MOTHERBOARD": true,
                    "OS": false
                },
                "binding_maxhardwarechangenumber": 0,
                "description": "product45",
                "featuresWithLicenses": [
                    {
                        "_id": 10043,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 9,
                            "rentbegindate": 1633813200,
                            "rentdayscount": 0,
                            "rentenddate": 1633899600,
                            "runcounter": 0
                        },
                        "description": "feature72",
                        "featurenumber": 72,
                        "license": {
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 18,
                            "rentbegindate": 1633813200,
                            "rentdayscount": -842150451,
                            "rentenddate": 1633899600,
                            "runcounter": 0
                        },
                        "name": "feature72"
                    },
                    {
                        "_id": 10046,
                        "archivationdate": 0,
                        "archived": false,
                        "defaultLicense": {
                            "canexclude": true,
                            "canmodify": true,
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 90,
                            "rentbegindate": 0,
                            "rentdayscount": 38,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "description": "feature75",
                        "featurenumber": 75,
                        "license": {
                            "consumptionmode": 1,
                            "flags": 0,
                            "netlicensescount": 90,
                            "rentbegindate": 0,
                            "rentdayscount": 38,
                            "rentenddate": 0,
                            "runcounter": 0
                        },
                        "name": "feature75"
                    }
                ],
                "flags": 0,
                "modification": 0,
                "name": "product45",
                "productnumber": 45,
                "status": 1
            }
        ],
        "dongleid": -1235188599,
        "licensecontainerversion": 393218,
        "serialstring": "LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP",
        "status": 0
    }
}

Получение истории событий по серийному номеру

Авторизация требуется. 

Входные параметры RAW JSON:

{"serialNumber":"LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP"}

POST /v1.0/getserialhistory


Для запроса доступна сортировка по actionDate и пагинация.  Значения параметров сортировки и пагинации по умолчанию: direction=asc&offset=0&limit=100.

В данном запросе возможно указать:

  • параметр actiondatebegin=значение_времени (например, 1550149997). Будут отобраны все события с совпадающим или более поздним временем. 
  • параметр actiondateend=значение_времени (например, 1550149999). Будут отобраны все события с совпадающим или более ранним временем.
  • оба параметра actiondatebegin и actiondateend одновременно. Будут отобраны событие из отрезка времени [actiondatebegin, actiondateend].
  • параметр actionresult=value1[,value2,value3,...]. Например, actionresult=0,2,11. Будут отобраны только события, у которых actionResult совпадает с одним из перечисленных значений.
  • параметр hardwaregroupid=value. Например, hardwaregroupid=0. Будут отобраны лишь события для записей, принадлежащих группе 0. Абстрактное число hardwaregroupid назначается записям, сходным по значениям хэшей оборудования с учетом выбранной в продукте схемы привязки.


Возвращает массив history:

{
    "history": [
        {
            "_id": 21202,
            "action": 2,
            "actiondate": 1550149998,
            "actionresult": 0,
            "activationsconsumed": 0,
            "activationscountcurrent": 40,
            "binding": {
                "CAN_REPLACE_CPU": false,
                "CAN_REPLACE_DVD": false,
                "CAN_REPLACE_HDD": false,
                "CAN_REPLACE_MAC": false,
                "CAN_REPLACE_MOTHERBOARD": false,
                "CAN_REPLACE_OS": false,
                "CPU": true,
                "DVD": false,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": false
            },
            "binding_maxhardwarechangenumber": 0,
            "cpu": "84 D0 4D AA 9A D3 35 01 9F 97 08 12 C8 D7 94 60 6B FC 35 67 06 F4 68 44 66 61 68 F3 44 F5 5D AB",
            "customer": {
                "_id": 246,
                "archivationdate": 0,
                "archived": false,
                "companyname": "",
                "description": "Autocreated from activator info",
                "email": "bma_customer@guardant.ru",
                "lastname": "",
                "name": "bma_customer",
                "phone": "+7(495)555-55-55",
                "status": 0
            },
            "detectedhardware": {
                "CPU": true,
                "DVD": true,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": true
            },
            "dvd": "43 D8 2D 4B 7C 18 2D F7 67 89 C2 7A 33 2E A7 09 D2 6D 3D B0 22 91 48 73 00 B6 05 06 EB 74 72 A1",
            "hardwaredifference": {
                "CPU": false,
                "DVD": false,
                "HDD": false,
                "MAC": false,
                "MOTHERBOARD": false,
                "OS": false
            },
            "hardwaregroupid": 0,
            "hdd": "29 74 E0 6E A6 77 BC 5D 69 6E 80 4F B6 4F 4E B5 6B 36 47 D2 F2 82 31 35 97 C5 88 49 3F 38 05 15",
            "locallicensesconsumed": 0,
            "locallicensesremains": 12,
            "mac": "49 01 D7 67 84 B3 1D 6C CF 2F D4 AD 54 75 17 51 8D 8C E9 1B C7 6D B1 E8 B6 6A 5C 32 0C 75 3E 05",
            "mb": "94 B4 CE FD 54 5D 44 1E E8 61 BD 69 77 09 77 7C 67 3C A6 A5 14 5B 30 92 0D C4 52 63 89 2C 4E 2C",
            "netlicensesconsumed": 0,
            "netlicensesremains": 7832,
            "order": {
                "_id": 10123,
                "activationbirthdate": 1539936112,
                "activationdeathdate": 1602277200,
                "activationlimit": 1,
                "archivationdate": 0,
                "archived": false,
                "canoverwritecontainer": false,
                "customer": {
                    "_id": 5,
                    "archivationdate": 0,
                    "archived": false,
                    "companyname": "",
                    "description": "sw",
                    "email": "de@a",
                    "lastname": "",
                    "name": "Max",
                    "phone": "d",
                    "status": 1
                },
                "customerrequired": true,
                "date": 1539936112,
                "description": "test_cmpound",
                "isdemo": false,
                "number": 2,
                "quantity": 1,
                "status": 1,
                "submitdate": 0,
                "type": 1
            },
            "os": "AE 54 6A CC 81 43 80 C4 A4 9C 4E 7E DE 26 92 F9 BA C9 8B 86 66 D3 3C 67 81 76 AA 9E C3 72 D3 6D",
            "serial": {
                "_id": 10176,
                "activationcount": 10,
                "activationlimit": 30,
                "dongleid": -1235188599,
                "serialstring": "LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP",
                "status": 0
            }
        },
        {
            "_id": 21201,
            "action": 4,
            "actiondate": 1550149996,
            "actionresult": 0,
            "activationsconsumed": 0,
            "activationscountcurrent": 40,
            "binding": {
                "CAN_REPLACE_CPU": false,
                "CAN_REPLACE_DVD": false,
                "CAN_REPLACE_HDD": false,
                "CAN_REPLACE_MAC": false,
                "CAN_REPLACE_MOTHERBOARD": false,
                "CAN_REPLACE_OS": false,
                "CPU": true,
                "DVD": false,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": false
            },
            "binding_maxhardwarechangenumber": 0,
            "cpu": "84 D0 4D AA 9A D3 35 01 9F 97 08 12 C8 D7 94 60 6B FC 35 67 06 F4 68 44 66 61 68 F3 44 F5 5D AB",
            "customer": {
                "_id": 246,
                "archivationdate": 0,
                "archived": false,
                "companyname": "",
                "description": "Autocreated from activator info",
                "email": "bma_customer@guardant.ru",
                "lastname": "",
                "name": "bma_customer",
                "phone": "+7(495)555-55-55",
                "status": 0
            },
            "detectedhardware": {
                "CPU": true,
                "DVD": true,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": true
            },
            "dvd": "43 D8 2D 4B 7C 18 2D F7 67 89 C2 7A 33 2E A7 09 D2 6D 3D B0 22 91 48 73 00 B6 05 06 EB 74 72 A1",
            "hardwaredifference": {
                "CPU": false,
                "DVD": false,
                "HDD": false,
                "MAC": false,
                "MOTHERBOARD": false,
                "OS": false
            },
            "hardwaregroupid": 0,
            "hdd": "29 74 E0 6E A6 77 BC 5D 69 6E 80 4F B6 4F 4E B5 6B 36 47 D2 F2 82 31 35 97 C5 88 49 3F 38 05 15",
            "locallicensesconsumed": 0,
            "locallicensesremains": 12,
            "mac": "49 01 D7 67 84 B3 1D 6C CF 2F D4 AD 54 75 17 51 8D 8C E9 1B C7 6D B1 E8 B6 6A 5C 32 0C 75 3E 05",
            "mb": "94 B4 CE FD 54 5D 44 1E E8 61 BD 69 77 09 77 7C 67 3C A6 A5 14 5B 30 92 0D C4 52 63 89 2C 4E 2C",
            "netlicensesconsumed": 0,
            "netlicensesremains": 7832,
            "order": {
                "_id": 10079,
                "activationbirthdate": 1533675600,
                "activationdeathdate": 1602277200,
                "activationlimit": 3,
                "archivationdate": 0,
                "archived": false,
                "canoverwritecontainer": false,
                "customerrequired": true,
                "date": 1535720075,
                "description": "order_to_test_first_activation",
                "isdemo": false,
                "number": 0,
                "quantity": 5,
                "status": 1,
                "submitdate": 0,
                "type": 0
            },
            "os": "AE 54 6A CC 81 43 80 C4 A4 9C 4E 7E DE 26 92 F9 BA C9 8B 86 66 D3 3C 67 81 76 AA 9E C3 72 D3 6D",
            "serial": {
                "_id": 10176,
                "activationcount": 10,
                "activationlimit": 30,
                "dongleid": -1235188599,
                "serialstring": "LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP",
                "status": 0
            }
        },
        {
            "_id": 21198,
            "action": 2,
            "actiondate": 1550139702,
            "actionresult": 0,
            "activationsconsumed": 1,
            "activationscountcurrent": 40,
            "binding": {
                "CAN_REPLACE_CPU": false,
                "CAN_REPLACE_DVD": false,
                "CAN_REPLACE_HDD": false,
                "CAN_REPLACE_MAC": false,
                "CAN_REPLACE_MOTHERBOARD": false,
                "CAN_REPLACE_OS": false,
                "CPU": true,
                "DVD": false,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": false
            },
            "binding_maxhardwarechangenumber": 0,
            "cpu": "84 D0 4D AA 9A D3 35 01 9F 97 08 12 C8 D7 94 60 6B FC 35 67 06 F4 68 44 66 61 68 F3 44 F5 5D AB",
            "customer": {
                "_id": 246,
                "archivationdate": 0,
                "archived": false,
                "companyname": "",
                "description": "Autocreated from activator info",
                "email": "bma_customer@guardant.ru",
                "lastname": "",
                "name": "bma_customer",
                "phone": "+7(495)555-55-55",
                "status": 0
            },
            "detectedhardware": {
                "CPU": true,
                "DVD": true,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": true
            },
            "dvd": "43 D8 2D 4B 7C 18 2D F7 67 89 C2 7A 33 2E A7 09 D2 6D 3D B0 22 91 48 73 00 B6 05 06 EB 74 72 A1",
            "hardwaredifference": {
                "CPU": false,
                "DVD": false,
                "HDD": false,
                "MAC": false,
                "MOTHERBOARD": false,
                "OS": false
            },
            "hardwaregroupid": 0,
            "hdd": "29 74 E0 6E A6 77 BC 5D 69 6E 80 4F B6 4F 4E B5 6B 36 47 D2 F2 82 31 35 97 C5 88 49 3F 38 05 15",
            "locallicensesconsumed": 0,
            "locallicensesremains": 12,
            "mac": "49 01 D7 67 84 B3 1D 6C CF 2F D4 AD 54 75 17 51 8D 8C E9 1B C7 6D B1 E8 B6 6A 5C 32 0C 75 3E 05",
            "mb": "94 B4 CE FD 54 5D 44 1E E8 61 BD 69 77 09 77 7C 67 3C A6 A5 14 5B 30 92 0D C4 52 63 89 2C 4E 2C",
            "netlicensesconsumed": 99,
            "netlicensesremains": 7832,
            "order": {
                "_id": 10123,
                "activationbirthdate": 1539936112,
                "activationdeathdate": 1602277200,
                "activationlimit": 1,
                "archivationdate": 0,
                "archived": false,
                "canoverwritecontainer": false,
                "customer": {
                    "_id": 5,
                    "archivationdate": 0,
                    "archived": false,
                    "companyname": "",
                    "description": "sw",
                    "email": "de@a",
                    "lastname": "",
                    "name": "Max",
                    "phone": "d",
                    "status": 1
                },
                "customerrequired": true,
                "date": 1539936112,
                "description": "test_cmpound",
                "isdemo": false,
                "number": 2,
                "quantity": 1,
                "status": 1,
                "submitdate": 0,
                "type": 1
            },
            "os": "AE 54 6A CC 81 43 80 C4 A4 9C 4E 7E DE 26 92 F9 BA C9 8B 86 66 D3 3C 67 81 76 AA 9E C3 72 D3 6D",
            "serial": {
                "_id": 10176,
                "activationcount": 10,
                "activationlimit": 30,
                "dongleid": -1235188599,
                "serialstring": "LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP",
                "status": 0
            }
        },
        {
            "_id": 21199,
            "action": 2,
            "actiondate": 1550139702,
            "actionresult": 0,
            "activationsconsumed": 1,
            "activationscountcurrent": 39,
            "binding": {
                "CAN_REPLACE_CPU": false,
                "CAN_REPLACE_DVD": false,
                "CAN_REPLACE_HDD": false,
                "CAN_REPLACE_MAC": false,
                "CAN_REPLACE_MOTHERBOARD": false,
                "CAN_REPLACE_OS": false,
                "CPU": true,
                "DVD": false,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": false
            },
            "binding_maxhardwarechangenumber": 0,
            "cpu": "84 D0 4D AA 9A D3 35 01 9F 97 08 12 C8 D7 94 60 6B FC 35 67 06 F4 68 44 66 61 68 F3 44 F5 5D AB",
            "customer": {
                "_id": 246,
                "archivationdate": 0,
                "archived": false,
                "companyname": "",
                "description": "Autocreated from activator info",
                "email": "bma_customer@guardant.ru",
                "lastname": "",
                "name": "bma_customer",
                "phone": "+7(495)555-55-55",
                "status": 0
            },
            "detectedhardware": {
                "CPU": true,
                "DVD": true,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": true
            },
            "dvd": "43 D8 2D 4B 7C 18 2D F7 67 89 C2 7A 33 2E A7 09 D2 6D 3D B0 22 91 48 73 00 B6 05 06 EB 74 72 A1",
            "hardwaredifference": {
                "CPU": false,
                "DVD": false,
                "HDD": false,
                "MAC": false,
                "MOTHERBOARD": false,
                "OS": false
            },
            "hardwaregroupid": 0,
            "hdd": "29 74 E0 6E A6 77 BC 5D 69 6E 80 4F B6 4F 4E B5 6B 36 47 D2 F2 82 31 35 97 C5 88 49 3F 38 05 15",
            "locallicensesconsumed": 0,
            "locallicensesremains": 12,
            "mac": "49 01 D7 67 84 B3 1D 6C CF 2F D4 AD 54 75 17 51 8D 8C E9 1B C7 6D B1 E8 B6 6A 5C 32 0C 75 3E 05",
            "mb": "94 B4 CE FD 54 5D 44 1E E8 61 BD 69 77 09 77 7C 67 3C A6 A5 14 5B 30 92 0D C4 52 63 89 2C 4E 2C",
            "netlicensesconsumed": 157,
            "netlicensesremains": 7931,
            "order": {
                "_id": 10082,
                "activationbirthdate": 1536314029,
                "activationdeathdate": 0,
                "activationlimit": 1,
                "archivationdate": 0,
                "archived": false,
                "canoverwritecontainer": false,
                "customer": {
                    "_id": 5,
                    "archivationdate": 0,
                    "archived": false,
                    "companyname": "",
                    "description": "sw",
                    "email": "de@a",
                    "lastname": "",
                    "name": "Max",
                    "phone": "d",
                    "status": 1
                },
                "customerrequired": true,
                "date": 1536314029,
                "description": "1st update for LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP",
                "isdemo": false,
                "number": 1,
                "quantity": 1,
                "status": 1,
                "submitdate": 0,
                "type": 1
            },
            "os": "AE 54 6A CC 81 43 80 C4 A4 9C 4E 7E DE 26 92 F9 BA C9 8B 86 66 D3 3C 67 81 76 AA 9E C3 72 D3 6D",
            "serial": {
                "_id": 10176,
                "activationcount": 10,
                "activationlimit": 30,
                "dongleid": -1235188599,
                "serialstring": "LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP",
                "status": 0
            }
        },
        {
            "_id": 21197,
            "action": 1,
            "actiondate": 1550139702,
            "actionresult": 0,
            "activationsconsumed": 1,
            "activationscountcurrent": 38,
            "binding": {
                "CAN_REPLACE_CPU": false,
                "CAN_REPLACE_DVD": false,
                "CAN_REPLACE_HDD": false,
                "CAN_REPLACE_MAC": false,
                "CAN_REPLACE_MOTHERBOARD": false,
                "CAN_REPLACE_OS": false,
                "CPU": true,
                "DVD": false,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": false
            },
            "binding_maxhardwarechangenumber": 0,
            "cpu": "84 D0 4D AA 9A D3 35 01 9F 97 08 12 C8 D7 94 60 6B FC 35 67 06 F4 68 44 66 61 68 F3 44 F5 5D AB",
            "customer": {
                "_id": 246,
                "archivationdate": 0,
                "archived": false,
                "companyname": "",
                "description": "Autocreated from activator info",
                "email": "bma_customer@guardant.ru",
                "lastname": "",
                "name": "bma_customer",
                "phone": "+7(495)555-55-55",
                "status": 0
            },
            "detectedhardware": {
                "CPU": true,
                "DVD": true,
                "HDD": true,
                "MAC": true,
                "MOTHERBOARD": true,
                "OS": true
            },
            "dvd": "43 D8 2D 4B 7C 18 2D F7 67 89 C2 7A 33 2E A7 09 D2 6D 3D B0 22 91 48 73 00 B6 05 06 EB 74 72 A1",
            "hardwaredifference": {
                "CPU": false,
                "DVD": false,
                "HDD": false,
                "MAC": false,
                "MOTHERBOARD": false,
                "OS": false
            },
            "hardwaregroupid": 0,
            "hdd": "29 74 E0 6E A6 77 BC 5D 69 6E 80 4F B6 4F 4E B5 6B 36 47 D2 F2 82 31 35 97 C5 88 49 3F 38 05 15",
            "locallicensesconsumed": 1,
            "locallicensesremains": 12,
            "mac": "49 01 D7 67 84 B3 1D 6C CF 2F D4 AD 54 75 17 51 8D 8C E9 1B C7 6D B1 E8 B6 6A 5C 32 0C 75 3E 05",
            "mb": "94 B4 CE FD 54 5D 44 1E E8 61 BD 69 77 09 77 7C 67 3C A6 A5 14 5B 30 92 0D C4 52 63 89 2C 4E 2C",
            "netlicensesconsumed": 158,
            "netlicensesremains": 8088,
            "order": {
                "_id": 10079,
                "activationbirthdate": 1533675600,
                "activationdeathdate": 1602277200,
                "activationlimit": 3,
                "archivationdate": 0,
                "archived": false,
                "canoverwritecontainer": false,
                "customerrequired": true,
                "date": 1535720075,
                "description": "order_to_test_first_activation",
                "isdemo": false,
                "number": 0,
                "quantity": 5,
                "status": 1,
                "submitdate": 0,
                "type": 0
            },
            "os": "AE 54 6A CC 81 43 80 C4 A4 9C 4E 7E DE 26 92 F9 BA C9 8B 86 66 D3 3C 67 81 76 AA 9E C3 72 D3 6D",
            "serial": {
                "_id": 10176,
                "activationcount": 10,
                "activationlimit": 30,
                "dongleid": -1235188599,
                "serialstring": "LvHdHH-Ux1VmY-pGKq1y-NEE4pp-8iAAgP",
                "status": 0
            }
        }
    ]
}


Возможные значения actionresult:

    enum ActionResultCode : int
    {
        Success                                             = 0,  // successful operation
        SerialHasNoActivationsAvailable                     = 1,  // serial activation limit is over
        VendorHasNoActivationTransactionsAvailable          = 2,  // vendor's service transaction limit is over
        VendorHasNoLocalLiceses                             = 3,  // vendor has no local licenses
        UsingServiceGracePeriodIsExhausted                  = 4,  // vendor's grace peridod for reactivation of before activated serials is over
        VendorHasNoServiceSubscription                      = 5,  // vendor's service subscription is over
        OrderAccessIsNotStarted                             = 6,  // activation is not avaliable because of order's access period has not started yet
        OrderAccessIsFinished                               = 7,  // activation is not avaliable because of order's access period already has finished
        ActivationUnderVmNotAllowed                         = 8,  // activation on VM can be forbidden by service configuration (hardcoded no forbid now)
        NotEnoughHardware                                   = 9,  // not enough hardware for activation
        VendorHasNoNetLicesesEnough                         = 10, // vendor has no net licenses
        ErrorHarwareNotFoundDuringUpdate                    = 11, // [LOGIС SELFCHECK] when client requests update - it already has worker license on the PC,
                                                                  //   but server by some strange reason can not find this PC by its hashes
        NoFeaturesInLicense                                 = 12, // [LOGIС SELFCHECK] some strange internal service logic error when no features found in order's product
        PrepareLicenseError                                 = 13, // [LOGIС SELFCHECK] some internal error that can be raised during license container generation
        MoreThanOneFirstActivationForPc                     = 14, // [LOGIС SELFCHECK] by some strange reason more than one first activation for
                                                                  //   this PC present in history
        UnknownError                                        = 666
    };
  • No labels