csle_rest_api package
Subpackages
- csle_rest_api.constants package
- csle_rest_api.pages package
- Subpackages
- csle_rest_api.pages.about package
- csle_rest_api.pages.container_terminal package
- csle_rest_api.pages.control_plane package
- csle_rest_api.pages.create_emulation package
- csle_rest_api.pages.downloads package
- csle_rest_api.pages.emulation_statistics package
- csle_rest_api.pages.emulations package
- csle_rest_api.pages.images package
- csle_rest_api.pages.jobs package
- csle_rest_api.pages.login package
- csle_rest_api.pages.logs_admin package
- csle_rest_api.pages.monitoring package
- csle_rest_api.pages.policies package
- csle_rest_api.pages.policy_examination package
- csle_rest_api.pages.register package
- csle_rest_api.pages.sdn_controllers package
- csle_rest_api.pages.server_cluster package
- csle_rest_api.pages.simulations package
- csle_rest_api.pages.system_admin package
- csle_rest_api.pages.system_models package
- csle_rest_api.pages.traces package
- csle_rest_api.pages.training package
- csle_rest_api.pages.user_admin package
- Module contents
- Subpackages
- csle_rest_api.resources package
- Subpackages
- csle_rest_api.resources.alpha_vec_policies package
- csle_rest_api.resources.cadvisor package
- csle_rest_api.resources.cluster_status package
- csle_rest_api.resources.config package
- csle_rest_api.resources.create_emulation package
- csle_rest_api.resources.data_collection_jobs package
- csle_rest_api.resources.docker package
- csle_rest_api.resources.dqn_policies package
- csle_rest_api.resources.empirical_system_models package
- csle_rest_api.resources.emulation_executions package
- csle_rest_api.resources.emulation_simulation_traces package
- csle_rest_api.resources.emulation_statistics package
- csle_rest_api.resources.emulation_traces package
- csle_rest_api.resources.emulations package
- csle_rest_api.resources.experiments package
- csle_rest_api.resources.file package
- csle_rest_api.resources.flask package
- csle_rest_api.resources.fnn_w_softmax_policies package
- csle_rest_api.resources.gaussian_mixture_system_models package
- csle_rest_api.resources.gp_system_models package
- csle_rest_api.resources.grafana package
- csle_rest_api.resources.images package
- csle_rest_api.resources.linear_threshold_policies package
- csle_rest_api.resources.login package
- csle_rest_api.resources.logs package
- csle_rest_api.resources.mcmc_system_models package
- csle_rest_api.resources.multi_threshold_policies package
- csle_rest_api.resources.nginx package
- csle_rest_api.resources.node_exporter package
- csle_rest_api.resources.pgadmin package
- csle_rest_api.resources.postgresql package
- csle_rest_api.resources.ppo_policies package
- csle_rest_api.resources.prometheus package
- csle_rest_api.resources.sdn_controllers package
- csle_rest_api.resources.server_cluster package
- csle_rest_api.resources.simulation_traces package
- csle_rest_api.resources.simulations package
- csle_rest_api.resources.statistics_datasets package
- csle_rest_api.resources.system_identification_jobs package
- csle_rest_api.resources.system_models package
- csle_rest_api.resources.tabular_policies package
- csle_rest_api.resources.traces_datasets package
- csle_rest_api.resources.training_jobs package
- csle_rest_api.resources.users package
- csle_rest_api.resources.vector_policies package
- csle_rest_api.resources.version package
- Module contents
- Subpackages
- csle_rest_api.util package
- csle_rest_api.web_sockets package
Submodules
csle_rest_api.rest_api module
- csle_rest_api.rest_api.create_app(static_folder: str)[source]
Creates and initializes the Flask App
- Parameters
static_folder – path to the folder to serve static resources
- Returns
the flask app
- csle_rest_api.rest_api.start_server(static_folder: str, port: int = 7777, num_threads: int = 100, host: str = '0.0.0.0', https: bool = False) None [source]
Creates the flask app and serves it
- Parameters
static_folder – path to the folder to server static resources
port – the port for serving
num_threads – number of threads for serving
host – the host string for serving
https – boolean flag whether to use https or not
- Returns
None