Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

ServiceRegistryQuery- Global

The ServiceRegistryQuery script include provides methods to map Shazzam service registry query results against a port probe. Child classes provide specifics on mapping.

Use this script include during the discovery scanning phase.

Parent Topic:Server API reference

ServiceRegistryQuery - ServiceRegistryQuery(Object source)

Creates an instance of the ServiceRegistryQuery class.

NameTypeDescription
sourceObjectA GlideRecord or sys_id of the registry service.

ServiceRegistryQuery - findForPortProbe(PortProbe portProbe)

Parses an array of IDs for the given port probe.

NameTypeDescription
portProbePortProbeThe port probe
TypeDescription
void 

ServiceRegistryQuery - get(Object source)

Retrieves a registry service by id, regardless of child class.

NameTypeDescription
sourceObjectThe registry service GlideRecord or sys_id.
TypeDescription
StringThe registry service

ServiceRegistryQuery - getShazzamQuerierClassname()

Returns the Shazzam! querier class name.

NameTypeDescription
None  
TypeDescription
StringThe class name

ServiceRegistryQuery - toPortProbeMap()

Retrieves the port probe XML and creates a map.

NameTypeDescription
None  
TypeDescription
StringThe port probe map

ServiceRegistryQuery - toPortProbeXml()

Creates XML output for Shazzam! port probes.

NameTypeDescription
None  
TypeDescription
StringThe XML output for the probe.