bitburner-src/markdown/bitburner.ns.getpurchasedservers.md

31 lines
774 B
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [getPurchasedServers](./bitburner.ns.getpurchasedservers.md)
## NS.getPurchasedServers() method
Returns an array with either the hostnames or IPs of all of the servers you have purchased.
<b>Signature:</b>
```typescript
2021-10-30 21:46:34 +02:00
getPurchasedServers(hostnameMode?: boolean): string[];
2021-10-30 18:34:14 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| hostnameMode | boolean | \] Optional. Defaults to true. Returns hostnames if true, and IPs if false. |
<b>Returns:</b>
2021-10-30 21:46:34 +02:00
string\[\]
2021-10-30 18:34:14 +02:00
Returns an array with either the hostnames or IPs of all of the servers you have purchased.
## Remarks
2.25 GB