Project

General

Profile

Bug #23848

Unify zvol create/update code and update API docs

Added by Vaibhav Chauhan over 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Important
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Sprint:
Severity:
New
Backlog Priority:
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

please include the following in example,

Comments:
Force size:
Compression level:
Sparse volume:
Block size:

at the present following, POST request looks like this,
http://api.freenas.org/resources/storage.html?highlight=zvol

Associated revisions

Revision 4ae29ebf (diff)
Added by William Grzybowski over 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

Revision a80313b7 (diff)
Added by William Grzybowski over 1 year ago

fix(api): update docs to reflect reality

Ticket: #23848

Revision ba6bbec6 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

Revision f7ab983d (diff)
Added by William Grzybowski about 1 year ago

fix(api): update docs to reflect reality

Ticket: #23848

Revision e2c3203b (diff)
Added by William Grzybowski about 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

Revision 00fdcdff (diff)
Added by William Grzybowski about 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

Revision 542e2d40 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

Revision 78b832b5 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

Revision f2351ff0 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

Revision fa9dc960 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

Revision 09ab6f82 (diff)
Added by William Grzybowski about 1 year ago

fix(gui): unify some of ZVol create/update code

Ticket: #23848

History

#1 Updated by William Grzybowski over 1 year ago

  • Status changed from Unscreened to Screened
  • Target version changed from 11.0 to 11.1

#2 Updated by William Grzybowski over 1 year ago

  • Subject changed from Please provide an example on how to use RestAPI to make a POST request. to Unify ZVol create/update code and update API docs to reflect reality

#3 Updated by William Grzybowski over 1 year ago

  • Status changed from Screened to Ready For Release
curl -v --basic -H "Content-Type: application/json" -u root:freenas "http://192.168.100.10/api/v1.0/storage/volume/tank/zvols/" -X POST -d '{"comments": "FreeNAS ZVOL", "name": "fnzvol", "volsize": "10M", "compression": "gzip-9", "sparse": true, "force": true, "blocksize": "4K"}'

curl -v --basic -H "Content-Type: application/json" -u root:freenas "http://192.168.100.10/api/v1.0/storage/volume/tank/zvols/fnzvol/" -X PUT -d '{"comments": "comment test"}'

#4 Updated by William Grzybowski over 1 year ago

ZVOL create/edit screens might have changed slightly.

#5 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Unify ZVol create/update code and update API docs to reflect reality to Unify ZVol create/update code and update API docs

#6 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Unify ZVol create/update code and update API docs to Unify zvol create/update code and update API docs
  • Target version changed from 11.1 to 11.1-BETA1

#7 Updated by Dru Lavigne 12 months ago

  • Status changed from Ready For Release to Resolved

#8 Updated by Joe Maloney 11 months ago

  • Needs QA changed from Yes to No

Also available in: Atom PDF