TaskService


Click here for a complete list of operations.

UpdateTasksByFilter

Update tasks returned by filter
For TaskFilter details see GetTasksByFilter method
For TaskEditableData details see CreateTask method
Soap client faults - see GetTasksByFilter and UpdateTask

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /api/soap/v1/task.asmx HTTP/1.1
Host: www.host-tracker.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.host-tracker.com/Services/UpdateTasksByFilter"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <AuthHeader xmlns="http://www.host-tracker.com/Services">
      <login>string</login>
      <password>string</password>
      <ticket>string</ticket>
    </AuthHeader>
  </soap:Header>
  <soap:Body>
    <UpdateTasksByFilter xmlns="http://www.host-tracker.com/Services">
      <filter>
        <id>guid</id>
        <ids>
          <guid>guid</guid>
          <guid>guid</guid>
        </ids>
        <excludeIds>boolean</excludeIds>
        <taskType>string</taskType>
        <taskTypes>
          <string>string</string>
          <string>string</string>
        </taskTypes>
        <excludeTaskTypes>boolean</excludeTaskTypes>
        <status>string</status>
        <url>string</url>
        <urls>
          <string>string</string>
          <string>string</string>
        </urls>
        <urlSearchLike>boolean</urlSearchLike>
        <excludeUrls>boolean</excludeUrls>
        <name>string</name>
        <names>
          <string>string</string>
          <string>string</string>
        </names>
        <nameSearchLike>boolean</nameSearchLike>
        <excludeNames>boolean</excludeNames>
        <interval>int</interval>
        <intervals>
          <int>int</int>
          <int>int</int>
        </intervals>
        <excludeIntervals>boolean</excludeIntervals>
        <openStat>boolean</openStat>
        <lastState>boolean</lastState>
        <tags>
          <string>string</string>
          <string>string</string>
        </tags>
        <overlimited>boolean</overlimited>
        <active>boolean</active>
      </filter>
      <taskData>
        <id>guid</id>
        <enabled>boolean</enabled>
        <interval>int</interval>
        <name>string</name>
        <fullLog>boolean</fullLog>
        <openStat>boolean</openStat>
        <tags>
          <string>string</string>
          <string>string</string>
        </tags>
        <agentPools>
          <string>string</string>
          <string>string</string>
        </agentPools>
        <subscriptions>
          <Subscription>
            <alertTypes xsi:nil="true" />
            <reportTypes xsi:nil="true" />
            <taskIds xsi:nil="true" />
            <contactIds xsi:nil="true" />
          </Subscription>
          <Subscription>
            <alertTypes xsi:nil="true" />
            <reportTypes xsi:nil="true" />
            <taskIds xsi:nil="true" />
            <contactIds xsi:nil="true" />
          </Subscription>
        </subscriptions>
      </taskData>
    </UpdateTasksByFilter>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <UpdateTasksByFilterResponse xmlns="http://www.host-tracker.com/Services">
      <UpdateTasksByFilterResult>
        <Task>
          <creationTime>dateTime</creationTime>
          <taskType>string</taskType>
          <enabled>boolean</enabled>
          <interval>int</interval>
          <upFromTime>dateTime</upFromTime>
          <lastState>boolean</lastState>
          <lastStateChangeTime>dateTime</lastStateChangeTime>
          <openStatEnabled>boolean</openStatEnabled>
          <fullLogEnabled>boolean</fullLogEnabled>
          <disablenceReason>string</disablenceReason>
          <disablenceTime>dateTime</disablenceTime>
          <holdResults>boolean</holdResults>
          <agentStat>boolean</agentStat>
          <billingOverlimits>
            <string>string</string>
            <string>string</string>
          </billingOverlimits>
          <tags>
            <string>string</string>
            <string>string</string>
          </tags>
          <subscriptions>
            <Subscription xsi:nil="true" />
            <Subscription xsi:nil="true" />
          </subscriptions>
          <stats>
            <daily>double</daily>
            <monthly>double</monthly>
            <yearly>double</yearly>
            <total>double</total>
          </stats>
          <agentPools>
            <string>string</string>
            <string>string</string>
          </agentPools>
          <deleted>boolean</deleted>
          <dnsbl>
            <lastChecked>dateTime</lastChecked>
            <interval>int</interval>
            <lastState>boolean</lastState>
            <lastStateChangeTime>dateTime</lastStateChangeTime>
          </dnsbl>
        </Task>
        <Task>
          <creationTime>dateTime</creationTime>
          <taskType>string</taskType>
          <enabled>boolean</enabled>
          <interval>int</interval>
          <upFromTime>dateTime</upFromTime>
          <lastState>boolean</lastState>
          <lastStateChangeTime>dateTime</lastStateChangeTime>
          <openStatEnabled>boolean</openStatEnabled>
          <fullLogEnabled>boolean</fullLogEnabled>
          <disablenceReason>string</disablenceReason>
          <disablenceTime>dateTime</disablenceTime>
          <holdResults>boolean</holdResults>
          <agentStat>boolean</agentStat>
          <billingOverlimits>
            <string>string</string>
            <string>string</string>
          </billingOverlimits>
          <tags>
            <string>string</string>
            <string>string</string>
          </tags>
          <subscriptions>
            <Subscription xsi:nil="true" />
            <Subscription xsi:nil="true" />
          </subscriptions>
          <stats>
            <daily>double</daily>
            <monthly>double</monthly>
            <yearly>double</yearly>
            <total>double</total>
          </stats>
          <agentPools>
            <string>string</string>
            <string>string</string>
          </agentPools>
          <deleted>boolean</deleted>
          <dnsbl>
            <lastChecked>dateTime</lastChecked>
            <interval>int</interval>
            <lastState>boolean</lastState>
            <lastStateChangeTime>dateTime</lastStateChangeTime>
          </dnsbl>
        </Task>
      </UpdateTasksByFilterResult>
    </UpdateTasksByFilterResponse>
  </soap:Body>
</soap:Envelope>