Martin Sivák has uploaded a new change for review. Change subject: restapi: Fix watchdog RSDL definitions ......................................................................
restapi: Fix watchdog RSDL definitions This fixes a typo in one RSDL line and adds the watchdogs subcollection to VM templates. Change-Id: Iaad4bf13e7862e5cb52aede89297eb5707ca96ae Bug-Url: https://bugzilla.redhat.com/1129840 Signed-off-by: Martin Sivak <[email protected]> --- M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml 1 file changed, 54 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/51/32251/1 diff --git a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml index d184c32..82e91c9 100644 --- a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml +++ b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml @@ -584,7 +584,7 @@ urlparams: max: {context: matrix, type: 'xs:int', value: 'max results', required: false} headers: {} -- name: /vms/{vm:id}/wacthdogs/{watchdog:id}|rel=get +- name: /vms/{vm:id}/watchdogs/{watchdog:id}|rel=get description: get the watchdog identified by the id for a given virtual machine request: body: @@ -3931,6 +3931,59 @@ signatures: [] urlparams: {} headers: {} +- name: /templates/{template:id}/watchdogs|rel=get + description: get all the watchdogs for the template identified by the given id + request: + body: + parameterType: null + signatures: [] + urlparams: + max: {context: matrix, type: 'xs:int', value: 'max results', required: false} + headers: {} +- name: /templates/{template:id}/watchdogs/{watchdog:id}|rel=get + description: get the watchdog identified by the id for a given template + request: + body: + parameterType: null + signatures: [] + urlparams: {} + headers: {} +- name: /templates/{template:id}/watchdogs/{watchdog:id}|rel=delete + description: delete the watchdog for the template identified by the given id + request: + body: + parameterType: null + signatures: [] + urlparams: + async: {context: matrix, type: 'xs:boolean', value: true|false, required: false} + headers: + Correlation-Id: {value: 'any string', required: false} +- name: /templates/{template:id}/watchdogs/{watchdog:id}|rel=update + description: update the watchdog for the template identified by the given id + request: + body: + parameterType: WatchDog + signatures: + - mandatoryArguments: {} + optionalArguments: {watchdog.action: 'xs:string', watchdog.model: 'xs:string'} + description: update the watchdog for the template identified by the given id with a new action and model as specified in the request data + urlparams: + headers: + Content-Type: {value: application/xml|json, required: true} + Correlation-Id: {value: 'any string', required: false} +- name: /templates/{template:id}/watchdogs|rel=add + description: add a watchdog to the template identified by the given id + request: + body: + parameterType: WatchDog + signatures: + - mandatoryArguments: {watchdog.action: 'xs:string', watchdog.model: 'xs:string'} + description: add a watchdog to the template identified by the given id + urlparams: {} + headers: + Content-Type: {value: application/xml|json, required: true} + Expect: {value: 201-created, required: false} + Correlation-Id: {value: 'any string', required: false} - name: /templates/{template:id}/disks|rel=get description: get the list of disks attached to the template request: -- To view, visit http://gerrit.ovirt.org/32251 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iaad4bf13e7862e5cb52aede89297eb5707ca96ae Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Sivák <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
