Take care to build the hypervisor address as follows (last '/' is mandatory):
http://#{ip}:#{port}/
Hypervisor types are:
- VMX_04
- XENSERVER
- XEN_3
- HYPERV_301
- KVM
- VBOX
curl --verbose -H "Content-type:application/xml" -H "Accept:application/xml" "http://localhost:8888/vsm/monitors" -X POST -d @monitor.xml
Request DTO
<monitor>
<id></id>
<address>#{HypervisorURL}</address>
<type>#{HypervisorType}</type>
</monitor>
Response DTO
<monitor>
<id>#{id}</id>
<address>#{HypervisorURL}</address>
<type>#{HypervisorType}</type>
</monitor>
curl --verbose "http://localhost:8888/vsm/monitors/1" -X DELETE
Request URI
http://localhost:8888/vsm/monitors/#{id}
curl --verbose -H "Content-type:application/xml" -H "Accept:application/xml" "http://localhost:8888/vsm/subscriptions" -X POST -d @subscribe.xml
Request DTO
<subscription>
<id></id>
<uuid>#{name}</uuid>
<notified>UNKNOWN</notified>
<monitor>
<id>#{id}</id>
<address>#{HypervisorURL}</address>
<type>#{HypervisorType}</type>
</monitor>
</subscription>
Response DTO
<subscription>
<id>#{id_vm}</id>
<uuid>#{name}</uuid>
<notified>#{state}</notified>
<monitor>
<id>#{id}</id>
<address>#{HypervisorURL}</address>
<type>#{HypervisorType}</type>
</monitor>
</subscription>
curl --verbose "http://localhost:8888/vsm/subscriptions/1" -X DELETE
Request URI
http://localhost:8888/vsm/subscriptions/#{vm_id}
curl --verbose -X PUT -d @update.xml -H "Content-type:application/xml" "http://localhost/vsm/subscriptions/{subscription_id}"
curl --verbose -X PUT -d @update.xml -H "Content-type:application/xml" "http://localhost/vsm/subscriptions/{subscription_id}"
curl --verbose -H "Accept:application/xml" "http://localhost:8888/vsm/subscriptions" -X GET
curl --verbose -H "Accept:application/xml" -X GET "http://localhost:8888/vsm/subscriptions?uuid=ABQ_1b0e7092-1fea-43fe-bb07-41b20f0bd567"
Request URI
http://localhost:8888/vsm/api/subscriptions?uuid=#{name}