This function adds json result with entity identifier as title.

siemplify.result.add_entity_attachment(entity_identifier, filename, file_contents, additional_data=None)

Parameters

Param Name Param Type Possible Values Comments Mandatory Parameter
entity_identifier string entity identifier values such as 1.1.1.1, google.com N/A Yes
filename string File name of the attachment
Yes
file_contents base64 File contents in the base 64 format
Yes
additional data string Any relevant attachment data
No

Return Type

NoneType

Example

Sample code
from SiemplifyAction import SiemplifyAction
siemplify = SiemplifyAction()
entity_identifier = "10.0.0.1"
file_contents = <base64 value>
filename = "Image.png"
siemplify.result.add_entity_attachment(entity_identifier, filename, file_contents, additional_data=None)
Result Behavior
The provided file will be added as attachment to entity 10.0.0.1. 
Result Value
None