Skip to main content
chitta201918
Rising Star
July 30, 2026
Question

Change Asset IP Address

  • July 30, 2026
  • 11 replies
  • 257 views

Is there any way to change IP address of already onboarded assets to Beyondtrust password safe? everytime we have to delete the older asset and then re-onboard the asset.

11 replies

Pulitros144
Veteran
July 30, 2026

@chitta201918 you can do that using API

PS
chitta201918
Rising Star
July 30, 2026

@chitta201918 you can do that using API

oh really?, have you tried this? any knowledge article available?

Chittaranjan Kumar
Pulitros144
Veteran
July 30, 2026

@chitta201918 you can do that using API

oh really?, have you tried this? any knowledge article available?

Yep!

I do it all the time via API. I don’t believe there is a specific KB for that exact scenario, but there is one explaining how to use the API with some examples (KB0017018).

In the API documentation, you should look at the Update asset section:

curl --request PUT \
     --url https://example.com/beyondtrust/api/public/v3/assets/10101 \
     --header 'accept: application/json' \
     --header 'content-type: application/*+json' \
     --data '
{
  "IPAddress": "10.10.10.10"
}

 

PS
chitta201918
Rising Star
August 3, 2026

I tried but didn’t work.
 

body:

{"IPAddress": "New IP Address",
                                 "AssetName":"BI-ZBS-PROD",
                                 'DnsName': 'BI-ZBS-PROD',
                                 'DomainName': 'BRAHMA',
                                 'OperatingSystem': 'Windows Server 2016 Datacenter',
                                 'Description': '',
                                 'WorkgroupID': 4,
                                 'AssetType': 'Server'
                                 }

 

 

Chittaranjan Kumar
Pulitros144
Veteran
August 3, 2026

@chitta201918 I you send you my ps1 script, you just need change some and the csv used has already a exemple you can use, but you just need to make sure the “AssetName” is the same on Assets and the script will do the rest.

Here is what you need to change on the script to work:

# 1. Your BeyondTrust API Base URL
$baseUrl = "https://your-beyondtrust-instance.com/BeyondTrust/api/public/v3/";

# 2. API Key and RunAs User
$apiKey    = "YOUR_API_KEY_HERE";
$runAsUser = "YOUR_RUNAS_USER_HERE";

# 3. Path to your CSV file
$csvFilePath = ".\assets_teste.csv";

# 4. Target Workgroup Name
$workgroupNameUnico = "Default Workgroup";

# 5. File extension
Change the IP-Update.txt to ps1

PS
August 6, 2026

We just launch a quick discovery scan against the asset(s).  As long as network DNS is correct, it corrects the IP address in the asset automatically

chitta201918
Rising Star
August 6, 2026

We just launch a quick discovery scan against the asset(s).  As long as network DNS is correct, it corrects the IP address in the asset automatically

I know that, but here deployment is manual. We are adding assets, managed systems and managed accounts manually only. We are not running discovery scan against any assets.

Chittaranjan Kumar
Pulitros144
Veteran
August 7, 2026

We just launch a quick discovery scan against the asset(s).  As long as network DNS is correct, it corrects the IP address in the asset automatically

I know that, but here deployment is manual. We are adding assets, managed systems and managed accounts manually only. We are not running discovery scan against any assets.

Did my script help? 

PS
Apprentice
August 10, 2026

@chitta201918 I you send you my ps1 script, you just need change some and the csv used has already a exemple you can use, but you just need to make sure the “AssetName” is the same on Assets and the script will do the rest.

Here is what you need to change on the script to work:

# 1. Your BeyondTrust API Base URL
$baseUrl = "https://your-beyondtrust-instance.com/BeyondTrust/api/public/v3/";

# 2. API Key and RunAs User
$apiKey    = "YOUR_API_KEY_HERE";
$runAsUser = "YOUR_RUNAS_USER_HERE";

# 3. Path to your CSV file
$csvFilePath = ".\assets_teste.csv";

# 4. Target Workgroup Name
$workgroupNameUnico = "Default Workgroup";

# 5. File extension
Change the IP-Update.txt to ps1

Could you kindly send me ps1 script too?

Thank you

chitta201918
Rising Star
August 24, 2026

@Pulitros144 Your script is just for assets right? I need it for both assets and managed system so that when user take RDP of the servers they should not redirect to old IP!!!

Chittaranjan Kumar