mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-28 17:07:32 +01:00
31 lines
771 B
Markdown
31 lines
771 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [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
|
|
getPurchasedServers(hostnameMode?: boolean): string[];
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| hostnameMode | boolean | Optional. Defaults to true. Returns hostnames if true, and IPs if false. |
|
|
|
|
<b>Returns:</b>
|
|
|
|
string\[\]
|
|
|
|
Returns an array with either the hostnames or IPs of all of the servers you have purchased.
|
|
|
|
## Remarks
|
|
|
|
2.25 GB
|
|
|