<?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=Monitoring%2FDisk</id>
		<title>Monitoring/Disk - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Monitoring%2FDisk"/>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Monitoring/Disk&amp;action=history"/>
		<updated>2026-05-23T13:21:08Z</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=Monitoring/Disk&amp;diff=2507&amp;oldid=prev</id>
		<title>Corinne.chui: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Monitoring/Disk&amp;diff=2507&amp;oldid=prev"/>
				<updated>2016-05-30T19:36:51Z</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:36, 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=Monitoring/Disk&amp;diff=2506&amp;oldid=prev</id>
		<title>Mitko.georgiev at 13:17, 13 May 2015</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Monitoring/Disk&amp;diff=2506&amp;oldid=prev"/>
				<updated>2015-05-13T13:17:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;='''POST''' /accounts/'''account_number'''/dedicatedServers/'''dedicated_server'''/ipAddresses/'''ip_address'''/monitoring/disk=&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;This API call is deprecated!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Creates Disk check&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; account_number - ''string''&lt;br /&gt;
; dedicated_server - ''string''&lt;br /&gt;
; ip_address - ''string''&lt;br /&gt;
&lt;br /&gt;
== Request==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;enabled&amp;quot;: true,&lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: false         &lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeSpace&amp;quot;: 10, &lt;br /&gt;
         &amp;quot;partition&amp;quot;: &amp;quot;/&amp;quot;&lt;br /&gt;
      }      &lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Enable the check&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Enable alerts&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeSpace - ''int''&lt;br /&gt;
: The disk space usage limit for check alerts&lt;br /&gt;
; options.partition - ''string''&lt;br /&gt;
: The partition identifier&lt;br /&gt;
&lt;br /&gt;
== Response==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;disk&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeSpace&amp;quot;: 10, &lt;br /&gt;
         &amp;quot;partition&amp;quot;: &amp;quot;/&amp;quot;&lt;br /&gt;
      }, &lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: {status}, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: {last_check}, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: {enabled_alert}, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
         &amp;quot;id&amp;quot;: {id}&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
     {&lt;br /&gt;
       &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_id}/dedicatedServers/{dedicated_server_id}/ipAddresses/{ip_address}/monitoring/disk/{id}&amp;quot;, &lt;br /&gt;
       &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
     }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
