Title: | Query and Download 'Rapid7' 'Cybersecurity' Data Sets |
---|---|
Description: | 'Rapid7' collects 'cybersecurity' data and makes it available via their 'Open Data' <http://opendata.rapid7.com> portal which has an API. Tools are provided to assist in querying for available data sets and downloading any data set authorized to a free, registered account. |
Authors: | Bob Rudis [aut, cre] , Rapid7 [cph, fnd] |
Maintainer: | Bob Rudis <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-10-23 02:58:22 UTC |
Source: | https://github.com/cran/ropendata |
Retrieve details for a given file from a specific Rapid7 Open Data study
get_file_details(study_name, file_name, include_download_link = FALSE, rapid7_opendata_api_key = rapid7_api_key())
get_file_details(study_name, file_name, include_download_link = FALSE, rapid7_opendata_api_key = rapid7_api_key())
study_name |
A valid study name. This should be a value from the field
|
file_name |
A valid file name from a given |
include_download_link |
if |
rapid7_opendata_api_key |
Your Rapid7 Open Data API key. The various
API interface function look for this key in |
data frame
try( get_file_details("sonar.fdns_v2", "2018-06-15-1529049662-fdns_aaaa.json.gz"), silent=TRUE ) -> details
try( get_file_details("sonar.fdns_v2", "2018-06-15-1529049662-fdns_aaaa.json.gz"), silent=TRUE ) -> details
Retrieve details for a specific Rapid7 Open Data study
get_study_details(study_name, rapid7_opendata_api_key = rapid7_api_key())
get_study_details(study_name, rapid7_opendata_api_key = rapid7_api_key())
study_name |
A valid study name. This should be a value from the field
|
rapid7_opendata_api_key |
Your Rapid7 Open Data API key. The various
API interface function look for this key in |
data frame
try( get_study_details("sonar.national_exposure"), silent=TRUE ) -> details
try( get_study_details("sonar.national_exposure"), silent=TRUE ) -> details
List available Rapid7 Cybersecurity Studies
list_studies(rapid7_opendata_api_key = rapid7_api_key())
list_studies(rapid7_opendata_api_key = rapid7_api_key())
rapid7_opendata_api_key |
Your Rapid7 Open Data API key. The various
API interface function look for this key in |
data frame
try( list_studies(), silent=TRUE ) -> studies
try( list_studies(), silent=TRUE ) -> studies
The API wrapper functions in this package all rely on a Rapid7 Open Data PI key residing in
the environment variable RAPID7_OPENDATA_API_KEY
. The easiest way to accomplish this
is to set it in the '.Renviron' file in your home directory.
rapid7_api_key(force = FALSE)
rapid7_api_key(force = FALSE)
force |
Force setting a new Rapid7 Open Data API key for the current environment? |
API requests are authenticated by a key which can be found and managed from your user profile. With every call to the API, the user must be authenticated. The API has a simple means to do this by passing in your key as an HTTP “Authorization” header with the request.
When you signed up for Rapid7 Open Data, a ‘default-key’ was generated for your convenience. This is the key that is used throughout the example code within algorithm pages. For these examples to work correctly, this default key must exist with all the permissions, otherwise the usage examples may result in a 401 Unauthorized error.
You need a Rapid7 account to get an API key. You can request a free account via <https://opendata.rapid7.com/#register> and then navigate to the "Open Data API" link there to create both an organizational key and a user key. You can only use **user keys** with the Open Data API and you will receive error messages indicating so if you try to use an organizational key.
atomic character vector containing the Rapid7 Open Data API key
As the API documentation says, you need a **User** key vs an **Org** key.
https://opendata.rapid7.com/apihelp/