check_license()
Checks whether the given modules are licensed on the connected server via
lic.CheckLicense. Multiple module names can be passed and are sent to the
server as a single space-separated string.
|
This endpoint only succeeds for modules with a concurrent license type
( |
1. Signature
-
Sync
-
Async
ecm.system.check_license(*modules: str) -> list[ECMLicenseInfo]
await ecm.system.check_license(*modules: str) -> list[ECMLicenseInfo]
2. Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
— |
One or more module names to check (e.g. |
4. Examples
4.1. Check a single module
-
Sync
-
Async
infos = ecm.system.check_license("ASC")
if infos[0].licensed:
print("ASC module is licensed")
infos = await ecm.system.check_license("ASC")
if infos[0].licensed:
print("ASC module is licensed")
4.2. Check multiple modules at once
-
Sync
-
Async
infos = ecm.system.check_license("ASC", "CLU", "WFL")
for info in infos:
status = "licensed" if info.licensed else f"not licensed (code={info.result})"
print(f"{info.module}: {status}")
infos = await ecm.system.check_license("ASC", "CLU", "WFL")
for info in infos:
status = "licensed" if info.licensed else f"not licensed (code={info.result})"
print(f"{info.module}: {status}")
5. See also
-
module_info() — Get detailed license information for a module