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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hardik Juneja
slapos.core
Commits
e8a079f5
Commit
e8a079f5
authored
May 10, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve API.
status will be not sent. log is not decided yet.
parent
810f0e94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
documentation/source/rest.rst
documentation/source/rest.rst
+3
-10
No files found.
documentation/source/rest.rst
View file @
e8a079f5
...
@@ -285,15 +285,13 @@ Modify the instance information and status.
...
@@ -285,15 +285,13 @@ Modify the instance information and status.
{
{
"title": "The New Instance Title",
"title": "The New Instance Title",
"status": "started", # one of: started, stopped, updating, error
"log": "explanation of the status",
"connection": {
"connection": {
"custom_connection_parameter_1": "foo",
"custom_connection_parameter_1": "foo",
"custom_connection_parameter_2": "bar"
"custom_connection_parameter_2": "bar"
}
}
}
}
Where `
status` is required with `log`, `connection` and `title` are optional and their existence allow to not send `status` and `log`
.
Where `
connection` and `title` are optional
.
Setting different.
Setting different.
...
@@ -303,15 +301,10 @@ Setting different.
...
@@ -303,15 +301,10 @@ Setting different.
Content-Type: application/json; charset=utf-8
Content-Type: application/json; charset=utf-8
{
{
'action': ['Action description', 'Action description', ...]
"connection": "Modified",
"title": "Modified."
}
}
Where `action` describes what happened:
* 'Renamed' (where title was different)
* 'Updated status' (where status changed)
* 'Updated connection information' (where connection changed)
`Additional Responses`::
`Additional Responses`::
HTTP/1.1 204 No Content
HTTP/1.1 204 No Content
...
...
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