; type - ''string''&lt;br /&gt;
: disk&lt;br /&gt;
&lt;br /&gt;
; links - ''list''&lt;br /&gt;
: [[Hypermedia]] for this resource.&lt;br /&gt;
&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.id - ''string''&lt;br /&gt;
: Unique identifier for this check.&lt;br /&gt;
&lt;br /&gt;
; check.status&lt;br /&gt;
: Status of the disk check - possible values: null, OK, Warning, Critical, Unknown&lt;br /&gt;
&lt;br /&gt;
; check.lastCheck&lt;br /&gt;
: Time of last disk check&lt;br /&gt;
&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Is the check enabled&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Are alerts enabled&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeSpace - ''int''&lt;br /&gt;
: The disk space usage limit for check alerts&lt;br /&gt;
; options.partition - ''string''&lt;br /&gt;
: The partition identifier&lt;br /&gt;
&lt;br /&gt;
== Response Codes ==&lt;br /&gt;
; Success&lt;br /&gt;
: ''HTTP/1.1 201 Created''&lt;br /&gt;
&lt;br /&gt;
; Failure&lt;br /&gt;
: ''HTTP/1.1 400 Bad Request'': There was an error in the request the client sent&lt;br /&gt;
: ''HTTP/1.1 401 Unauthorized'' : This server could not verify that you are authorized to access the document you requested.  Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.&lt;br /&gt;
: ''HTTP/1.1 403 Forbidden'' : You don't have permissions to access the resource&lt;br /&gt;
: ''HTTP/1.1 404 Not Found'' : The resource requested is not found.&lt;br /&gt;
: ''HTTP/1.1 409 Conflict'' : Only one disk check for Dedicated Server per IP is allowed&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''Successfully create a disk check'''&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeSpace&amp;quot; : 10, &amp;quot;partition&amp;quot; : &amp;quot;/&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 201 Created&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;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;disk&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeSpace&amp;quot;: 10,&lt;br /&gt;
         &amp;quot;partition&amp;quot;: &amp;quot;/&amp;quot; &lt;br /&gt;
      }, &lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: null, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: null, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: false, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: true, &lt;br /&gt;
         &amp;quot;id&amp;quot;: 17&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/17&amp;quot;, &lt;br /&gt;
         &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Bad request - missing options in the request body'''&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: false, &amp;quot;enabledAlert&amp;quot;: false}}}&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;quot;badRequest&amp;quot;: {&amp;quot;message&amp;quot;: &amp;quot;POST data error&amp;quot;, &amp;quot;code&amp;quot;: 400, &amp;quot;details&amp;quot;: {&amp;quot;monitoring.options&amp;quot;: &amp;quot;Required&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Request to create disk check for a missing dedicated server or IP address'''&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fake_server&amp;lt;/span&amp;gt;}/ipAddresses/{ip_address}/monitoring/disk&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fake_ip&amp;lt;/span&amp;gt;}/monitoring/disk&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeSpace&amp;quot; : 10, &amp;quot;partition&amp;quot; : &amp;quot;/&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Add an existing disk check'''&lt;br /&gt;
:'''POST''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeSpace&amp;quot; : 10, &amp;quot;partition&amp;quot; : &amp;quot;/&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 409 Conflict&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
='''GET''' /accounts/'''account'''/dedicatedServers/'''dedicated_server'''/ipAddresses/'''ip_address'''/monitoring/disk/'''id'''=&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;This API call is deprecated!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Get disk check details&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; account - ''string''&lt;br /&gt;
; dedicated_server - ''string''&lt;br /&gt;
; ip_address - ''string''&lt;br /&gt;
; id - ''string''&lt;br /&gt;
: Id of the disk check.&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: disk, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeSpace&amp;quot;: 10, &lt;br /&gt;
         &amp;quot;partition&amp;quot;: &amp;quot;/&amp;quot; &lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: {status}, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: {last_check}, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: {enabled_alert}, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
         &amp;quot;id&amp;quot;: 17&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/{id}&amp;quot;, &lt;br /&gt;
         &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
; type - ''string''&lt;br /&gt;
: disk&lt;br /&gt;
&lt;br /&gt;
; links - ''list''&lt;br /&gt;
: [[Hypermedia]] for this resource.&lt;br /&gt;
&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.id - ''string''&lt;br /&gt;
: Unique identifier for this check.&lt;br /&gt;
&lt;br /&gt;
; check.status&lt;br /&gt;
: Status of the disk check - possible values: null, OK, Warning, Critical, Unknown&lt;br /&gt;
&lt;br /&gt;
; check.lastCheck&lt;br /&gt;
: Time of last disk check&lt;br /&gt;
&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Is the check enabled&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Are alerts enabled&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeSpace - ''int''&lt;br /&gt;
: The disk space usage limit for check alerts&lt;br /&gt;
; options.partition - ''string''&lt;br /&gt;
: The partition used for check&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Response Codes ==&lt;br /&gt;
; Success&lt;br /&gt;
: ''HTTP/1.1 200 OK''&lt;br /&gt;
&lt;br /&gt;
; Failure&lt;br /&gt;
: ''HTTP/1.1 401 Unauthorized'' : This server could not verify that you are authorized to access the document you requested.  Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.&lt;br /&gt;
: ''HTTP/1.1 403 Forbidden'' : You don't have permissions to access the resource&lt;br /&gt;
: ''HTTP/1.1 404 Not Found'' : The resource requested is not found.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''View disk check details'''&lt;br /&gt;
:'''GET''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/17&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;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;disk&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeSpace&amp;quot;: 10, &lt;br /&gt;
         &amp;quot;partition&amp;quot;: &amp;quot;/&amp;quot; &lt;br /&gt;
      }, &lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: null, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: null, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: false, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: true, &lt;br /&gt;
         &amp;quot;id&amp;quot;: 17&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/17&amp;quot;, &lt;br /&gt;
         &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Access a non-existing disk check'''&lt;br /&gt;
:'''GET''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/0000&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Request a check for missing server or IP addresss'''&lt;br /&gt;
:'''GET''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fake_server&amp;lt;/span&amp;gt;}/ipAddresses/{ip_address}/monitoring/disk/17&lt;br /&gt;
:'''GET''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;fake_ip&amp;lt;/span&amp;gt;}/monitoring/disk/17&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
='''PUT''' /accounts/'''account'''/dedicatedServers/'''dedicated_server'''/ipAddresses/'''ip_address'''/monitoring/disk/'''id'''=&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;This API call is deprecated!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Update disk check&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; account - ''string''&lt;br /&gt;
; dedicated_server - ''string''&lt;br /&gt;
; ip_address - ''string''&lt;br /&gt;
; id - ''string''&lt;br /&gt;
: Id of the disk check.&lt;br /&gt;
&lt;br /&gt;
== Request==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
            &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
            &amp;quot;enabledAlert&amp;quot;: {enabled_alert}&lt;br /&gt;
         }, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeSpace&amp;quot; : 15, &lt;br /&gt;
         &amp;quot;partition&amp;quot; : &amp;quot;/&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Enable the check&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Enable alerts&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeSpace - ''int''&lt;br /&gt;
