Getting a list of container revisions
- In the management console
, go to the folder with your container. - Go to Serverless Containers.
- Select the container to get a list of revisions for.
- Under Revisions, you can find the list of container revisions and their details.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
To find out the name or unique ID of a container, get a list of containers in the folder.
To get a list of container revisions, run this command:
yc serverless container revision list --container-name <container_name>
Result:
+----------------------+----------------------+--------------------------------------------+---------------------+
| ID | CONTAINER ID | IMAGE | CREATED AT |
+----------------------+----------------------+--------------------------------------------+---------------------+
| bbaq84v92qqc******** | bbab5i36nvda******** | cr.yandex/crpp35hht729********/ubuntu:test | 2021-09-09 11:22:28 |
| bba5eosk5sod******** | bbab5i36nvda******** | cr.yandex/crpp35hht729********/ubuntu:test | 2021-09-09 10:13:04 |
+----------------------+----------------------+--------------------------------------------+---------------------+
To get a list of container revisions, use the listRevisions REST API method for the Container resource or the ContainerService/ListRevisions gRPC API call.