0
背景
私が流れるのPythonスクリプトでのVLANのサブネット情報を取得することができ:Softlayer API:静的サブネットを取得する方法は、どのVSIに属していますか?
# 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]
、結果が含まれています
[... '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},
...]
}
...
]]
質問
行うSTATIC_IP_ROUTEDサブネットの結果をvirtualGuest項目を含みません。
今、どのVSIがこのサブネットをバインドしているか知りたいですか?他のどのマスクも役立つでしょうか?
または、どのようにしてvsiの2次ip情報を取得できますか?