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