License
Get license
Request
Definition
GET /api/v1/license
Headers
-
Authorization
requiredAuthentication token with privileges to view the resource.
Bearer {token}
Response
Status codes
Status code | Message |
---|---|
200 | "License info" |
403 | "Forbidden" |
Body
- Attributes
- Example
-
data.license.created
stringDate and time the licence was created.
-
data.license.customer_name
stringName of the organisation on whose behalf the licence is granted.
-
data.license.delay_expiry_days
integerNumber of days remaining until the licence expires.
-
data.license.delay_max_uses_perc
integerNumber of monthly requests over the limit before monitoring is stopped.
-
data.license.entitlements
objectObject that contains all software services and indicates whether the instance is enabled to use them.
-
data.license.expiry
stringDate and time when the licence expires.
-
data.license.id
stringLicense ID.
-
data.license.key
stringRepresents the licence key.
-
data.license.last_validated
stringDate and time the licence was last validated.
-
data.license.max_machines
integerMaximum number of computers on which the software instance can be used.
-
data.license.ordered_entitlements_keys
array<string>List of all software services in alphabetical order.
-
data.license.policy
stringPolicy associated to the license.
-
data.license.status
stringIndicates the status of the licence.
-
data.license.suspended
booleanIndicates if the licence has been suspended.
-
data.license.updated
stringDate and time the licence was last modified.
-
data.monthly_tx_counter
integerHow many transactions were analysed during the month.
-
data.monthly_tx_limit_reached
booleanIndicates if the monthly limit of analysed transactions has been reached.
{
"data": {
"license": {
"created": "2023-11-17T09:20:30.783Z",
"customer_name": "Test License",
"delay_expiry_days": 10,
"delay_max_uses_perc": 10,
"entitlements": {
"application_rules": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Protection - Application rules"
},
"audit_logs": {
"is_limited": false,
"max_uses": "null",
"name": "Audit logs"
},
"detection_bac": {
"is_limited": false,
"max_uses": null,
"name": "Detection - Broken Access Control"
},
"detection_iaaf": {
"is_limited": false,
"max_uses": null,
"name": "Detection - Brute Force & Bot"
},
"detection_inj": {
"is_limited": false,
"max_uses": null,
"name": "Detection - Injection"
},
"metrics_storage": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Metrics storage"
},
"monitored_hosts": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Monitored hosts"
},
"monitored_monthly_requests": {
"is_limited": true,
"max_uses": 900,
"name": "Monitored monthly requests"
},
"network_rules": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Protection - Network rules"
},
"notification": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Notification"
},
"reports": {
"is_limited": false,
"max_uses": null,
"name": "Reports"
},
"rules_automation": {
"is_limited": false,
"max_uses": null,
"name": "rules automation"
},
"traffic_storage": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Traffic storage"
}
},
"expiry": "2040-01-16T09:20:30.785Z",
"id": "xxxxxx-18X2-4xx0-xxxx-6b09xxxebxx8",
"key": "7xxC94-xxxxx-27xxxB-xxxxx-6535D8-X3",
"last_validated": null,
"max_machines": 1,
"ordered_entitlements_keys": [
"monitored_monthly_requests",
"monitored_hosts",
"detection_inj",
"detection_bac",
"detection_iaaf",
"traffic_storage",
"metrics_storage",
"network_rules",
"application_rules",
"notification",
"rules_automation",
"audit_logs",
"reports"
],
"policy": null,
"status": "active",
"suspended": false,
"updated": "2023-12-05T09:52:08.473Z",
},
"monthly_tx_counter": 0,
"monthly_tx_limit_reached": false,
"status": "active"
},
"message": "License info",
"status": "ok"
}
Insert license key
Request
Definition
POST /api/v1/license
Headers
-
Authorization
requiredAn authentication token with privileges to view the resource.
Bearer {token}
-
Content-Type
requiredapplication/json
Request body
{
"license_key": "72xC94-xxxxx-278x8B-528A45-xxxxx-Vx"
}
Response
Status codes
Status code | Message |
---|---|
200 | "License succesfully inserted" |
400 | "Error inserting license key" |
403 | "Forbidden" |
Body
{
"data": {
"license": {
"created": "2023-11-17T09:20:30.783Z",
"customer_name": "Test License",
"delay_expiry_days": 10,
"delay_max_uses_perc": 10,
"entitlements": {
"application_rules": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Protection - Application rules"
},
"audit_logs": {
"is_limited": false,
"max_uses": "null",
"name": "Audit logs"
},
"detection_bac": {
"is_limited": false,
"max_uses": null,
"name": "Detection - Broken Access Control"
},
"detection_iaaf": {
"is_limited": false,
"max_uses": null,
"name": "Detection - Brute Force & Bot"
},
"detection_inj": {
"is_limited": false,
"max_uses": null,
"name": "Detection - Injection"
},
"metrics_storage": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Metrics storage"
},
"monitored_hosts": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Monitored hosts"
},
"monitored_monthly_requests": {
"is_limited": true,
"max_uses": 900,
"name": "Monitored monthly requests"
},
"network_rules": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Protection - Network rules"
},
"notification": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Notification"
},
"reports": {
"is_limited": false,
"max_uses": null,
"name": "Reports"
},
"rules_automation": {
"is_limited": false,
"max_uses": null,
"name": "Rules automation"
},
"traffic_storage": {
"is_limited": true,
"max_uses": "unlimited",
"name": "Traffic storage"
}
},
"expiry": "2040-01-16T09:20:30.785Z",
"id": "xxxxx-1892-xxxx-a98e-xxxxxxxxxx",
"last_validated": null,
"max_machines": 1,
"ordered_entitlements_keys": [
"monitored_monthly_requests",
"monitored_hosts",
"detection_inj",
"detection_bac",
"detection_iaaf",
"traffic_storage",
"metrics_storage",
"network_rules",
"application_rules",
"notification",
"rules_automation",
"audit_logs",
"reports"
],
"policy": null,
"status": "active",
"suspended": false,
"updated": "2023-12-05T09:52:08.473Z",
},
"monthly_tx_counter": 0,
"monthly_tx_limit_reached": false,
"status": "active"
},
"message": "License succesfully inserted",
"status": "ok"
}