2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [upgradePurchasedServer](./bitburner.ns.upgradepurchasedserver.md)
|
|
|
|
|
|
|
|
## NS.upgradePurchasedServer() method
|
|
|
|
|
2022-11-20 18:07:22 +01:00
|
|
|
Upgrade a purchased server's RAM.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
upgradePurchasedServer(hostname: string, ram: number): boolean;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| hostname | string | Hostname of the server to upgrade. |
|
|
|
|
| ram | number | Amount of RAM of the purchased server, in GB. Must be a power of 2 (2, 4, 8, 16, etc.). Maximum value of 1048576 (2^20). |
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
boolean
|
|
|
|
|
2022-11-20 18:07:22 +01:00
|
|
|
True if the upgrade succeeded, and false otherwise.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 0.25 GB
|
|
|
|
|