Message: asset.query
Back to IndexQueries the asset from the graph.
Schema
Body
query | any value (optional) The query to execute. |
Response Type
Array of object
key | string |
value | any value |
Example: Query a Vendor
Query a Vendor
First, send the following POST Message request.
Request
POST https://<hantera-hostname>/resources/actors/asset/<ASSET ID>Authorization: Bearer <YOUR TOKEN>Content-Type: application/json
[{ "type": "query"}]curl -i -X POST \ https://<hantera-hostname>/resources/actors/asset/<ASSET ID> \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "query"}]'Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/asset/<ASSET ID>" `-Method POST `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"} `-Body '[{ "type": "query"}]'Response
HTTP/1.1 200 OK---
{ "paths": [ "resources/actors/asset/<ASSET ID>", "resources/actors/asset/vendor/<ASSET NUMBER>", "resources/actors/asset/vendor/<EXTERNAL REFERENCE>" ], "data": { "query": {} }}