Getting a list of container revisions
- In the management console
, select the folder with your container. - Navigate to Serverless Containers.
- Select the container for which you want to get a list of revisions.
- Under Revisions, you can find a 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 ID of a container, get the 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.