To upload the IA 1.3.2 update file to your NDR appliance, send the following request:
POST https://<IA_IP_address>/update/v1
The path to the update file is passed as a command line argument; see the code sample below.
Options
IA_IP_address—The IP address of the NDR appliance running the NDR API.
Example
POST https://xxx.xxx.xxx.xxx/update/v1
Upload update file: Response
HTTP/1.1 [Response Code] [Response Message] Server: [Server] Date: [Date] Content-Type: [Content Type]
200—Request successful; the file was uploaded.
4xx—Request unsuccessful.
Response Message—A standard HTTP response message.
OK—Request successful; the file was uploaded.
Error message—Request unsuccessful.
Server—The server being used.
Date—Standard HTML date format.
Content Type—The response format.
Example
HTTP/1.1 200 OK Server: nginx Date: Wed, 3 Jan 2018 00:24:48 GMT Content-Type: text/plain; charset=utf-8
cURL code sample: Upload update file
curl -X POST -u <adminuser>:<password> -k -F "update=@<update_file_path>" https://xxx.xxx.xxx.xxx/update/v1
This cURL sample includes the following options:
-X POST—This option changes the HTTP method to POST.-u <adminuser>:<password>—The administrator username and password.-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.-F "update=@<update_file_path>"—The path to the file you want to upload.https://xxx.xxx.xxx.xxx/update/v1—The authentication request URL. Replacexxx.xxx.xxx.xxxwith the IP address of your NDR appliance.
Results
This example uploads the update file to your NDR appliance.