1
votes

I'm having issues figuring out using the python Softlayer API to get the subnetlist "Type" if is Portable/Public. None of the values returned seem to show it.

Could anyone share how to find that ?

Let me know if I haven't supplied sufficient information.

2
What is the big picture? Are you just trying to figure out which subnets are primary vs secondary? - underscorephil
No, I actually need to know what's the network type in order to display that subnet some place else. - Attila

2 Answers

0
votes

The addressSpace property displasy if the subnet is private or public. You can see more information here: http://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Subnet But I did not found a property which displays if the subnet is portable.

Regards

0
votes

More then just the answer can be fund here: https://sldn.softlayer.com/blog/bpotter/going-further-softlayer-api-python-client-part-1

This is a good tutorial in how to use Softlayer's API with python.