mirror of https://github.com/MISP/PyMISP
add: update noticelists and object templates
parent
b95fdf9218
commit
6cee5ee66f
|
@ -1702,6 +1702,11 @@ class PyMISP(object):
|
||||||
response = self._prepare_request('POST', url)
|
response = self._prepare_request('POST', url)
|
||||||
return self._check_response(response)
|
return self._check_response(response)
|
||||||
|
|
||||||
|
def update_noticelists(self):
|
||||||
|
url = urljoin(self.root_url, '/noticelists/update')
|
||||||
|
response = self._prepare_request('POST', url)
|
||||||
|
return self._check_response(response)
|
||||||
|
|
||||||
# ############## Galaxies/Clusters ##################
|
# ############## Galaxies/Clusters ##################
|
||||||
|
|
||||||
def get_galaxies(self):
|
def get_galaxies(self):
|
||||||
|
@ -2029,6 +2034,11 @@ class PyMISP(object):
|
||||||
return t['ObjectTemplate']['id']
|
return t['ObjectTemplate']['id']
|
||||||
raise Exception('Unable to find template uuid {} on the MISP instance'.format(object_uuid))
|
raise Exception('Unable to find template uuid {} on the MISP instance'.format(object_uuid))
|
||||||
|
|
||||||
|
def update_object_templates(self):
|
||||||
|
url = urljoin(self.root_url, '/objectTemplates/update')
|
||||||
|
response = self._prepare_request('POST', url)
|
||||||
|
return self._check_response(response)
|
||||||
|
|
||||||
# ###########################
|
# ###########################
|
||||||
# ####### Deprecated ########
|
# ####### Deprecated ########
|
||||||
# ###########################
|
# ###########################
|
||||||
|
|
Loading…
Reference in New Issue