#!/bin/sh

url="https://xxxx/ovirt-engine/api"
user="admin@internal"
password="xxxxxx"
storage_domain_id="7a48fe46-2112-40a4-814f-24d74c760b2d"
disk_id="16736ce0-a9df-410f-9f29-3a28364cdd41"

curl \
--verbose \
--insecure \
--user "${user}:${password}" \
--request POST \
--header "Content-Type: application/xml" --header "Accept: application/xml" --data "<disk id=\"${disk_id}\"/>" \
"${url}/storagedomains/${storage_domain_id}/disks;unregistered"

