-
Notifications
You must be signed in to change notification settings - Fork 6
Api reference target images
mtaylor edited this page Apr 11, 2013
·
2 revisions
curl -X POST --header "Accept: application/xml" --header \
"Content-Type: application/xml" http://localhost:3000/tim/target_images --data \
"<target_image>
<image_version id='2' />
</target_image>"
####Headers
HTTP Status Code: 201
<target_image href='http://localhost:3000/tim/target_images/1' id='1'>
<target>EC2</target>
<status>BUILDING</status>
<status_detail></status_detail>
<progress>0</progress>
<image_version href='http://localhost:3000/tim/image_versions/2' id='2'></image_version>
<provider_images></provider_images>
</target_image>
curl --header "Accept: application/xml" http://localhost:3000/tim/target_images/1
####Headers
HTTP Status Code: 200
<target_image href='http://localhost:3000/tim/target_images/1' id='1'>
<target>EC2</target>
<status>COMPLETE</status>
<status_detail></status_detail>
<progress>100</progress>
<image_version href='http://localhost:3000/tim/image_versions/2' id='2'></image_version>
<provider_images></provider_images>
</target_image>
curl --header "Accept: application/xml" http://localhost:3000/tim/target_images
####Headers
HTTP Status Code: 200
<target_images>
<target_image href='http://localhost:3000/tim/target_images/1' id='1'></target_image>
<target_image href='http://localhost:3000/tim/target_images/2' id='2'></target_image>
<target_image href='http://localhost:3000/tim/target_images/3' id='3'></target_image>
</target_images>
curl -X DELETE --header "Accept: application/xml" http://localhost:3000/tim/target_images/1
####Headers
HTTP Status Code: 204
curl -X PUT --header "Accept: application/xml" --header \
"Content-Type: application/xml" http://localhost:3000/tim/target_images/2 --data \
"<target_image>
<image_version id='3'></image_version>
</target_image>"
####Headers
HTTP Status Code: 204