def dirct_list_1(a):
a={'DBInstances': [{'InstanceId': 'cmgo-2ze3phfv', 'InstanceIp': '10.0.0.157;10.0.0.189;10.0.0.194', 'InstanceName': 'mongo_auto_2023013022_0659', 'VpcId': 'vpc-bloz0xfz'}, {'InstanceId': 'cmgo-aj37iu13', 'InstanceIp': '10.0.0.83;10.0.0.14;10.0.0.67', 'InstanceName': 'mongo_auto_2023013016_5324', 'VpcId': 'vpc-bloz0xfz'}, {'InstanceId': 'cmgo-auy1u0ht', 'InstanceIp': '10.0.0.153;10.0.0.245;10.0.0.214', 'InstanceName': 'mongo_auto_2023013017_1716', 'VpcId': 'vpc-bloz0xfz'}, {'InstanceId': 'cmgo-ee17ywtr', 'InstanceIp': '10.0.0.240;10.0.0.177;10.0.0.151', 'InstanceName': 'mongo_auto_2023013017_1716', 'VpcId': 'vpc-bloz0xfz'}], 'RequestId': '963c464e-a117-11ed-bc57-acde48001122', 'TotalCount': 4}
list_1=[]
for info in a['DBInstances']:
list_1.append(info['InstanceId'])
list_1.append(info['InstanceIp'])
print(list_1)
>>> dirct_list_1()