8.1.2.3. Get Current License Information
Fetch all details about the licensing status of the product.
Request |
Value |
Method |
GET |
URL |
/admin/license |
Request HTTP header parameters:
name |
type |
required |
value |
apikey |
string |
true |
Session id, can be acquired by 8.1.1.1. Login / Create a Session |
Successful response
HTTP status code: 200
If a valid license found:
{
"days_left"
:
3731
,
"deployment"
:
"MSCL00000000000000000000000000000000"
,
"expiration"
:
"09/30/2026"
,
"licensed_engines"
:
"*"
,
"licensed_to"
:
"OPSWAT, Inc."
,
"max_node_count"
:
"10"
,
"online_activated"
:
true
,
"product_id"
:
"MSCL-4-unlimited"
,
"product_name"
:
"Metadefender Core 5 Linux"
}
If no valid license found:
{
"deployment_id"
:
"MSCL00000000000000000000000000000000"
}
If no valid license, but activation key found:
{
"deployment_id"
:
"MSCL00000000000000000000000000000000"
,
"reactivate"
:
true
}
Error response
Invalid user information
HTTP status code: 403
{
"err"
:
"Access denied"
}
Unexpected event on server
HTTP status code: 500
{
"err"
:
"<error message>"
}
Note: Check Metadefender Core server logs for more information.