Itamar, actually using REST is pretty easy and quick. It just that I explained 
it in details so it looks like the bible.

----- Original Message -----
From: "Itamar Heim" <ih...@redhat.com>
To: "Elad Ben Aharon" <ebena...@redhat.com>, "Sven Kieske" 
<s.kie...@mittwald.de>, "Nauman Abbas" <nauman.ab...@seecs.edu.pk>
Cc: users@ovirt.org, "Alissa Bonas" <abo...@redhat.com>
Sent: Wednesday, January 8, 2014 4:45:07 PM
Subject: Re: [Users] Deleting Storage Connection

On 01/08/2014 04:22 PM, Elad Ben Aharon wrote:
> In 3.3 it suppose to work.
>
> Here is how it's done (more detailed):
>
> 1) Install Rest-Clien plugin:
> https://addons.mozilla.org/he/firefox/addon/restclient/

wouldn't using the cli be simpler?

>
> 2) Access your setup using the plugin:
> Use GET method in order to get the storage connections. Attaching 
> screenshot(29) so you can see how it should look like.
>
> 3) After you get into the storage connection list, You need to find the 
> relevant connection. In order to know which connection to delete, look for 
> the connection path you need to delete. It's specified under the connection. 
> For example:
>
> storage_connection href= 
> "/api/storageconnections/c1b8fe9f-e85b-4146-9a29-227ae845eb6c" 
> id="c1b8fe9f-e85b-4146-9a29-227ae845eb6c">
> <address>lion.qa.lab.tlv.redhat.com</address>
> <type>nfs</type>
> <path>/export/elad/elad16</path>
> </storage_connection>
>
> The export path from the nfs server is:
> lion.qa.lab.tlv.redhat.com , /export/elad/elad16
>
> Now that you know which connection to remove, use DELETE method and pass the 
> connection you want to remove. It's done by copying the UUID of the 
> connection from the Response box to the URL box. It should look like this:
>
> https://elad-rhevm3.qa.lab.tlv.redhat.com:443/api/storageconnections/d2d13260-9164-4311-bb27-f5a0e09981b7
>
> Also, you'll have to specify the host which will perform the removal. It's 
> done like this:
> Under the 'Request' box, add:
>
> <host>
>     <name>host_name</name>
>   </host>
>
> Last thing you'll have to do is to add a header:
>
> In the top of the screen you have 'Headers' option. Pick 'Custom Header' and 
> specify:
>
> name: Content-Type
> value: application/xml
>
>
> Press SEND.
>
> That should work
>
>
>
>
> Elad
>
> ----- Original Message -----
> From: "Sven Kieske" <s.kie...@mittwald.de>
> To: users@ovirt.org
> Sent: Wednesday, January 8, 2014 3:06:07 PM
> Subject: Re: [Users] Deleting Storage Connection
>
> Hi,
>
> actually I think your description is far to shorthanded for everyone
> except for people who already know how to delete a storage connection
> and how to do it via REST.
>
> However there is a quite accurate wiki site with a more detailed
> explanation:
> http://www.ovirt.org/Features/Manage_Storage_Connections#Delete_connection_.28DELETE.29
>
> But it didn't work when I tested it the last time in 3.1.x
>
> But it should work in 3.3.2.
>
> HTH
>
> Am 08.01.2014 13:08, schrieb Elad Ben Aharon:
>> As Itamar said, there is a nicer way to do it.
>>
>>
>> In order to delete a connection, you can do it also via REST-API.
>> You'll need a plugin for your browser (I'm using Rest client for Firefox).
>>
>> Go to storageconnection under api using 'GET':
>>
>> https://hostname:443/api/storageconnections
>>
>> Under that, you'll see your old ISO domain connection (by UUID), use DELETE, 
>> in order to remove it.
>>
>> Just remember, you'll be able to remove a connection only if it's not used 
>> by any domain.
>>
>> Hope it helped.
>>
>> Elad
>
>

_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to