late-chef-72896
05/23/2024, 5:54 PMlimited-rainbow-51650
05/24/2024, 8:02 AMNetworks to your Server resource? After creation, I would expect that in each of the networks in that array, the Ip property to be filled in with the actual (private) IP.
Similar for public IPs is PublicNets.late-chef-72896
05/24/2024, 10:44 AMNetworks but when I want to add all IPs node.Ipv4Address from a node creation in a for-loop to a list, the list is empty. For nodes where I use a public ip, I can see the IPs being added to the list using the same mechanismlimited-rainbow-51650
05/24/2024, 11:34 AMnode.Networks[<index>].Ip?late-chef-72896
05/24/2024, 11:35 AMlate-chef-72896
05/25/2024, 5:35 AMapplyT. This works
ip := node.Networks.ApplyT(func(networks []hcloud.ServerNetworkType) string {
return *networks[0].Ip
}).(pulumi.StringOutput)