API: Change name of zvol

Status
Not open for further replies.

mir

Dabbler
Joined
May 29, 2017
Messages
21
Hi all,
I have tried without luck to change the name of a zvol through the API but no luck so far.
Request:
https://foo.bar.tld/api/v1.0/storage/volume/(name of pool)/zvols/zvol
Body:
{
"name": "myzvol"
}
Response:
{
"name": "zvol",
"volsize": 536870912
}
Is this a bug or a missing feature?
Should I rename a zvol some other way through the API?

Regards,
Michael.
 
D

dlavigne

Guest
Were you able to figure this out? If not, it is worth creating a bug report at bugs.freenas.org so a dev can assist in determining if it is a bug or usage error. If you make a ticket, post the issue number here.
 
Status
Not open for further replies.
Top