{'count': 2, 'volumes': [{'id': 'cfa661c6-1b50-4826-81cd-f6ffb7968390', 'links': [{'href': 'https://None/v2/0e1778cda58d419cbd04f0e0fb833b39/os-vendor-volumes/cfa661c6-1b50-4826-81cd-f6ffb7968390', 'rel': 'self'}, {'href': 'https://None/0e1778cda58d419cbd04f0e0fb833b39/os-vendor-volumes/cfa661c6-1b50-4826-81cd-f6ffb7968390', 'rel': 'bookmark'}], 'name': 'volume-f866-0129855', 'status': 'in-use', 'attachments': [{'server_id': '8452deba-752d-4e71-9e0a-0be71b39ed14', 'attachment_id': '98d64dc5-d5ee-47f8-85cd-79914e9488c2', 'attached_at': '2022-01-29T07:48:20.115139', 'host_name': None, 'volume_id': 'cfa661c6-1b50-4826-81cd-f6ffb7968390', 'device': '/dev/vdc', 'id': 'cfa661c6-1b50-4826-81cd-f6ffb7968390'}], 'size': 5120, 'metadata': {'orderID': '9b2ed8d47cbc4121b999131ee96af448', 'resourceType': 'hws.resource.type.volume', 'resourceSpecCode': 'SATA', 'readonly': 'False', 'hw:passthrough': 'false', 'attached_mode': 'rw', 'productID': '06300a5d6e44490bab04ce0150aab2de'}, 'bootable': 'false', 'encrypted': False, 'tags': {}, 'wwn': '6888603000000b23fa162c4596688099', 'availability_zone': 'cn-sccd1a', 'os-vol-host-attr:host': 'cn-sccd1a-05.cn-sccd1#SATA', 'created_at': '2022-01-29T07:08:18.132588', 'volume_type': 'SATA', 'shareable': 'false', 'multiattach': False, 'os-vol-tenant-attr:tenant_id': '0e1778cda58d419cbd04f0e0fb833b39', 'os-volume-replication:extended_status': None, 'volume_image_metadata': {}, 'updated_at': '2022-07-13T12:33:19.000853', 'replication_status': 'disabled', 'os-vol-mig-status-attr:name_id': None, 'os-vol-mig-status-attr:migstat': None, 'user_id': 'eb54828bd59f4f968a2de143584a2b60', 'service_type': 'EVS', 'enterprise_project_id': '0'}, {'id': '9af1ae4c-331b-43cc-9146-0a7496ca7abe', 'links': [{'href': 'https://None/v2/0e1778cda58d419cbd04f0e0fb833b39/os-vendor-volumes/9af1ae4c-331b-43cc-9146-0a7496ca7abe', 'rel': 'self'}, {'href': 'https://None/0e1778cda58d419cbd04f0e0fb833b39/os-vendor-volumes/9af1ae4c-331b-43cc-9146-0a7496ca7abe', 'rel': 'bookmark'}], 'name': 'ecs-5fec-0828184-volume-0000', 'status': 'in-use', 'attachments': [{'server_id': '1080f279-dfa8-47d1-8e3f-eb2855012a76', 'attachment_id': '573b5183-efb6-4dec-b483-c67e993bd8e8', 'attached_at': '2020-08-28T06:30:02.635113', 'host_name': None, 'volume_id': '9af1ae4c-331b-43cc-9146-0a7496ca7abe', 'device': '/dev/vda', 'id': '9af1ae4c-331b-43cc-9146-0a7496ca7abe'}], 'size': 40, 'metadata': {'orderID': 'de695c574b424c54adab78d1ff34a31a', 'attached_mode': 'rw', 'resourceType': '3', '__system__server_id': '1080f279-dfa8-47d1-8e3f-eb2855012a76', 'resourceSpecCode': 'SSD', 'readonly': 'False', 'productID': '7aa1c07238a94783af1fbfdc8ba41750'}, 'bootable': 'true', 'encrypted': False, 'tags': {}, 'wwn': '6888603000003b01fa162c4596688099', 'availability_zone': 'cn-sccd1a', 'os-vol-host-attr:host': 'cn-sccd1a-04.cn-sccd1#SSD', 'created_at': '2020-08-28T06:29:41.624095', 'volume_type': 'SSD', 'shareable': 'false', 'multiattach': False, 'os-vol-tenant-attr:tenant_id': '0e1778cda58d419cbd04f0e0fb833b39', 'os-volume-replication:extended_status': None, 'volume_image_metadata': {'container_format': 'bare', 'min_ram': '0', '__account_code': 'linux', 'image_name': 'CentOS7.4 64位', 'min_disk': '40', '__os_type': 'Linux', '__os_feature_list': '{"onekey_resetpasswd": "true"}', '__os_bit': '64', '__support_kvm': 'true', 'virtual_env_type': 'FusionCompute', 'size': '0', '__os_version': 'CentOS 7.4 64bit', '__image_source_type': 'uds', '__support_xen': 'true', 'image_id': '3d915781-76af-404a-b593-92bc04c1e1cc', 'checksum': 'd41d8cd98f00b204e9800998ecf8427e', '__imagetype': 'gold', 'disk_format': 'zvhd2', '__lazyloading': 'true', '__support_kvm_hi1822_hiovs': 'true', '__support_highperformance': 'true', '__isregistered': 'true', 'hw_vif_multiqueue_enabled': 'true', '__platform': 'CentOS'}, 'updated_at': '2022-07-13T12:40:36.706991', 'replication_status': 'disabled', 'os-vol-mig-status-attr:name_id': None, 'os-vol-mig-status-attr:migstat': None, 'user_id': 'eb54828bd59f4f968a2de143584a2b60', 'service_type': 'EVS', 'enterprise_project_id': '0'}]}
分析上面的数据，将id，size存为一个list，用python实现