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) > [renamePurchasedServer](./bitburner.ns.renamepurchasedserver.md)
|
|
|
|
|
|
|
|
## NS.renamePurchasedServer() method
|
|
|
|
|
|
|
|
Rename a purchased server.
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
renamePurchasedServer(hostname: string, newName: string): boolean;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2022-11-20 18:07:22 +01:00
|
|
|
| hostname | string | Current server hostname. |
|
|
|
|
| newName | string | New server hostname. |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
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: 2.00 GB
|
|
|
|
|