in src/ansible_collections/alibaba/apsarastack/plugins/modules/ali_image_info.py [0:0]
def get_info(image):
"""
Retrieves image information from an image
ID and returns it as a dictionary
"""
return {
'architecture': image["Architecture"],
'creation_time': image["CreationTime"],
'description': image["Description"],
'disk_device_mappings': image["DiskDeviceMappings"],
'image_id': image["ImageId"],
'image_name': image["ImageName"],
'image_owner_alias': image["ImageOwnerAlias"],
'image_version': image["ImageVersion"],
'is_copied': image["IsCopied"],
'is_self_shared': image["IsSelfShared"],
'is_subscribed': image["IsSubscribed"],
'is_support_cloudinit': image["IsSupportCloudinit"],
'is_support_io_optimized': image["IsSupportIoOptimized"],
'platform': image["Platform"],
'product_code': image["ProductCode"],
'progress': image["Progress"],
"size": image["Size"],
"status": image["Status"],
"tags": image["Tags"],
"usage": image["Usage"],
"osname": image["OSName"],
"ostype": image["OSType"],
}