def get_scheme(self): scheme = self.create_scheme() scheme.use_external_validation = True host_argument = Argument("server") host_argument.title = "Host" host_argument.data_type = Argument.data_type_string host_argument.description = "hostname or IP address of the instance to connect to, or a mongodb URI, or a list of hostnames/mongodb URIs" host_argument.required_on_create = True scheme.add_argument(host_argument) port_argument = Argument("port") port_argument.title = "Port" port_argument.data_type = Argument.data_type_string port_argument.description = "port number on which to connect" port_argument.required_on_create = True scheme.add_argument(port_argument) user_argument = Argument("username") user_argument.title = "Username" user_argument.data_type = Argument.data_type_string user_argument.description = "mongodb username" user_argument.required_on_create = False scheme.add_argument(user_argument) pass_argument = Argument("password") pass_argument.title = "Password" pass_argument.data_type = Argument.data_type_string pass_argument.description = "mongodb password" pass_argument.required_on_create = False scheme.add_argument(pass_argument) return scheme
def get_scheme(self): scheme = Scheme("SEKOIA.IO Intelligence Center feed") scheme.description = "Fetch indicators from the Intelligence Center" scheme.use_external_validation = True scheme.use_single_instance = True api_key = Argument("api_key") api_key.title = "API Key" api_key.data_type = Argument.data_type_string api_key.description = ( "SEKOIA.IO API Key to use to access the feed." "Contact [email protected] if you are not sure how to get this API Key." ) api_key.required_on_create = True scheme.add_argument(api_key) feed_id = Argument("feed_id") feed_id.title = "Feed ID" feed_id.data_type = Argument.data_type_string feed_id.description = "Specific Feed ID to use as IOC source." feed_id.required_on_create = False feed_id.required_on_edit = False scheme.add_argument(feed_id) return scheme
def create_scheme(self): scheme = Scheme("MongoDB Collection Stats") scheme.description = "Fetch collection statistics from MongoDB hosts" database_argument = Argument("database") database_argument.title = "Database" database_argument.data_type = Argument.data_type_string database_argument.description = "name of the MongoDB database to run commands against" database_argument.required_on_create = True scheme.add_argument(database_argument) collections_argument = Argument("collections") collections_argument.title = "Database collections" collections_argument.data_type = Argument.data_type_string collections_argument.description = "Space-separated names of the collections to fetch stats for" collections_argument.required_on_create = True scheme.add_argument(collections_argument) return scheme
def get_scheme(self): scheme = self.create_scheme() scheme.use_external_validation = True host_argument = Argument("server") host_argument.title = "Host" host_argument.data_type = Argument.data_type_string host_argument.description = "hostname or IP address of the instance to connect to, or a mongodb URI, or a list of hostnames/mongodb URIs" host_argument.required_on_create = True scheme.add_argument(host_argument) port_argument = Argument("port") port_argument.title = "Port" port_argument.data_type = Argument.data_type_string port_argument.description = "port number on which to connect" port_argument.required_on_create = True scheme.add_argument(port_argument) return scheme
def create_scheme(self): scheme = Scheme("MongoDB Admin") scheme.description = "Collect administrative events from MongoDB hosts" commands_argument = Argument("commands") commands_argument.title = "Admin commands" commands_argument.data_type = Argument.data_type_string commands_argument.description = "The admin commands to run" commands_argument.required_on_create = True scheme.add_argument(commands_argument) return scheme