Device Management->Devices

Hi guys,

I stuck a little bit with Name in Device object

Example If you set Hostname via GUI it will change Name & Hostname in Device Management->Devices self device object

Also in GUI you can go into Device Management->Devices choose self device object and then you have button “Change Device Name” do you know how you can call it via REST ?

However if change Hostname via REST using “mgmt/tm/sys/global-settings” it will change only Hostname part in Device Management->Devices self object

I also tried to change Name using “mgmt/tm/cm/device” but is seems to ignoring this - my REST query was like bellow - “bigip1 is default name” https://x.x.x.x/mgmt/tm/cm/device/~Common~bigip1 { “name” : “lb01.domain.com” }

Does anyone know how to change Name or advise me what I am doing wrong ?

Regards, Marcin

Hi Marcin,

You could you do this by running mv in tmsh, so with REST you do the same thing, e.g.:

curl -k -u "admin:admin" -X POST -H "Content-Type: application/json" -d '{"command":"mv", "name":"device.old.name", "target":"device.new.name" }' http://192.168.1.245/mgmt/tm/cm/device

Regards.