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 a Custom YAML File

Prev Next

This URL imports a customised YAML file.

Resource URL

suricata/yaml/import

Content-type value

multipart/form-data

Request Parameters

Payload (form-data) Request Parameters:

Field Name

Description

Data Type

Mandatory

file

YAML file

File

Yes

Response Parameters

Following fields are returned if the request parameters are correct.

Field Name

Description

Data Type

success

Displays the success status

Boolean

msg

Displays the message

String

errMsg

Displays the error message

Boolean

data

An object that contains the details of the field

Boolean

errorCode

Error code

Number

Example

Request

POST https://<IPSM_IP>/sdkapi/suricata/yaml/import

Response

{    
    "success": true,    
    "msg": "File imported successfully",    
    "errMsg": null,    
    "data": null,
    "errorCode": 0
}

Error Information

The following error code is returned by this URL:

S.No

Generic Error Codes

ErrorMessage

Error Reason

1

1001

Bad URL - HTTP 404 Not Found

Mistyped URL

Internal Error – Null

Incorrect Input data, authentication issues