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

Compare with Current View Page History

« Previous Version 2 Current »

Get features that the license manager works with

The remoteMode field - is a local or network feature (1 is local, 3 is both network and local)
The consumptionMode field - is the distribution of floating licenses (0 is per workstation, 1 is per login, 2 is per process).
The floatingResource field - is the remaining free floating licenses.
The maxConcurrentResource field - is the maximum number of network licenses.
The reservedResource field - is the number of reserved licenses.
The currentRunCounterValue field - is the current launch counter (for features with a limited number of launches).
The maxRunCounter field - is the maximum launch counter (for features with a limited number of launches).
The validFromDate field - is the start time in seconds from January 1, 1970. (for features with a limited time of operation).
The validUpToDate field - is the end time in seconds from January 1, 1970. (for features with a limited time of operation).
The restOfLifeTimeDays field - is the remaining feature life in days (for features with a limited lifespan).
The sessionsCount field - is the number of active sessions for the feature.
The flags.rdpForbidden flag - is whether the feature is allowed/prohibited in Remote Desktop mode.
The flags.vmForbidden flag - is whether the feature is allowed/prohibited on a virtual machine.
The flags.expired flag - is whether the feature license terms has expired (launches have ended or the operating time has expired).


Определение ресурса сетевого компонента:
Если remoteMode == 1, то компонент является локальным ("Локальный ПК") и определение сетевого ресурса для него не требуется
Если remoteMode == 3, то компонент является сетевым и требуется смотреть поля consumptionMode, maxConcurrentResource, floatingResource.
В зависимости от consumptionMode :
0:  Текст сообщения "(maxConcurrentResource - floatingResource)/maxConcurrentResource рабочих станций"
1:  Текст сообщения "(maxConcurrentResource - floatingResource)/maxConcurrentResource подключений"
2:  Текст сообщения "(maxConcurrentResource - floatingResource)/maxConcurrentResource копий ПО"

Ограничения по количеству запусков и времени работы компонента:
1. Если maxRunCounter  > 0 , то у компонента есть ограничение по количеству запусков. Лицензионные ограничения : "currentRunCounterValue из maxRunCounter" 
2. Если restOfLifeTimeDays > 0, то у компонента есть ограничение по времени работы от начала использования.  Если компонент начал работу, то поля validFromDate  и validUpToDate также будут заполнены. Лицензионные ограничения: "restOfLifeTimeDays"
3. Если validFromDate > 0 && validUpToDate > 0 && restOfLifeTimeDays == 0, то у компонента есть ограничение по времени работы в абсолютном интервале. Лицензионные ограничения : "от validFromDate до validUpToDate"
4. Если validFromDate == 0 && validUpToDate > 0 &&  restOfLifeTimeDays == 0, то компонент закончит работу в заданное время. Лицензионные ограничения:  "до validUpToDate"
5. В остальных случаях лицензионные ограничения: "вечная лицензия"


GET /v1.0/lm/features

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

{
    "features": [
        {
            "consumptionMode": 0,
            "currentRunCounterValue": 0,
            "featureNumber": 2,
            "flags": {
                "expired": false,
                "rdpForbidden": true,
                "vmForbidden": false
            },
            "floatingResource": 10,
            "maxConcurrentResource": 10,
            "maxRunCounter": 0,
            "name": "Тест документации",
            "productModification": 0,
            "productName": "Тест GCC",
            "productNumber": 16,
            "remoteMode": 3,
            "reservedResource": 0,
            "restOfLifeTimeDays": 0,
            "sessionsCount": 0,
            "validFromDate": 0,
            "validUpToDate": 0,
            "vendor": {
                "publicCode": 1368487351,
                "publicCodeText": "DEMONVK"
            }
        },
        {
            "consumptionMode": 1,
            "currentRunCounterValue": 0,
            "featureNumber": 4,
            "flags": {
                "expired": false,
                "rdpForbidden": true,
                "vmForbidden": false
            },
            "floatingResource": 9,
            "maxConcurrentResource": 10,
            "maxRunCounter": 0,
            "name": "Компонент вне лицензии",
            "productModification": 0,
            "productName": "Тест GCC",
            "productNumber": 16,
            "remoteMode": 3,
            "reservedResource": 1,
            "restOfLifeTimeDays": 49,
            "sessionsCount": 0,
            "validFromDate": 1589920649,
            "validUpToDate": 1594240649,
            "vendor": {
                "publicCode": 1368487351,
                "publicCodeText": "DEMONVK"
            }
        },
        {
            "consumptionMode": 0,
            "currentRunCounterValue": 0,
            "featureNumber": 2,
            "flags": {
                "expired": false,
                "rdpForbidden": true,
                "vmForbidden": false
            },
            "floatingResource": 0,
            "maxConcurrentResource": 0,
            "maxRunCounter": 0,
            "name": "Тест документации",
            "productModification": 0,
            "productName": "Test DL VMware Standard",
            "productNumber": 13,
            "remoteMode": 1,
            "reservedResource": 0,
            "restOfLifeTimeDays": 0,
            "sessionsCount": 0,
            "validFromDate": 0,
            "validUpToDate": 0,
            "vendor": {
                "publicCode": 1368487351,
                "publicCodeText": "DEMONVK"
            }
        }
    ]
}
  • No labels