cancel
Showing results for 
Search instead for 
Did you mean: 

GraphQL mutations

GraphQL mutations

lataffe
New Contributor

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. 

1 ACCEPTED SOLUTION

Miguel-Angel_RO
Valued Contributor II

Hi,

I tried from my side and I have the same resukt…

You can open a GTAC case…

Mig

View solution in original post

4 REPLIES 4

Ed_McGuigan1
New Contributor III

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.

Miguel-Angel_RO
Valued Contributor II

Hi,

I tried from my side and I have the same resukt…

You can open a GTAC case…

Mig

lataffe
New Contributor

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. 

Miguel-Angel_RO
Valued Contributor II

Iataffe,

Did you performed a rediscover of the device?

Mig

GTM-P2G8KFN