bitburner-src/markdown/bitburner.ns.renamepurchasedserver.md

32 lines
683 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [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, and false otherwise.
## Remarks
RAM cost: 2.00 GB