mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 23:22:29 +01:00
32 lines
660 B
Markdown
32 lines
660 B
Markdown
|
<!-- 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 |
|
||
|
| --- | --- | --- |
|
||
|
| hostname | string | current server hostname |
|
||
|
| newName | string | new server hostname |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
boolean
|
||
|
|
||
|
True if the upgrade succeeded.
|
||
|
|
||
|
## Remarks
|
||
|
|
||
|
RAM cost: 2.00 GB
|
||
|
|