-
Notifications
You must be signed in to change notification settings - Fork 27
Provider Types
danmacpherson edited this page Feb 7, 2013
·
1 revision
Request
curl -X GET --user admin:password--header “Accept: application/xml” --header “Content-Type: application/xml” -k http://localhost/conductor/api/provider_types
Response
<provider_types>
<provider_type href='http://localhost/conductor/api/provider_types/1' id='1'>
</provider_type>
<provider_type href='http://localhost/conductor/api/provider_types/2' id='2'>
</provider_type>
<provider_type href='http://localhost/conductor/api/provider_types/3' id='3'>
</provider_type>
</provider_types>
http status 200 OK
Request
curl -X GET --user admin:password--header “Accept: application/xml” --header “Content-Type: application/xml” -k http://localhost/conductor/api/provider_types/1
Response
if success
http status 200 OK
<provider_type id='1' href='http://localhost/conductor/api/provider_types/1'>
<name>providertypename</name>
<deltacloud_driver>deltaclouddriver</deltacloud_driver>
<ssh_user>sshuser</ssh_user>
<home_dir>homedir</home_dir>
</provider_type>
if requested Provider Type does not exist
http status 404 Not Found
<error>
<code>RecordNotFound</code>
<message>Couldn’t find Provider with ID=1</message>
</error>
Request
curl -X DELETE --user admin:password--header “Accept: application/xml” —header “Content-Type: application/xml” -k http://localhost/conductor/api/provider_types/1
Response
if success
http status 204 No Content
if requested Provider Type does not exist
http status 404 Not Found
<code><error>
<code>RecordNotFound</code>
<message>Couldn't find Provider with ID=1</message>
</error></code>