chiradeep / go-nitro

A Golang client to the Citrix ADC API
Apache License 2.0
18 stars 21 forks source link

How do i use go-nitro unbind Server from ServiceGroup #21

Closed sak0 closed 6 years ago

sak0 commented 6 years ago

I can bind the server to servicegroup by this way: ` client, _ := netscaler.NewNitroClientFromEnv()

binding := basic.Servicegroupservicegroupmemberbinding{}

_, err := client.AddResource(netscaler.Servicegroup_servicegroupmember_binding.Type(), groupName, &binding)`

But i can't find the right way for unbind server from servicegroup, could you please help me?

sl-eddycharly commented 6 years ago

What i did was using DeleteResourceWithArgsMap passing the servicegroupname, servername and port.

sak0 commented 6 years ago

@sl-eddycharly It works, thanks

chiradeep commented 6 years ago

Thanks @sl-eddycharly