Feature #3732
Give the option of a json-formated output
Status: | Closed | Start date: | 05/15/2013 | |
---|---|---|---|---|
Priority: | Medium | Due date: | 05/24/2013 | |
Assignee: | Stavros Sachtouris | % Done: | 100% |
|
Category: | kamaki | Spent time: | 7.00 hours | |
Target version: | v0.9 | Estimated time: | 1.00 hour |
Description
This feature concerns the operations that return an output in the form of a list or a dict.
A runtime flag option could be added to these operations, e.g. --json
If this option is set, the operation will return a json-formated text instead of the
usual console-oriented human-readable results.
Related issues
Associated revisions
Add json formated output for file list
- Implement a print_json auxiliary method in kamaki.cli.utils
- Add a (j, --json) flag to file list When -j or --json flag is on, only json is printed
Refs: #3732
Add output support to create methods
In kamaki.clients
-------------------
- storage.create_directory returns response headers
- implement pithos.create_container
In kamaki.cli.pithos
-------------------
- add flag --with_output for optional output
- add (j, --json) flag for optional json-formated output apply these changes to file_mkdir, file_touch, file_create
Update file operations and their output
- Add optional output for file methods: mkdir, touch, create, move, create,
copy, move, append, delete, purge, info, meta, upload
- Transliterate permissions and metadata methods to apear as get/set/delete
command subgroups
e.g. kamaki file metadata set ...
instead of
kamaki file setmeta
- Add method create_container to pithos client, add unit and functional tests
Apply option outputs to image commands + renames
- Add image.add_member missing content-length header
- Rename image-[add|del]member commands to members-[add|delete]
- Remove update option from image-register
- In image-compute split properties to properties-list and properties-get
- Add optional output to methods
* image: unregister, members add/delete/set
* image compute: delete, properties delete
- Transliterate methods to list-get-set-delete command groups:
* image: members, member
* image compute: properties
Refs :#3756 #3732
Add json/optional outputs to server commands
Refs: #3732
Add json/optional responses to flavor/network cmds
Refs: #3732
Add json/optional output to astakos cmds
Refs: #3732
Implement an optional json output 4 outputing cmds
Refs: #3732
History
#1 Updated by Stavros Sachtouris almost 11 years ago
- % Done changed from 0 to 30
- Estimated time set to 1.00
#2 Updated by Stavros Sachtouris almost 11 years ago
- % Done changed from 30 to 90
While implementing this feature, some minor bugs and unnessecary differences between similar commands were also fixed
#3 Updated by Stavros Sachtouris almost 11 years ago
Stavros Sachtouris wrote:
While implementing this feature, some minor bugs and unnecessary differences between similar commands were also fixed
#4 Updated by Stavros Sachtouris almost 11 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100