background
I can get a vlan's subnet info by the flowing python script:
# Declare an Object Mask to get additional information
object_mask = 'mask[primaryRouter,subnets[id,billingItem,cidr,version,addressSpace,subnetType,networkIdentifier,totalIpAddresses,usableIpAddressCount,ipAddresses[ipAddress, isReserved, virtualGuest, hardware]]]'
# Declare an Object Filter to get information from specific vlan
filter = {'networkVlans': {'id': {'operation': vlan_id}}}
return self.sl_account.getNetworkVlans(mask=object_mask, filter=filter)[0]
And the result contains:
[... 'subnets': [{'cidr': 28,
'id': 986245,
'billingItem': {'allowCancellationFlag': 1,}
orderItemId': 223126909,
'ipAddresses': [{'ipAddress': '169.38.73.xxx', ...
'subnetType': 'STATIC_IP_ROUTED',
'totalIpAddresses': '8',
'usableIpAddressCount': '5',
'version': 4},
...]
}
...
]]
question
The result of STATIC_IP_ROUTED subnet do not contain the virtualGuest item.
Now I want to know which VSI has bind this subnet? Does any other mask can helps?
Or, How can I get the secondary ip info of a vsi?