<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>5.3. Enabling API Call Expiration</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Developers_Guide-4.1.0-it-IT-1-" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
              addID('Apache_CloudStack');
              
	      addID('Apache_CloudStack.4.1.0');
              
              addID('Apache_CloudStack.4.1.0.books');
	      addID('Apache_CloudStack.4.1.0.Developers_Guide');
              </script><link rel="home" href="index.html" title="Manuale dello Sviluppatore CloudStack" /><link rel="up" href="api-calls.html" title="Capitolo 5. Calling the CloudStack API" /><link rel="prev" href="signing-api-requests.html" title="5.2. Signing API Requests" /><link rel="next" href="api-throttling.html" title="5.4. Limiting the Rate of API Requests" /></head><body class="toc_embeded "><div id="tocdiv" class="toc"><iframe id="tocframe" class="toc" src="../../../../toc.html">This is an iframe, to view it upgrade your browser or enable iframe display.</iframe></div><p id="title"><a class="left" href="http://cloudstack.apache.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://cloudstack.apache.org/docs"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="signing-api-requests.html"><strong>Indietro</strong></a></li><li class="next"><a accesskey="n" href="api-throttling.html"><strong>Avanti</strong></a></li></ul><div xml:lang="it-IT" class="section" id="enabling-api-call-expiration" lang="it-IT"><div class="titlepage"><div><div><h2 class="title" id="enabling-api-call-expiration">5.3. Enabling API Call Expiration</h2></div></div></div><div class="para">
		You can set an expiry timestamp on API calls to prevent replay attacks over non-secure channels, such as HTTP. The server tracks the expiry timestamp you have specified and rejects all the subsequent API requests that come in after this validity period.
	</div><div class="para">
		To enable this feature, add the following parameters to the API request:
	</div><div class="itemizedlist"><ul><li class="listitem"><div class="para">
				signatureVersion=3: If the signatureVersion parameter is missing or is not equal to 3, the expires parameter is ignored in the API request.
			</div></li><li class="listitem"><div class="para">
				expires=YYYY-MM-DDThh:mm:ssZ: Specifies the date and time at which the signature included in the request is expired. The timestamp is expressed in the YYYY-MM-DDThh:mm:ssZ format, as specified in the ISO 8601 standard.
			</div></li></ul></div><div class="para">
		For example:
	</div><pre class="programlisting">expires=2011-10-10T12:00:00+0530</pre><div class="para">
		A sample API request with expiration is given below:
	</div><pre class="programlisting">http://&lt;IPAddress&gt;:8080/client/api?command=listZones&amp;signatureVersion=3&amp;expires=2011-10-10T12:00:00+0530&amp;apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXq-jB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ&amp;signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D</pre></div><ul class="docnav"><li class="previous"><a accesskey="p" href="signing-api-requests.html"><strong>Indietro</strong>5.2. Signing API Requests</a></li><li class="up"><a accesskey="u" href="#"><strong>Risali</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Partenza</strong></a></li><li class="next"><a accesskey="n" href="api-throttling.html"><strong>Avanti</strong>5.4. Limiting the Rate of API Requests</a></li></ul></body></html>
