add_entity_content
This function adds json result with entity identifier as title.
siemplify.result.add_entity_content(entity_identifier, content)
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 |
content | string | Data related to the entity to add |
|
Yes |
Return Type
NoneType
Example
Sample code
from SiemplifyAction import SiemplifyAction
siemplify = SiemplifyAction()
entity_identifier = "10.0.0.1"
content = {"title":"10.0.0.1", "Message":"This is the default gateway"}
siemplify.result.add_entity_content(entity_identifier, json_data)
Result Behavior
The provided content data will be added to entity 10.0.0.1.
Result Value
None