<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.hostway.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic%3AGET</id>
		<title>Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic%3AGET"/>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;action=history"/>
		<updated>2026-05-23T14:50:27Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;diff=2405&amp;oldid=prev</id>
		<title>Corinne.chui: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;diff=2405&amp;oldid=prev"/>
				<updated>2016-05-30T19:35:03Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:35, 30 May 2016&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Corinne.chui</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;diff=2404&amp;oldid=prev</id>
		<title>Jerry.dimitrov: /* URI Parameters */</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;diff=2404&amp;oldid=prev"/>
				<updated>2015-10-07T13:47:39Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;URI Parameters&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:47, 7 October 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;; scope&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;; scope&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;: ''(required)''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;: ''(required)''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;: The scope defines whether we want statistics for inbound or outbound traffic. Possible values: '''receive''' and '''transmit'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;: The scope defines whether we want statistics for inbound or outbound traffic. Possible values: '''receive''' and '''transmit''' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and '''total''' (receive plus transmit values)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;; startDate&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;; startDate&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jerry.dimitrov</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;diff=2369&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 111</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;diff=2369&amp;oldid=prev"/>
				<updated>2015-09-18T17:15:15Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 111&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:15, 18 September 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;diff=2368&amp;oldid=prev</id>
		<title>Jerry.dimitrov: Created page with &quot;= GET /accounts/{accountId}/dedicatedServers/{serverId}/ipAddresses/{ipAddress}/statistics/traffic = Get traffic statistics by specific time range for an IP address of a dedic...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Accounts-accountId-dedicatedServers-serverId-ipAddresses-ipaddress-statistics-traffic:GET&amp;diff=2368&amp;oldid=prev"/>
				<updated>2015-09-15T14:53:49Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= GET /accounts/{accountId}/dedicatedServers/{serverId}/ipAddresses/{ipAddress}/statistics/traffic = Get traffic statistics by specific time range for an IP address of a dedic...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= GET /accounts/{accountId}/dedicatedServers/{serverId}/ipAddresses/{ipAddress}/statistics/traffic =&lt;br /&gt;
Get traffic statistics by specific time range for an IP address of a dedicated server.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== Request ===&lt;br /&gt;
&amp;lt;code&amp;gt;GET /accounts/{accountId}/dedicatedServers/{serverId}/ipAddresses/{ipAddress}/statistics/traffic?scope={scope}&amp;amp;startDate={startDate}&amp;amp;endDate={endDate}&amp;amp;period={period}''&amp;amp;''method={method}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== URI Parameters ==&lt;br /&gt;
; accountId - ''string''&lt;br /&gt;
: ''(required)''&lt;br /&gt;
: The account Id of the dedicated server owner.&lt;br /&gt;
&lt;br /&gt;
; serverId&lt;br /&gt;
: ''(required)''&lt;br /&gt;
: The dedicated server Id for the requested IP address.&lt;br /&gt;
&lt;br /&gt;
; ipAddress - ''string''&lt;br /&gt;
: The specific IP address.&lt;br /&gt;
&lt;br /&gt;
; scope&lt;br /&gt;
: ''(required)''&lt;br /&gt;
: The scope defines whether we want statistics for inbound or outbound traffic. Possible values: '''receive''' and '''transmit'''.&lt;br /&gt;
&lt;br /&gt;
; startDate&lt;br /&gt;
: ''(required)''&lt;br /&gt;
: Start date that represents the beginning of the requested statistical time frame. The format should be '''yyyy-mm-dd'''.&lt;br /&gt;
&lt;br /&gt;
; endDate&lt;br /&gt;
: ''(required)''&lt;br /&gt;
: End date that represents the end of the requested statistical time frame. The format should be '''yyyy-mm-dd'''.&lt;br /&gt;
&lt;br /&gt;
; period&lt;br /&gt;
: ''(required)''&lt;br /&gt;
: Represents the granularity of the returned data sets for the requested time frame. Possible values: '''hourly''' or '''daily'''.&lt;br /&gt;
&lt;br /&gt;
; method&lt;br /&gt;
: ''(required)''&lt;br /&gt;
: Statistics method used.  Possible values: '''avg''','''sum''','''min''' and '''max'''.&lt;br /&gt;
&lt;br /&gt;
=== Request Headers ===&lt;br /&gt;
&lt;br /&gt;
;: {{Authorization}}&lt;br /&gt;
; Accept - HTTP Accept header [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1]&lt;br /&gt;
: Possible values are ''application/json'', ''text/csv''. If omitted json will be returned.&lt;br /&gt;
&lt;br /&gt;
== Date Format ==&lt;br /&gt;
: All dates are interpreted and represented in UTC with [http://www.iso.org/iso/home/standards/iso8601.htm ISO 8601 format]&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
=== Status Codes ===&lt;br /&gt;
; 200 OK&lt;br /&gt;
: Success&lt;br /&gt;
&lt;br /&gt;
; 400 Bad Request&lt;br /&gt;
: Incorrect URI parameters.&lt;br /&gt;
&lt;br /&gt;
; 401 Unauthorized&lt;br /&gt;
: The supplied credentials are invalid or do not provide permissions for this operation.&lt;br /&gt;
&lt;br /&gt;
; 403 Forbidden&lt;br /&gt;
: The authorized user does not have permissions to access the resource or the requested time frame exceeds the maximum limit for the API.&lt;br /&gt;
: The current limit is 500 data sets per response entity, regardless of the period granularity.&lt;br /&gt;
&lt;br /&gt;
; 404 Not Found&lt;br /&gt;
: The dedicated server or account does not exist.&lt;br /&gt;
&lt;br /&gt;
=== Response Body ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 [&lt;br /&gt;
    {&lt;br /&gt;
       &amp;quot;count&amp;quot;: {count}, &lt;br /&gt;
       &amp;quot;date&amp;quot;: &amp;quot;{date}&amp;quot;, &lt;br /&gt;
       &amp;quot;values&amp;quot;: {values}&lt;br /&gt;
    }&lt;br /&gt;
 ]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; count - ''integer''&lt;br /&gt;
: The count of traffic operations for the specified period.&lt;br /&gt;
&lt;br /&gt;
; date - ''string''&lt;br /&gt;
: The date time stamp for the specified period.&lt;br /&gt;
&lt;br /&gt;
; values - ''float''&lt;br /&gt;
: The actual traffic value represented for the specified period.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''Successful response for total daily inbound traffic statistics'''&lt;br /&gt;
:'''GET''' /accounts/{accountId}/dedicatedServers/{serverId}/ipAddresses/{ipAddress}/statistics/traffic?scope=receive&amp;amp;startDate=2015-05-05&amp;amp;endDate=2012-05-07&amp;amp;period=daily&amp;amp;method=sum&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 200 OK&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Response Body:''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 [&lt;br /&gt;
    {&lt;br /&gt;
       &amp;quot;count&amp;quot;: 143, &lt;br /&gt;
       &amp;quot;date&amp;quot;: &amp;quot;2015-05-05 00:00:00&amp;quot;, &lt;br /&gt;
       &amp;quot;values&amp;quot;: 344130.30069930002&lt;br /&gt;
    }, &lt;br /&gt;
    {&lt;br /&gt;
       &amp;quot;count&amp;quot;: 144, &lt;br /&gt;
       &amp;quot;date&amp;quot;: &amp;quot;2015-05-07 00:00:00&amp;quot;, &lt;br /&gt;
       &amp;quot;values&amp;quot;: 658.34027777777999&lt;br /&gt;
    },&lt;br /&gt;
 ]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Failure while trying to get traffic statistics and the number of returned data sets exceeds the maximum limit'''&lt;br /&gt;
:'''GET''' /accounts/{accountId}/dedicatedServers/{serverId}/ipAddresses/{ipAddress}/statistics/traffic?scope=receive&amp;amp;startDate=2015-01-01&amp;amp;endDate=2015-05-05&amp;amp;period=daily&amp;amp;method=sum&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 403 Forbidden&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Response Body:''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;overLimit&amp;quot;: {&lt;br /&gt;
        &amp;quot;message&amp;quot;: &amp;quot;GET data error&amp;quot;,&lt;br /&gt;
        &amp;quot;code&amp;quot;: 403,&lt;br /&gt;
        &amp;quot;details&amp;quot;: &amp;quot;The (startDate, endDate) range is too large. Maximum number of returned data sets exceeded.&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Failure while trying to get traffic statistics and the start date is before the create date (2015-01-01) of the dedicated server'''&lt;br /&gt;
:'''GET''' /accounts/{accountId}/dedicatedServers/{serverId}/ipAddresses/{ipAddress}/statistics/traffic?scope=receive&amp;amp;startDate=2011-01-01&amp;amp;endDate=2015-05-05&amp;amp;period=daily&amp;amp;method=sum&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 400 Bad Request&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Response Body:''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;badRequest&amp;quot;: {&lt;br /&gt;
        &amp;quot;message&amp;quot;: &amp;quot;GET data error&amp;quot;,&lt;br /&gt;
        &amp;quot;code&amp;quot;: 400,&lt;br /&gt;
        &amp;quot;details&amp;quot;: {&lt;br /&gt;
            &amp;quot;startDate&amp;quot;: &amp;quot;2011-01-01 is less than minimum value 2015-01-01&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Hostway API]]&lt;br /&gt;
[[Category:Dedicated Server API]]&lt;/div&gt;</summary>
		<author><name>Jerry.dimitrov</name></author>	</entry>

	</feed>