Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MongoDB.ServerDescription

Get information about the server specified by ServerID.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.ServerDescription"; MongoDBRef; ServerID )   More

Parameters

Parameter Description Example
MongoDBRef The reference number for the mongo connection. $MongoDB
ServerID The server ID. 1

Result

Returns JSON object or error.

Description

Get information about the server specified by ServerID.

Examples

Show current server:

Show Custom Dialog [ "Current server:" ; MBS("MongoDB.ServerDescription"; $mongo; 1) ]

Example result:
{ "type" : "Unknown", "rtt" : -1, "isMaster" : { }, "id" : 1, "hostList" : [ { "Host" : "localhost", "HostAndPort" : "localhost:27017", "Port" : 27017, "Family" : 0 } ] }

See also

Blog Entries

This function checks for a license.

Created 19th June 2022, last changed 20th June 2022


MongoDB.SSLLibrary - MongoDB.ServerDescriptions