I have the following understanding of the softlayer infrastructure.
Via a softlayer API how can I fetch data to establish a relationship between above entities ( Account , Datacenter, POD , Network Zone, Vlans , Subnets )
The resources have a different relationship, the datacenter cannot show the resources information that is hosted in it, they can only show information about it, the resources can show the information of where it is hosted. the relationship that follows is the following:
Account -> vlan -> primaryRouter -> datacenter
Account -> vlan -> subnet -> podName
to obtain this information you can follow the following request:
https://api.softlayer.com/rest/v3.1/SoftLayer_Account/getNetworkVlans?objectMask=mask[primaryRouter[datacenterName],extensionRouter[datacenterName],secondaryRouter[datacenterName],primarySubnet[podName,reverseDomain]]
more reference:
https://sldn.softlayer.com/reference/services/SoftLayer_Account/getNetworkVlans/
https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Vlan/