automation: feed fetching updated

pull/56/head
Alexandre Dulaunoy 2017-08-24 11:05:21 +02:00
parent 21044e80d5
commit 46850c89e2
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 13 additions and 1 deletions

View File

@ -889,7 +889,7 @@ https://<misp url>/sharing_groups/index.json
Based on the API key used, the list of visible sharing groups will be returned in a JSON file. The JSON includes the organization parts of a given sharing group along with the associated server. Based on the API key used, the list of visible sharing groups will be returned in a JSON file. The JSON includes the organization parts of a given sharing group along with the associated server.
## Enable and disable feeds via the API ## Enable, disable and fetching feeds via the API
The MISP feeds can be enabled via the API. The MISP feeds can be enabled via the API.
@ -905,6 +905,18 @@ A feed can be disabled by POSTing on the following url (feed_id is the id of the
/feeds/disable/feed_id /feeds/disable/feed_id
~~~~ ~~~~
All feeds can fetch via the API:
~~~~
/feeds/cacheFeeds/all
~~~~
or you can replace `all` by the feed format to fetch like `misp` or `freetext`. `all` can be replaced
with the `id` value of the feed to fetch a specific feed.
This API can be also used to download feeds at regular interval via cronjobs or alike.
## Sightings API ## Sightings API
MISP allows Sightings data to be conveyed in several ways. MISP allows Sightings data to be conveyed in several ways.