1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:exsl="http://exslt.org/common" xmlns:ng="http://docbook.org/docbook-ng"><head>
5
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
6
<title>Efficient Polling with the Changes-Since Parameter</title><meta name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"/><link rel="home" href="index.html" title="OpenStack Compute Developer Guide"/><link rel="up" href="ch03.html" title="Chapter 3. General API Information"/><link rel="prev" href="ch03s07.html" title="Caching"/><link rel="next" href="ch03s09.html" title="Limits"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><script type="text/javascript">
7
//The id for tree cookie
8
var treeCookieId = "treeview-4581";
12
txt_filesfound = 'Results';
13
txt_enter_at_least_1_char = "You must enter at least one character.";
14
txt_browser_not_supported = "Your browser is not supported. Use of Mozilla Firefox is recommended.";
15
txt_please_wait = "Please wait. Search in progress...";
16
txt_results_for = "Results for: ";
17
</script><style type="text/css">
27
background: transparent url(../common/jquery/treeview/images/folder.gif) 0 0px no-repeat;
30
</style><link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/><link rel="stylesheet" type="text/css" href="../common/css/positioning.css"/><link rel="stylesheet" type="text/css" href="../common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css"/><link rel="stylesheet" type="text/css" href="../common/jquery/treeview/jquery.treeview.css"/><script type="text/javascript" src="../common/jquery/jquery-1.4.2.min.js"><!----></script><script type="text/javascript" src="../common/jquery/jquery-ui-1.8.2.custom.min.js"><!----></script><script type="text/javascript" src="../common/jquery/jquery.cookie.js"><!----></script><script type="text/javascript" src="../common/jquery/treeview/jquery.treeview.min.js"><!----></script><script type="text/javascript" src="search/htmlFileList.js"><!----></script><script type="text/javascript" src="search/htmlFileInfoList.js"><!----></script><script type="text/javascript" src="search/nwSearchFnt.js"><!----></script><script type="text/javascript" src="search/stemmers/en_stemmer.js"><!--//make this scalable to other languages as well.--></script><script type="text/javascript" src="search/index-1.js"><!----></script><script type="text/javascript" src="search/index-2.js"><!----></script><script type="text/javascript" src="search/index-3.js"><!----></script></head><body><div xmlns="" id="header"><img src="../common/images/openstack-logo.png" alt="OpenStack Documentation" width="157" height="47"/><p class="breadcrumbs"><a href="http://docs.openstack.org/">OpenStack Manuals</a></p><h1>Efficient Polling with the
31
<em xmlns="http://www.w3.org/1999/xhtml" class="parameter"><code>Changes-Since</code></em> Parameter</h1><div id="navheader" align="right"><!----><table class="navLinks"><tr><td><a id="showHideButton" onclick="showHideToc();" class="pointLeft" title="Hide TOC tree">Sidebar
32
</a></td><td><a accesskey="p" class="navLinkPrevious" href="ch03s07.html">Prev</a>
34
<a accesskey="u" class="navLinkUp" href="ch03.html">Up</a>
36
<a accesskey="n" class="navLinkNext" href="ch03s09.html">Next</a></td></tr></table></div></div><div id="content"><!----><div class="section" title="Efficient Polling with the Changes-Since Parameter"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="d877e480"/>Efficient Polling with the
37
<em class="parameter"><code>Changes-Since</code></em> Parameter</h2></div></div></div><p> The ReST API allows you to poll for the status of
38
certain operations by performing a <span class="command"><strong>GET</strong></span> on various
39
elements. Rather than re-downloading and re-parsing the
40
full status at each polling interval, your ReST client may
41
use the <em class="parameter"><code>changes-since</code></em> parameter to
42
check for changes since a previous request. The
43
<em class="parameter"><code>changes-since</code></em> time is specified as
44
an <a class="link" href="http://en.wikipedia.org/wiki/ISO_8601" target="_top">ISO
45
8601</a> dateTime (2011-01-24T17:08Z). You may also
46
specify a date without a timestamp (2011-01-24), in this
47
case the UTC timezone will be assumed. If nothing has
48
changed since the <em class="parameter"><code>changes-since</code></em>
49
time, a <span class="returnvalue">304 (Not Modified)</span>
50
response will be returned. If data has changed, only the
51
items changed since the specified time will be returned in
52
the response. For example, performing a <span class="command"><strong>GET</strong></span> against
53
https://api.servers.openstack.org/v1.1/224532/servers?<em class="parameter"><code>changes-since</code></em>=2011-01-24T17:08Z
54
would list all servers that have changed since Mon, 24 Jan
55
2011 17:08:00 UTC. </p></div><script xmlns="" type="text/javascript" src="../common/main.js"><!----></script><hr xmlns=""/><h2 xmlns="" class="userNotes">User Notes On This Page</h2><div xmlns="" id="disqus_thread"><script type="text/javascript">
56
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
57
var disqus_shortname = 'openstackdocs';
65
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
66
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
67
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
69
</script><noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript><a href="http://disqus.com" class="dsq-brlink">User notes powered by <span class="logo-disqus">Disqus</span></a></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s07.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch03s09.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></div><div xmlns=""><div id="leftnavigation" style="padding-top:3px; background-color:white;"><div id="tabs"><ul><li><a href="#treeDiv"><span class="contentsTab">Contents</span></a></li><li><a href="#searchDiv"><span class="searchTab">Search</span></a></li></ul><div id="treeDiv"><img src="../../../common/images/loading.gif" alt="loading table of contents..." id="tocLoading" style="display:block;"/><div id="ulTreeDiv" style="display:none"><ul id="tree" class="filetree"><li xmlns="http://www.w3.org/1999/xhtml"><span class="file"><a href="ch01.html">Overview</a></span><ul><li><span class="file"><a href="ch01s01.html">Intended Audience</a></span></li><li><span class="file"><a href="ch01s02.html">Document Change History</a></span></li></ul></li><li xmlns="http://www.w3.org/1999/xhtml"><span class="file"><a href="ch02.html">Concepts</a></span><ul><li><span class="file"><a href="ch02s01.html">Server</a></span></li><li><span class="file"><a href="ch02s02.html">Flavor</a></span></li><li><span class="file"><a href="ch02s03.html">Image</a></span></li><li><span class="file"><a href="ch02s04.html">Reboot</a></span></li><li><span class="file"><a href="ch02s05.html">Rebuild</a></span></li><li><span class="file"><a href="ch02s06.html">Resize</a></span></li></ul></li><li xmlns="http://www.w3.org/1999/xhtml"><span class="file"><a href="ch03.html">General API Information</a></span><ul><li><span class="file"><a href="ch03s01.html">Authentication</a></span></li><li><span class="file"><a href="ch03s02.html">Request/Response Types</a></span></li><li><span class="file"><a href="ch03s03.html">Content Compression</a></span></li><li><span class="file"><a href="ch03s04.html">Persistent Connections</a></span></li><li><span class="file"><a href="ch03s05.html">Links and References</a></span></li><li><span class="file"><a href="ch03s06.html">Paginated Collections</a></span></li><li><span class="file"><a href="ch03s07.html">Caching</a></span></li><li id="webhelp-currentid"><span class="file"><a href="ch03s08.html">Efficient Polling with the
70
Changes-Since Parameter</a></span></li><li><span class="file"><a href="ch03s09.html">Limits</a></span><ul><li><span class="file"><a href="ch03s09.html#d877e498">Rate Limits</a></span></li><li><span class="file"><a href="ch03s09.html#d877e549">Absolute Limits</a></span></li><li><span class="file"><a href="ch03s09.html#ProgramaticLimits">Determining Limits Programmatically</a></span></li></ul></li><li><span class="file"><a href="ch03s10.html">Versions</a></span></li><li><span class="file"><a href="ch03s11.html">Extensions</a></span></li><li><span class="file"><a href="ch03s12.html">Faults</a></span></li></ul></li><li xmlns="http://www.w3.org/1999/xhtml"><span class="file"><a href="ch04.html">API Operations</a></span><ul><li><span class="file"><a href="ch04s01.html">Servers</a></span><ul><li><span class="file"><a href="ch04s01.html#d877e882">List Servers</a></span></li><li><span class="file"><a href="ch04s01.html#CreateServers">Create Server</a></span><ul><li><span class="file"><a href="ch04s01.html#d877e1008">Server Affinity</a></span></li><li><span class="file"><a href="ch04s01.html#d877e1016">Server Passwords</a></span></li><li><span class="file"><a href="ch04s01.html#d877e1023">Server Metadata</a></span></li><li><span class="file"><a href="ch04s01.html#d877e1028">Server Personality</a></span></li></ul></li><li><span class="file"><a href="ch04s01.html#d877e1033">Get Server Details</a></span></li><li><span class="file"><a href="ch04s01.html#d877e1067">Update Server Name</a></span></li><li><span class="file"><a href="ch04s01.html#d877e1112">Delete Server</a></span></li></ul></li><li><span class="file"><a href="ch04s02.html">Server Addresses</a></span><ul><li><span class="file"><a href="ch04s02.html#d877e1162">List Addresses</a></span></li><li><span class="file"><a href="ch04s02.html#d877e1194">List Addresses by Network</a></span></li></ul></li><li><span class="file"><a href="ch04s03.html">Server Actions</a></span><ul><li><span class="file"><a href="ch04s03.html#d877e1230">Change Password</a></span></li><li><span class="file"><a href="ch04s03.html#d877e1279">Reboot Server</a></span></li><li><span class="file"><a href="ch04s03.html#d877e1344">Rebuild Server</a></span></li><li><span class="file"><a href="ch04s03.html#d877e1410">Resize Server</a></span></li><li><span class="file"><a href="ch04s03.html#d877e1481">Confirm Resized Server</a></span></li><li><span class="file"><a href="ch04s03.html#d877e1528">Revert Resized Server</a></span></li></ul></li><li><span class="file"><a href="ch04s04.html">Flavors</a></span><ul><li><span class="file"><a href="ch04s04.html#d877e1578">List Flavors</a></span></li><li><span class="file"><a href="ch04s04.html#d877e1615">Get Flavor Details</a></span></li></ul></li><li><span class="file"><a href="ch04s05.html">Images</a></span><ul><li><span class="file"><a href="ch04s05.html#d877e1652">List Images</a></span></li><li><span class="file"><a href="ch04s05.html#d877e1697">Create Image</a></span></li><li><span class="file"><a href="ch04s05.html#d877e1779">Get Image Details</a></span></li><li><span class="file"><a href="ch04s05.html#d877e1813">Delete Image</a></span></li></ul></li><li><span class="file"><a href="ch04s06.html">Metadata</a></span><ul><li><span class="file"><a href="ch04s06.html#d877e1844">List Metadata</a></span></li><li><span class="file"><a href="ch04s06.html#d877e1882">Update Metadata</a></span></li><li><span class="file"><a href="ch04s06.html#d877e1928">Get Metadata Item</a></span></li><li><span class="file"><a href="ch04s06.html#d877e1969">Create or Update a Metadata Item</a></span></li><li><span class="file"><a href="ch04s06.html#d877e2018">Delete Metadata Item</a></span></li></ul></li></ul></li></ul></div></div><div id="searchDiv"><div id="search"><form onsubmit="Verifie(ditaSearch_Form);return false" name="ditaSearch_Form" class="searchForm"><fieldset class="searchFieldSet"><legend>Search</legend><center><input id="textToSearch" name="textToSearch" type="text" class="searchText"/> <input onclick="Verifie(ditaSearch_Form)" type="button" class="searchButton" value="Go" id="doSearch"/></center></fieldset></form></div><div id="searchResults"><center/></div><p class="searchHighlight"><a href="#" onclick="toggleHighlight()">Search Highlighter (On/Off)</a></p></div></div></div></div></body></html>
b'\\ No newline at end of file'