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.

Import License to the Manager

Prev Next

This URL imports a license file to the Manager.

Resource URL

PUT /license

Request Parameters

URL Parameters: None

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

oldLicense

Details of the existing license that should be upgraded.

Note

This information is required only when an upgrade license is imported.

Object

No

Details of oldLicense:

Field Name

Description

Data Type

Mandatory

licenseId

License id which needs to be upgraded

String

Yes

grantIndex

Grant Index of the license which needs to be upgraded

String

Yes

Details of BodyPart[1]:

Field Name

Description

Data Type

Mandatory

BodyPart[1]

Holds the license file as an input stream

Application/octet-stream

Yes

Details of license file:

Field Name

Description

Data Type

Mandatory

File

The license file data

ByteArrayInputStream

Yes

Response Parameters

Following field is returned:

Field Name

Description

Data Type

status

Set to 1 if the request is successful

number

Example

Request

PUT https://<NSM_IP>/sdkapi/license

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":"VMIPSLICENCE_sdkapi.jar"} 
--Boundary_1_17241377_1362484380857 
Content-Type: application/octet-stream 
File data
--Boundary_1_17241377_1362484380857--

Response

{
		'status' : 1
}

Error Information

Following error codes are returned by this URL

No

HTTP Error Code

SDK API errorId

SDK API errorMessage

1

500

1001

Internal error

2

500

1001

Internal error message: <message>