To get the license status for a particular feature, send the following request:
GET https://<IA_IP_address>:<port_number>/config/v1/licenses/_status/<feature>
Required header:
Cookie: px=<token>
Options
IA_IP_address—The IP address of the NDR appliance running the NDR API.
port_number—The port number of the NDR appliance running the NDR API.
token—This token authenticates the session. By default, the session times out after 24 hours.
Parameter
feature—The product feature.
Example
GET https://xxx.xxx.xxx.xxx:443/config/v1/licenses/_status/FIREEYE_APPLIANCE
Required header:
Cookie: px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
License status: Response
HTTP/1.1 [Response Code] [Response Message] Date: [Date]
Response fields
Response Code—A standard HTTP response code.
200—OK, feature license is valid.
400—Feature license is invalid, expired, or not found.
Date—Standard HTML date format.
Example
HTTP/1.1 200 OK Date: Thu, 15 Aug 2019 17:32:11 GMT
cURL code sample: License status
curl -k --cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" https://xxx.xxx.xxx.xxx:443/config/v1/licenses/_status/FIREEYE_APPLIANCE
This cURL sample includes the following options:
-k—This option explicitly allows cURL to perform insecure SSL connections and transfers, which allows you to test your SSL connection without installing a CA certificate.--cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"—This option specifies the authentication token for this session.https://xxx.xxx.xxx.xxx:443/config/v1/licenses/_status/FIREEYE_APPLIANCE—The license request URL. Replacexxx.xxx.xxx.xxxwith the IP address of your NDR appliance, andFIREEYE_APPLIANCEwith the feature name.
Results
This example retrieves the license status of the specified feature.