Ask the Community
Groups
BVE API: Escaping Special Characters - Connect IT Community | Kaseya
<main> <article class="userContent"> <header><h1 data-id="bve-api-escaping-special-characters">BVE API: Escaping Special Characters</h1> </header><div> <div> <p><strong>QUESTION:</strong></p> <p>How do I include special characters when using the BVE API</p> <p>The BVE API allows you to access the provisioning database and real-time statistics over a TCP socket. You can connect to the BVE API through the PERL script located on the BVE server.</p> <p><strong>SOLUTION:</strong></p> <p>Through the CLI we can pass parameters for a variety of variables, if these variable values contain special characters, they need to be properly escaped for the command to run. For most special characters only a single backslash (\) is required before the special character.</p> <p>e.g. 'testname=Disk \"C:\" Space Free' (resolves as: Disk "C:" Space Free)</p> <p>The only exception to this is the backslash special character which needs 2 backslashes to properly escape.</p> <p>e.g. 'wmiProperty=\\\Win32_LogicalDisk:FreeSpace:DeviceID=\"C:\":' (resolves as: \Win32_LogicalDisk:FreeSpace:DeviceID="C:":)</p> <p> </p> <p> </p> </div> </div> </article> </main>