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.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```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
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
boolean
|
|
|
|
|
2023-03-28 22:10:24 +02:00
|
|
|
True if successful, and false otherwise.
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
2023-03-28 22:10:24 +02:00
|
|
|
RAM cost: 0 GB
|
2022-10-21 17:16:00 +02:00
|
|
|
|