Action: NodeExists

Purpose: Determines whether or not a specified NodeOID exists in the M/DB:X database. This Action returns true or false. If true, it also returns the node's NodeType property.

Action-specific name/value pairs:

Parameter Name Description
NodeOID The Node that is being checked to determine if it exists.

Alternatively, the parameters above can be incorporated into a single JSON string and specified using the parameter name JSON, eg:

{NodeOID:"1-4"}

Example Request

Action=NodeExists
&MDBAccessKeyId=[your access key id]
&NodeOID=1-4
&Signature=[computed signature]
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2009-06-14T13%3A19%3A41
&Version=2009-04-15
&db=mdbx

or:

Action=NodeExists
&JSON=%7BNodeOID%3A%221-4%22%7D
&MDBAccessKeyId=[your access key id]
&OutputFormat=JSON
&Signature=[computed signature]
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2009-06-14T13%3A19%3A41
&Version=2009-04-15
&db=mdbx

Example Response

XML

<?xml version='1.0'?>
<NodeExistsResponse xmlns="http://mdbx.mgateway.com/doc/2009-06-05/">
   <NodeExistsResult>
      <NodeExists>
         true
      </NodeExists>
      <NodeType>
         1
      </NodeType>
   </NodeExistsResult>
</NodeExistsResponse>
<?xml version='1.0'?>
<NodeExistsResponse xmlns="http://mdbx.mgateway.com/doc/2009-06-05/">
   <NodeExistsResult>
      <NodeExists>
         false
      </NodeExists>
   </NodeExistsResult>
</NodeExistsResponse>

JSON (ie if OutputFormat=JSON specified in the Request)

{ok:true}

or

{ok:false}