mirror of https://github.com/MISP/PyMISP
chg: Add few more calls
parent
65ce4c938f
commit
7569972ac9
|
@ -146,7 +146,7 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"attribute.add_tag('tlp:amber')\n",
|
||||
"attribute_second.add_tag('tlp:amber')\n",
|
||||
"\n",
|
||||
"print(attribute_second.to_json())"
|
||||
]
|
||||
|
@ -291,6 +291,45 @@
|
|||
"print(bin_obj.references[0].to_json())"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Change creator"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from pymisp import MISPOrganisation\n",
|
||||
"orgc = MISPOrganisation()\n",
|
||||
"orgc.name = 'bazbaz'\n",
|
||||
"orgc.id = 15\n",
|
||||
"orgc.uuid = '5888a98d-a7e8-4183-94bb-4d19950d210f'\n",
|
||||
"# NOTE: Pushing this object will only work if the user has sync right (if not, the orgc key will be ignored)\n",
|
||||
"event.Orgc = orgc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Mark event as published"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"event.publish()\n",
|
||||
"print(event.published)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
|
|
Loading…
Reference in New Issue