use API endpoint to submit trap and use $a trapvar for resource if $A is <UNKNOWN>