Saltar al contenido principal
Versión: Siguiente

License info

License info : Object

ParámetrosTipoDescripción
ResultadoObjectInformation about the active licence

Descripción

The License info command returns an object providing detailed information about the active license.

If the command is executed on a 4D application that does not use locally a license (e.g. 4D remote), the command returns a Null object.

El objeto devuelto contiene las siguientes propiedades:

{
"name": "string",
"key": 0,
"licenseNumber": "string",
"version": "string",
"attributes": ["string1", "string2"], // optional
"userName": "string",
"userMail": "string",
"companyName": "string",
"platforms": ["string1", "string2"],
"expirationDate": {
// details here
}, // optional
"renewalFailureCount": 0, // optional
"products": [
{ // for each registered expansion product
"id": 0,
"name": "string",
"usedCount": 0,
"allowedCount": 0,
"rights": [
{
"count": 0,
"expirationDate": {
// details here
} // optional
}
]
}
]
}
PropiedadTipoDescriptionEjemplo
namestringNombre comercial"4D Developer Professional vXX"
keynumberID of the installed product. A unique number is associated to a 4D application (such as 4D Server, 4D in local mode, 4D Desktop, etc.) instalado en una máquina. Este número está encriptado.12356789
licenseNumberstringLicense number"4DDP16XXXXX1123456789"
versionstringNúmero de versión del producto"16", "16R2"
attributescollection of stringsTipo(s) de licencia si aplica (opcional)["application","OEM"], ["evaluation"]
userNamestringNombre de la cuenta de la tienda 4D"John Smith"
userMailstringCorreo de la cuenta de la tienda 4D"john.smith@gmail.com"
companyNamestringCompany name of 4D store account"Alpha Cie"
platformscollection of stringsPlataforma(s) de licencia["macOS", "windows"]
expirationDateobjectFecha de expiración (opcional){"day":2, "month":6, "year":2026}
renewalFailureCountnumberNumber of unsuccessful automatic renewal attempts for at least one of the product licenses (optional)3
productscollection of objectsDescripción de la licencia producto (un elemento por licencia producto). Ver abajo.

Each object of the products collection can have the following properties:

PropiedadTipoDescriptionEjemplo
idnumberLicense numberPara conocer los valores disponibles, consulte el comando Is license available
namestringNombre de la licencia"4D Write - 4D Write Pro"
usedCountnumberNumber of consumed connections8
allowedCountnumberTotal connections allowed for the product against the expiry dates15
rightscollection of objectsDerechos del producto (un elemento por fecha de caducidad)
[ ].countnumberNúmero de conexiones permitidas15 (32767 significa ilimitado)
[ ].expirationDateobjectFecha de caducidad (opcional, el mismo formato que anterior){"day":1, "month":11, "year":2017}

Ejemplo

You want to get information on your current 4D Server license:

 var $obj : Object
 $obj:=License info

$obj puede contener, por ejemplo:

{
    "name": "4D Server v16 R3",
    "key": 123456789,
    "licenseNumber": "xxxx",
    "version": "16R3",
    "userName": "John DOE",
    "userMail": "john.doe@alpha.com",
    "companyName": "Alpha",
    "platforms": ["macOS", "windows"],
    "expirationDate": {"day":1, "month":1, "year":2018},
    "products":[
        {
            "allowedCount": 15,
            "id": 808464697,
            "name": "4D Write - 4D Write Pro",
            "rights": [
                {
                    "count": 5,
                    "expirationDate": {"day":1, "month":2, "year":2018}
                }, {
                    "count": 10,
                    "expirationDate": {"day":1, "month":11, "year":2017}
                }, {
                    "count": 10,
                    "expirationDate": {"day":1, "month":11, "year":2015} //expired, not counted
                }
            ],
            "usedCount": 12
        },
        {...}
    ]
}

Ver también

CHANGE LICENSES
Is license available
WEB Get server info

Propiedades

Número de comando1489
Hilo seguro