Juan Hernandez has posted comments on this change.

Change subject: restapi: Allow creation of new disks as copy of any existing 
disk
......................................................................


Patch Set 3:

(1 comment)

https://gerrit.ovirt.org/#/c/38367/3/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
File 
backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml:

Line 1214:           action.storage_domain.id|name: xs:string
Line 1215:         optionalArguments:
Line 1216:           action.async: xs:boolean
Line 1217:           action.grace_period.expiry: xs:long
Line 1218:           action.name: xs:string
> because the parameter type is action and the action does not have the "alia
Changing the type from "action" to "disk" isn't possible, as you say, as all 
actions must receive and return an "Action" object.

But you can use the existing "action.disk" element, and it already contains 
both "name" and "alias":

  POST /disks/{disk:id}/copy
  <action>
    <disk>
      <name>newname</name>
    </disk>
  </action>

  POST /disks/{disk:id}/copy
  <action>
    <disk>
      <alias>newname</alias>
    </disk>
  </action>
Line 1219:         description: copy a disk to a different storage domain
Line 1220:     urlparams: {}
Line 1221:     headers:
Line 1222:       Content-Type: {value: application/xml|json, required: true}


-- 
To view, visit https://gerrit.ovirt.org/38367
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8931d2464d6ad17a80d9b394f16d01a2c47d7575
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tomas Jelinek <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to