12-17-2020 09:09 AM
I am trying to change values on a device with GraphQL in XMC, but I am probably missing something basic.
To change the nickname of a device, I try the following:
mutation {
network {
configureDiscoveredDevice(input:{deviceConfig:{ipAddress:"1.2.3.4", deviceAnnotationConfig:{nickName:"TEST-SWITCH"}}}){
status
message
}
}
}
This query return the status "SUCCESS", but when I go to the device, the nickname is not changed.
I would appreciated if anyone can point me in the right direction.
Solved! Go to Solution.
12-17-2020 10:04 AM
Hi,
I tried from my side and I have the same resukt…
You can open a GTAC case…
Mig
10-03-2022 10:37 AM
I was trying to look at this. Off the bat, it doesn't seem possible to provide the ID of the object ( device ) that you want to change. You might think that you are doing this with the IP address but that is provided inside a definition of the configuration data you want to use in changing the object. It seems to me that this just isn't implemented at all or that the documentation doesn't provide the information needed to know how to do it.
12-17-2020 10:04 AM
Hi,
I tried from my side and I have the same resukt…
You can open a GTAC case…
Mig
12-17-2020 09:36 AM
Do you mean after running the mutation?
Earlier I just refreshed. I tried a rediscover now, but it doesn't seem to make any difference.
12-17-2020 09:21 AM
Iataffe,
Did you performed a rediscover of the device?
Mig