Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HORSE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iulisloi Zacarias
HORSE
Commits
2078ed21
Commit
2078ed21
authored
1 year ago
by
Chukwuemeka Michael Muonagor
Browse files
Options
Downloads
Patches
Plain Diff
Delete put_whatif.py
parent
79925dc9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
put_whatif.py
+0
-23
0 additions, 23 deletions
put_whatif.py
with
0 additions
and
23 deletions
put_whatif.py
deleted
100644 → 0
+
0
−
23
View file @
79925dc9
import
requests
import
sys
#IP address of the machine on which the IBI is running
host
=
sys
.
argv
[
1
]
#api_url = "http://192.168.56.1:7780/workflows"
api_url
=
"
http://
"
+
host
+
"
:7777/whatif_receives
"
whatif_reply
=
{
"
command
"
:
""
,
"
intent_type
"
:
""
,
"
threat
"
:
""
,
"
host
"
:[],
"
action
"
:
""
,
"
time_frame
"
:
""
,
"
what_if_response
"
:
"
ok
"
}
response
=
requests
.
put
(
api_url
,
json
=
whatif_reply
)
#print(response.json())
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment