<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.requestCancel.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.requestCancel</api:function-name><api:suggest>xdmp.requestcancel</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>requestcancel</api:suggest><api:function-link mode="xquery" fullname="xdmp:request-cancel">/apidoc/8.0/xdmp:request-cancel.xml</api:function-link><api:function mode="javascript" name="requestCancel" type="builtin" lib="xdmp" category="Server Monitoring" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.requestCancel"><api:summary>
  Cancel the request with the given host, server, and request IDs.
</api:summary><api:params><api:param name="hostID" type="xs:unsignedLong"><api:param-description>
    The ID of the host on which the request is running.  Typically, you
    get the ID of a host by executing code similar to:
    <blockquote xmlns="http://www.w3.org/1999/xhtml">
    <code><pre xml:space="preserve">
    xdmp:host("myhost")</pre></code></blockquote>
  </api:param-description><api:param-name>hostID</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="serverID" type="xs:unsignedLong"><api:param-description>
   The ID of the App Server in which the request is running.   Typically, you
    get the ID of an App Server by executing code similar to:
    <blockquote xmlns="http://www.w3.org/1999/xhtml">
    <code><pre xml:space="preserve">
    xdmp:server("myAppServerName")</pre>
    </code></blockquote>
  </api:param-description><api:param-name>serverID</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="requestID" type="xs:unsignedLong"><api:param-description>
    The ID of the request.  You can access the request IDs in the
    <code xmlns="http://www.w3.org/1999/xhtml">request</code> elements of the <code xmlns="http://www.w3.org/1999/xhtml">xdmp:server-status</code>
    output. You get the request ID by executing code similar to:
    <blockquote xmlns="http://www.w3.org/1999/xhtml">
    <code><pre xml:space="preserve">
    declare namespace status=
        "http://marklogic.com/xdmp/status/server"

    xdmp:server-status( xdmp:host("myhost"),
      xdmp:server("myAppServerName") )//status:request
      </pre>
      </code></blockquote>
  </api:param-description><api:param-name>requestID</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>null</api:return><api:privilege>
  <code xmlns="http://www.w3.org/1999/xhtml">http://marklogic.com/xdmp/privileges/cancel-any-request</code>
  or
  <code xmlns="http://www.w3.org/1999/xhtml">http://marklogic.com/xdmp/privileges/cancel-my-requests</code>
</api:privilege><api:usage>
  <p xmlns="http://www.w3.org/1999/xhtml">To find out the status of the request after it has been canceled,
  you can call <code>xdmp:server-status</code>, which has information
  about each request active or being canceled on the server.  Once a request
  has completed canceling, it will no longer appear in the output of
  <code>xdmp:server-status</code>.</p>
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.requestCancel(xdmp.host("myhost"),
                      xdmp.server("myAppServerName"),
                      98394839084390843)
=&gt; ()
</pre></api:example></api:function></api:function-page>