API used for update Image in Glance
Hi Team, Can you please list me , what i have to do different while updating Image in Glance using a API call, Can Some body share the Syntax for the same, Do i need to create a JSON file for the same Regards Adivya Singh
Hello Adviya, If you are using python-glanceclient then just use command; `glance help image-update` and it will list out the helof text for you. You can use those options to update your image information. General syntax is; $ glance image-update <image-id> <options from the list> If you want to update visibility of image from public to private then; glance image-update <image-id> --visibility private Thanks & Best Regards, Abhishek Kekane On Wed, Oct 6, 2021 at 7:35 PM Adivya Singh <adivya1.singh@gmail.com> wrote:
Hi Team,
Can you please list me , what i have to do different while updating Image in Glance using a API call, Can Some body share the Syntax for the same, Do i need to create a JSON file for the same
Regards Adivya Singh
There is an /Update Image /API, documented at https://docs.openstack.org/api-ref/image/v2/index.html?expanded=update-image.... It does require an HTTP request body in JSON format. However, it updates the /image catalog entry, /not the image data. If you want to replace image data, this is not possible, since the image catalog entry contains a checksum that can't be modified. Modified image data would not correspond to the checksum anymore (see the second note under https://docs.openstack.org/api-ref/image/v2, which also states "images are immutable"). Bernd Bausch. On 2021/10/06 11:01 PM, Adivya Singh wrote:
Can you please list me , what i have to do different while updating Image in Glance using a API call, Can Some body share the Syntax for the same, Do i need to create a JSON file for the same
participants (3)
-
Abhishek Kekane
-
Adivya Singh
-
Bernd Bausch