Skip to content
danmacpherson edited this page Feb 7, 2013 · 1 revision

Provider Types

List all Provider Types

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

Detail of Provider Type

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>

Delete of Provider Type

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>
Clone this wiki locally