Class ::nsmcp::ServerDescribe (public)
::nx::Class ::nsmcp::ServerDescribe
Defined in /usr/local/ns/tcl/nsmcp/01-tools.tcl
- Testcases:
- No testcase defined.
Source code: :property {outputSchema {{} object { type string object properties object { server object {type string string} naviserverVersion object {type string string} patchlevel object {type string string} tclVersion object {type string string} nxVersion object {type string string} moduleVersion object {type string string} observedAt object {type string string} } required array {0 string server 1 string naviserverVersion 2 string patchlevel 3 string tclVersion 4 string nxVersion 5 string moduleVersion 6 string observedAt} additionalProperties boolean false }}} :public method execute {context arguments} { # # Describe the selected NaviServer instance and MCP module. # # Use runtime module metadata and an observation timestamp; do not read # configuration secrets. # # @param context Authenticated request context carrying the principal, # grants and selected server. # @param arguments Rooted ns_json typed triples for the tool's JSON argument # object. # # @return A rooted JSON tool-result object, including availability or job # metadata as appropriate. # set version unknown set modules [ns_server -server [$context server] modules] if {[dict exists $modules nsmcp version]} { set version [dict get $modules nsmcp version] } return [list {} object [list server string [$context server] naviserverVersion string [ns_info version] patchlevel string [ns_info patchlevel] tclVersion string [info patchlevel] nxVersion string [package require nx] moduleVersion string $version observedAt string [clock format [clock seconds] -timezone UTC -format {%Y-%m-%dT%H:%M:%SZ}]]] }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)