Files
bitburner-src/markdown/bitburner.server.md
gmcew 7c0286222c API: Move and rename purchased server functions to cloud API (#2367)
* Convert purchased server functions to cloud API

- Create `ns.cloud`
- Change `bitnode multipliers` and `server constants` wording for consistency
- change `server`, `ram` and `getting started` docs for consistency
- Added changes to 3.0.0 API Break and `setRemovedFunctions` in NetscriptFunctions.js

Tested by
- running tutorial `purchase-server-8gb.js`, and a more typical player one
- buying manually using vendor (Alpha Ent in Sector 12)
- deleting them all using script, and checked all deleted functions gave correct error
- Imported completed save to ensure auto-transfer of function work

* Revision in line with comments

- changed more `purchased` to `cloud` references
- Added BN mults auto-conversion

* Update getting_started.md

 - Corrected function names for new `cloud API`

* Don't show `cloud API` warning

v3.0.0 API break auto-replaces `cloud` functions, not warning suggested.

* API Break correction

- `cloud` affected API break replacement changed to be more descriptive and functional

* Fix typo and add empty lines

* Update many things (check commit's description)

- Comments
- Terminal message
- UI Text
- TSDoc
- md docs
- Improve error messages in src\NetscriptFunctions\Cloud.ts
2025-11-07 12:10:33 -08:00

496 lines
4.7 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Server](./bitburner.server.md)
## Server interface
A server. Not all servers have all of these properties - optional properties are missing on certain servers.
**Signature:**
```typescript
export interface Server
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[backdoorInstalled?](./bitburner.server.backdoorinstalled.md)
</td><td>
</td><td>
boolean
</td><td>
_(Optional)_ Flag indicating whether this server has a backdoor installed by a player
</td></tr>
<tr><td>
[baseDifficulty?](./bitburner.server.basedifficulty.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ Server's initial server security level at creation.
</td></tr>
<tr><td>
[cpuCores](./bitburner.server.cpucores.md)
</td><td>
</td><td>
number
</td><td>
How many CPU cores this server has. Affects magnitude of grow and weaken ran from this server.
</td></tr>
<tr><td>
[ftpPortOpen](./bitburner.server.ftpportopen.md)
</td><td>
</td><td>
boolean
</td><td>
Whether or not the FTP port is open
</td></tr>
<tr><td>
[hackDifficulty?](./bitburner.server.hackdifficulty.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ Server Security Level
</td></tr>
<tr><td>
[hasAdminRights](./bitburner.server.hasadminrights.md)
</td><td>
</td><td>
boolean
</td><td>
Flag indicating whether player has admin/root access to this server
</td></tr>
<tr><td>
[hostname](./bitburner.server.hostname.md)
</td><td>
</td><td>
string
</td><td>
Hostname. Must be unique
</td></tr>
<tr><td>
[httpPortOpen](./bitburner.server.httpportopen.md)
</td><td>
</td><td>
boolean
</td><td>
Whether or not the HTTP Port is open
</td></tr>
<tr><td>
[ip](./bitburner.server.ip.md)
</td><td>
</td><td>
string
</td><td>
IP Address. Must be unique
</td></tr>
<tr><td>
[isConnectedTo](./bitburner.server.isconnectedto.md)
</td><td>
</td><td>
boolean
</td><td>
Flag indicating whether player is currently connected to this server
</td></tr>
<tr><td>
[maxRam](./bitburner.server.maxram.md)
</td><td>
</td><td>
number
</td><td>
RAM (GB) available on this server
</td></tr>
<tr><td>
[minDifficulty?](./bitburner.server.mindifficulty.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ Minimum server security level that this server can be weakened to
</td></tr>
<tr><td>
[moneyAvailable?](./bitburner.server.moneyavailable.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ How much money currently resides on the server and can be hacked
</td></tr>
<tr><td>
[moneyMax?](./bitburner.server.moneymax.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ Maximum amount of money that this server can hold
</td></tr>
<tr><td>
[numOpenPortsRequired?](./bitburner.server.numopenportsrequired.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ Number of open ports required in order to gain admin/root access
</td></tr>
<tr><td>
[openPortCount?](./bitburner.server.openportcount.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ How many ports are currently opened on the server
</td></tr>
<tr><td>
[organizationName](./bitburner.server.organizationname.md)
</td><td>
</td><td>
string
</td><td>
Name of company/faction/etc. that this server belongs to, not applicable to all Servers
</td></tr>
<tr><td>
[purchasedByPlayer](./bitburner.server.purchasedbyplayer.md)
</td><td>
</td><td>
boolean
</td><td>
Flag indicating whether this is a server owned by the player (e.g., home, cloud servers, hacknet servers)
</td></tr>
<tr><td>
[ramUsed](./bitburner.server.ramused.md)
</td><td>
</td><td>
number
</td><td>
RAM (GB) used. i.e. unavailable RAM
</td></tr>
<tr><td>
[requiredHackingSkill?](./bitburner.server.requiredhackingskill.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ Hacking level required to hack this server
</td></tr>
<tr><td>
[serverGrowth?](./bitburner.server.servergrowth.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ Growth effectiveness statistic. Higher values produce more growth with ns.grow()
</td></tr>
<tr><td>
[smtpPortOpen](./bitburner.server.smtpportopen.md)
</td><td>
</td><td>
boolean
</td><td>
Whether or not the SMTP Port is open
</td></tr>
<tr><td>
[sqlPortOpen](./bitburner.server.sqlportopen.md)
</td><td>
</td><td>
boolean
</td><td>
Whether or not the SQL Port is open
</td></tr>
<tr><td>
[sshPortOpen](./bitburner.server.sshportopen.md)
</td><td>
</td><td>
boolean
</td><td>
Whether or not the SSH Port is open
</td></tr>
</tbody></table>