bitburner-src/doc/source/netscript/basicfunctions/getPurchasedServers.rst

12 lines
508 B
ReStructuredText

getPurchasedServers() Netscript Function
========================================
.. js:function:: getPurchasedServers([hostname=true])
:param boolean hostname:
Specifies whether hostnames or IP addresses should be returned. If it's true then hostnames will be returned, and if false
then IPs will be returned. If this argument is omitted then it is true by default
:RAM cost: 2.25 GB
Returns an array with either the hostnames or IPs of all of the servers you have purchased.