The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

Manual Gateway Anti-Malware File Import to Manager

Prev Next

This URL imports the Gateway Anti-Malware file manually to Manager.

Resource URL

PUT /gam/import/manual

Content-type value

multipart/form-data; boundary=<x>

Request Parameters

Payload Request Parameters:

Field Name Description Data Type Mandatory
MultiPart Holds the body part objects Object Yes

Details of BodyPart[0]:

Field Name Description Data Type Mandatory
BodyPart[0] Holds the file format object Application/json object Yes

Details of file format:

Field Name Description Data Type Mandatory
fileName Name of the file String Yes
type File type should be "UPD" String Yes

Details of BodyPart[1]:

Field Name Description Data Type Mandatory
BodyPart1] Holds the file as input stream Application/octet-stream Yes

Details of .upd file:

Field Name Description Data Type Mandatory
File Gateway Anti-Malware engine data input stream ByteArrayInput Stream Yes

Response Parameters

Following fields are returned if the request parameters are correct, otherwise error details are returned.

Field Name Description Data Type
status Status returned by updation number

Example

Request

PUT https://<NSM_IP>/sdkapi/gam/import/manual

Payload:

NSM-SDK-API: QjUzNDQzMjNCNUQ2NkEzQjc4Mzc5REMxRjMxMDg0OTE6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_17241377_1362484380857
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: localhost:8888
Connection: keep-alive
Content-Length: 15956464

--Boundary_1_17241377_1362484380857
Content-Type: application/json

{"fileName":"software_sdkapi","type":"JAR"}
--Boundary_1_17241377_1362484380857
Content-Type: application/octet-stream
//file data input stream
--Boundary_1_17241377_1362484380857-- 

Response

{
"status":1
} 
 

Error Information

Following error codes are returned by this URL:

S.No HTTP Error Code SDK API errorId SDK API errorMessage
1 400 1001 internal error
2 400 3007 Gateway Anti-Malware update supports only UPD file format