This URL gets a YAML configuration details.
Resource URL
suricata/yaml/config
Request Parameters
None
Response Parameters
Following fields are returned if the request parameters are correct.
Field Name | Description | Data Type |
|---|---|---|
| Displays the success status | Boolean |
| Displays the message | Boolean |
| Displays the error message | Boolean |
| An object that contains the details of the field | Object |
| Error code | Number |
Details of fields in data:
Field Name | Description | Data Type |
|---|---|---|
| Status of YAML customised configuration | Boolean |
| Import date | Number |
| Details of the importer | String |
| Details of import type | String |
| Zip file details | Boolean |
| Details of YAMl file | String |
| YAML configuration details | Array |
Example
Request
GET https://<IPSM_IP>/sdkapi/suricata/yaml/config
Response
{
"success": true,
"msg": null,
"errMsg": null,
"data": {
"customized": true,
"importDate": 1763724444000,
"importedBy": "Administrator",
"importType": "yaml",
"zipFile": null,
"yamlFile": "custom.yaml",
"configFiles": []
},
"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 |