vinfra service compute image set

Modify compute image parameters:

usage: vinfra service compute image set [--min-disk <size-gb>]
                                        [--min-ram <size-mb>]
                                        [--os-distro <os-distro>]
                                        [--protected | --unprotected]
                                        [--public] [--private]
                                        [--name <name>] <image>
--min-disk <size-gb>
Minimum disk size required to boot from image, in gigabytes
--min-ram <size-mb>
Minimum RAM size required to boot from image, in megabytes
--os-distro <os-distro>
OS distribution. To list available distributions, run vinfra service compute show.
--protected
Protect image from deletion
--unprotected
Allow image to be deleted
--public
Make image accessible to all users
--private
Make image accessible only to the owners.
--name <name>
Image name
<image>
Image ID or name

Example:

# vinfra service compute image set 4741274f-5cca-4205-8f66-a2e89fb346cc
--protected --min-ram 1
+------------------+--------------------------------------------------+
| Field            | Value                                            |
+------------------+--------------------------------------------------+
| checksum         | 443b7623e27ecf03dc9e01ee93f67afe                 |
| container_format | bare                                             |
| created_at       | 2018-09-11T13:29:10Z                             |
| disk_format      | qcow2                                            |
| file             | /api/v2/compute/images/4741274f-5cca-<...>/file/ |
| id               | 4741274f-5cca-4205-8f66-a2e89fb346cc             |
| min_disk         | 1                                                |
| min_ram          | 1                                                |
| name             | cirros                                           |
| os_distro        | linux                                            |
| os_type          | linux                                            |
| project_id       | 72a5db3a033c403a86756021e601ef34                 |
| protected        | True                                             |
| size             | 12716032                                         |
| status           | active                                           |
| tags             | []                                               |
| updated_at       | 2018-09-12T09:26:29Z                             |
| virtual_size     |                                                  |
| visibility       | public                                           |
+------------------+--------------------------------------------------+

This command protects the default Cirros image and sets the minimum RAM size for it to 1 GB.