mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
31 lines
843 B
Markdown
31 lines
843 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 the hostnames or IP addresses of all of the servers you have purchased. Returns hostnames by default.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getPurchasedServers(returnOpts?: HostReturnOptions): string[];
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| returnOpts | [HostReturnOptions](./bitburner.hostreturnoptions.md) | _(Optional)_ Optional. Controls whether the function returns IPs |
|
|
|
|
**Returns:**
|
|
|
|
string\[\]
|
|
|
|
Returns an array with the hostnames or IP addresses of all of the servers you have purchased.
|
|
|
|
## Remarks
|
|
|
|
1.05 GB
|
|
|