import demistomock as demisto # noqa: F401 from CommonServerPython import * """ MAIN FUNCTION """ def main(): try: asset_id = demisto.args().get("indicator", {}).get("CustomFields", {}).get("feedcycognitoassetid") asset_end_point = f"https://platform.cycognito.com/assets/{asset_id}/info" html = f"
For more information on the Asset, click here
" demisto.results({"ContentsFormat": formats["html"], "Type": entryTypes["note"], "Contents": html}) except Exception as err: return_error(f"Failed to execute FeedCyCognitoGetAssetEndpoint. Error: {err}", error=err) """ ENTRY POINT """ if __name__ in ("__main__", "__builtin__", "builtins"): main()