: The disk space usage limit for check alerts&lt;br /&gt;
; options.partition - ''string''&lt;br /&gt;
: The disk partition identifier&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Response==&lt;br /&gt;
=== JSON ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;{type}&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeSpace&amp;quot;: 15, &lt;br /&gt;
         &amp;quot;partition&amp;quot;: &amp;quot;/&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: {status}, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: {last_check}, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: {enabledAlert}, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: {enabled}, &lt;br /&gt;
         &amp;quot;id&amp;quot;: {id}&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/{id}&amp;quot;, &lt;br /&gt;
         &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====monitoring====&lt;br /&gt;
; type - ''string''&lt;br /&gt;
: disk&lt;br /&gt;
&lt;br /&gt;
; links - ''list''&lt;br /&gt;
: [[Hypermedia]] for this resource.&lt;br /&gt;
&lt;br /&gt;
=====check=====&lt;br /&gt;
; check.id - ''string''&lt;br /&gt;
: Unique identifier for this check.&lt;br /&gt;
&lt;br /&gt;
; check.status&lt;br /&gt;
: Status of the disk check - possible values: null, OK, Warning, Critical, Unknown&lt;br /&gt;
&lt;br /&gt;
; check.lastCheck&lt;br /&gt;
: Time of last disk check&lt;br /&gt;
&lt;br /&gt;
; check.enabled - ''boolean''&lt;br /&gt;
: Is the check enabled&lt;br /&gt;
&lt;br /&gt;
; check.enabledAlert - ''boolean''&lt;br /&gt;
: Are alerts enabled&lt;br /&gt;
&lt;br /&gt;
=====options=====&lt;br /&gt;
; options.freeSpace - ''int''&lt;br /&gt;
: The disk space usage limit for check alerts&lt;br /&gt;
; options.partition - ''string''&lt;br /&gt;
: The disk partition identifier&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Response Codes ==&lt;br /&gt;
; Success&lt;br /&gt;
: ''HTTP/1.1 200 Ok''&lt;br /&gt;
&lt;br /&gt;
; Failure&lt;br /&gt;
: ''HTTP/1.1 400 Bad Request''&lt;br /&gt;
: ''HTTP/1.1 401 Unauthorized'' : This server could not verify that you are authorized to access the document you requested.  Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.&lt;br /&gt;
: ''HTTP/1.1 403 Forbidden''&lt;br /&gt;
: ''HTTP/1.1 404 Not Found'' : The resource requested is not found.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''Update existing disk check'''&lt;br /&gt;
:'''PUT''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/17&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeSpace&amp;quot;: 15, &amp;quot;partition&amp;quot;: &amp;quot;/&amp;quot;}}}&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;
   &amp;quot;monitoring&amp;quot;: {&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;disk&amp;quot;, &lt;br /&gt;
      &amp;quot;options&amp;quot;: {&lt;br /&gt;
         &amp;quot;freeSpace&amp;quot;: 15, &lt;br /&gt;
         &amp;quot;partition&amp;quot;: &amp;quot;/&amp;quot; &lt;br /&gt;
      }, &lt;br /&gt;
      &amp;quot;check&amp;quot;: {&lt;br /&gt;
         &amp;quot;status&amp;quot;: null, &lt;br /&gt;
         &amp;quot;lastCheck&amp;quot;: 1334148166, &lt;br /&gt;
         &amp;quot;enabledAlert&amp;quot;: false, &lt;br /&gt;
         &amp;quot;enabled&amp;quot;: true, &lt;br /&gt;
         &amp;quot;id&amp;quot;: 17&lt;br /&gt;
      }&lt;br /&gt;
   }, &lt;br /&gt;
   &amp;quot;links&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
         &amp;quot;href&amp;quot;: &amp;quot;http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/17&amp;quot;, &lt;br /&gt;
         &amp;quot;rel&amp;quot;: &amp;quot;self&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Bad request - update a disk check with wrong request data'''&lt;br /&gt;
:'''PUT''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/17&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;options&amp;quot;: {&amp;quot;freeSpace&amp;quot; : 15, &amp;quot;partition&amp;quot; : &amp;quot;/&amp;quot;}}}&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;quot;badRequest&amp;quot;: {&amp;quot;message&amp;quot;: &amp;quot;POST data error&amp;quot;, &amp;quot;code&amp;quot;: 400, &amp;quot;details&amp;quot;: {&amp;quot;monitoring.check&amp;quot;: &amp;quot;Required&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Try to update a missing disk check resource'''&lt;br /&gt;
:'''PUT''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/000&lt;br /&gt;
&lt;br /&gt;
''Request:''&lt;br /&gt;
 {&amp;quot;monitoring&amp;quot;: {&amp;quot;check&amp;quot;: {&amp;quot;enabled&amp;quot;: true, &amp;quot;enabledAlert&amp;quot;: false}, &amp;quot;options&amp;quot;: {&amp;quot;freeSpace&amp;quot; : 15, &amp;quot;partition&amp;quot; : &amp;quot;/&amp;quot;}}}&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
='''DELETE''' /accounts/'''account'''/dedicatedServers/'''dedicated_server'''/ipAddresses/'''ip_address'''/monitoring/disk/'''id'''=&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;This API call is deprecated!&amp;lt;/span&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Delete disk check&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
; account - ''string''&lt;br /&gt;
; dedicated_server - ''string''&lt;br /&gt;
; ip_address - ''string''&lt;br /&gt;
; id - ''string''&lt;br /&gt;
: Id of the disk check.&lt;br /&gt;
&lt;br /&gt;
== Response Codes ==&lt;br /&gt;
; Success deleting the resource&lt;br /&gt;
: ''HTTP/1.1 204 No Content''&lt;br /&gt;
&lt;br /&gt;
; Failure&lt;br /&gt;
: ''HTTP/1.1 401 Unauthorized'' : This server could not verify that you are authorized to access the document you requested.  Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.&lt;br /&gt;
: ''HTTP/1.1 403 Forbidden''&lt;br /&gt;
: ''HTTP/1.1 404 Not Found'' : The resource requested is not found.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
'''Successfully delete a disk check'''&lt;br /&gt;
:'''DELETE''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/17&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 204 No Content&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Request to delete a missing disk check resource'''&lt;br /&gt;
:'''DELETE''' http(s)://{api_server}/accounts/{account_number}/dedicatedServers/{dedicated_server}/ipAddresses/{ip_address}/monitoring/disk/000&lt;br /&gt;
&lt;br /&gt;
''Response Code:''&lt;br /&gt;
&amp;lt;pre&amp;gt;HTTP/1.1 404 Not Found&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Hostway API]]&lt;br /&gt;
[[Category:Dedicated Server Monitoring API]]&lt;/div&gt;</summary>
		<author><name>Mitko.georgiev</name></author>	</entry>

	</feed>