Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
f3a2deed
Commit
f3a2deed
authored
Nov 16, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define report format.
Additionaly convert all to JSON.
parent
cfa53750
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
14 deletions
+24
-14
documentation/source/rest.rst
documentation/source/rest.rst
+24
-14
No files found.
documentation/source/rest.rst
View file @
f3a2deed
...
...
@@ -346,22 +346,22 @@ Get the status of a computer
"computer_id": "COMP-0",
"software": [
{
software_release=
"http://example.com/example.cfg",
status="install",
# one of: install, uninstall
"software_release":
"http://example.com/example.cfg",
"status": "install"
# one of: install, uninstall
},
],
"partition": [
{
title=
"slapart1",
instance_id=
"foo",
status=
"start", # one of: start, stop, destroy
software_release="http://example.com/example.cfg",
"title":
"slapart1",
"instance_id":
"foo",
"status":
"start", # one of: start, stop, destroy
"software_release": "http://example.com/example.cfg"
},
{
title=
"slapart2",
instance_id=
"bar",
status=
"stop", # one of: start, stop, destroy
software_release="http://example.com/example.cfg",
"title":
"slapart2",
"instance_id":
"bar",
"status":
"stop", # one of: start, stop, destroy
"software_release": "http://example.com/example.cfg"
},
],
}
...
...
@@ -393,9 +393,9 @@ Modify computer information in the system
],
"software": [
{
software_release=
"http://example.com/example.cfg",
status=
"installed", # one of: installed, uninstalled, error
log=
"Installation log"
"software_release":
"http://example.com/example.cfg",
"status":
"installed", # one of: installed, uninstalled, error
"log":
"Installation log"
},
],
}
...
...
@@ -474,7 +474,17 @@ Report computer usage
`Expected Request Body`::
{
"tiosafe": "...",
"title": "Resource consumptions",
"start_date": "2011/11/15",
"stop_date": "2011/11/16",
"movement": [
{
"resource": "CPU Consumption",
"title": "line 1",
"reference": "slappart0",
"quantity": 42.42
}
]
}
`Expected Response`::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment