Getting a list of public images

    When creating a VM, you need to select its image with the software that you want to use.

    To get a list of available images:

    1. Open the folder where the VM will be created.
    2. Click Create resource.
    3. Select Virtual machine.
    4. Under Public images, click Select.

    To get a list of available images, run the following command:

    $ yc compute image list --folder-id standard-images
    +----------------------+-------------------------------------+--------------------------+----------------------+--------+
    |          ID          |                NAME                 |          FAMILY          |     PRODUCT IDS      | STATUS |
    +----------------------+-------------------------------------+--------------------------+----------------------+--------+
    ...
    | fdvk34al8k5nltb58shr | centos-7-1549279494                 | centos-7                 | dqni65lfhvv2den5gtv9 | READY  |
    | fdv7ooobjfl3ts9gqp0q | windows-2016-gvlk-1548913814        | windows-2016-gvlk        | dqnnc72gj2ist3ktjj1p | READY  |
    | fdv4f5kv5cvf3ohu4flt | ubuntu-1604-lts-1549457823          | ubuntu-1604-lts          | dqnnb6dc7640c5i968ro | READY  |
    ...
    +----------------------+-------------------------------------+--------------------------+----------------------+--------+
    
    1. Get an IAM token for authenticating in the examples:
    2. Get a list of public images from Yandex.Cloud using the method List for the resource Image.. In the request, specify the following parameters:
      • Specify standard-images as the folder ID.
      • The folder contains many images, so specify pageSize=1000 or use the obtained value of nextPageToken to get the next page.

    Write the result to a file, for example output.json:

    $ export IAM_TOKEN=CggaATEVAgA...
    $ curl -H "Authorization: Bearer ${IAM_TOKEN}" "https://compute.api.cloud.yandex.net/compute/v1/images?folderId=standard-images&pageSize=1000" > output.json