incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Dietisheim <andre.dietish...@gmail.com>
Subject why do instance details differ when requesting single instance/all instances?
Date Wed, 25 May 2011 22:39:02 GMT
Hi guys

I just stumbled upon a change that must have been applied to the REST 
API btw. 0.1.2 and 0.3:

If you request the full listing of all running instances, you will not 
get the authentication bits that was used to create the instance. If you 
list a single instance you would get it:

* listing all instances:

<instances>
   <instance  href='http://localhost:3001/api/instances/inst1  <view-source:http://localhost:3001/api/instances/inst1>'id='inst1'>
     <name>ddd</name>
     <owner_id>mockuser</owner_id>
     <image  href='http://localhost:3001/api/images/img1  <view-source:http://localhost:3001/api/images/img1>'id='img1'></image>
     <realm  href='http://localhost:3001/api/realms/us  <view-source:http://localhost:3001/api/realms/us>'id='us'></realm>
     <state>RUNNING</state>

     <hardware_profile  href='http://localhost:3001/api/hardware_profiles/m1-xlarge  <view-source:http://localhost:3001/api/hardware_profiles/m1-xlarge>'id='m1-xlarge'>
     </hardware_profile>
     <actions>
       <link  href='http://localhost:3001/api/instances/inst1/reboot  <view-source:http://localhost:3001/api/instances/inst1/reboot>'method='post'rel='reboot'/>
       <link  href='http://localhost:3001/api/instances/inst1/stop  <view-source:http://localhost:3001/api/instances/inst1/stop>'method='post'rel='stop'/>
     </actions>
     <public_addresses>
       <address>img1.inst1.public.com</address>

     </public_addresses>
     <private_addresses>
       <address>img1.inst1.private.com</address>
     </private_addresses>
   </instance>

* listing a single instance:

<instance  href='http://localhost:3001/api/instances/inst1  <view-source:http://localhost:3001/api/instances/inst1>'id='inst1'>
   <name>ddd</name>
   <owner_id>mockuser</owner_id>
   <image  href='http://localhost:3001/api/images/img1  <view-source:http://localhost:3001/api/images/img1>'id='img1'></image>
   <realm  href='http://localhost:3001/api/realms/us  <view-source:http://localhost:3001/api/realms/us>'id='us'></realm>
   <state>RUNNING</state>
   <hardware_profile  href='http://localhost:3001/api/hardware_profiles/m1-xlarge  <view-source:http://localhost:3001/api/hardware_profiles/m1-xlarge>'id='m1-xlarge'>

   </hardware_profile>
   <actions>
     <link  href='http://localhost:3001/api/instances/inst1/reboot  <view-source:http://localhost:3001/api/instances/inst1/reboot>'method='post'rel='reboot'/>
     <link  href='http://localhost:3001/api/instances/inst1/stop  <view-source:http://localhost:3001/api/instances/inst1/stop>'method='post'rel='stop'/>
   </actions>
   <public_addresses>
     <address>img1.inst1.public.com</address>
   </public_addresses>

   <private_addresses>
     <address>img1.inst1.private.com</address>
   </private_addresses>
   <authentication  type='key'>
     <login>
       <keyname></keyname>
     </login>
   </authentication>

</instance>

Is there any reason behind the fact that you ommit the authentication 
bits when listing all instances or is it a bug? Or do I miss something?

Thanks
/André

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message