Skip to main content
Question

Change Asset IP Address

  • July 30, 2026
  • 9 replies
  • 116 views

chitta201918
Forum|alt.badge.img

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.

9 replies

Pulitros144
Forum|alt.badge.img+5
  • Veteran
  • July 30, 2026

@chitta201918 you can do that using API


chitta201918
Forum|alt.badge.img
  • Author
  • Apprentice
  • July 30, 2026

@chitta201918 you can do that using API

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


Pulitros144
Forum|alt.badge.img+5
  • 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"
}

 


chitta201918
Forum|alt.badge.img
  • Author
  • Apprentice
  • 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'
                                 }

 

 


Pulitros144
Forum|alt.badge.img+5
  • 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


Forum|alt.badge.img
  • 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
Forum|alt.badge.img
  • Author
  • Apprentice
  • 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.


Pulitros144
Forum|alt.badge.img+5
  • 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? 


  • 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