Getting a list of function versions
Written by
Updated at October 17, 2024
Management console
CLI
API
Yandex Cloud Toolkit
- In the management console
, select the folder containing the function. - Select Cloud Functions.
- In the left-hand panel, select
Functions. - Select the function to get a list of versions for.
- Under Version history, you can find the list of function versions and their details.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To find out the name or unique ID of a function, get a list of functions in the folder.
To get a list of function versions, run the following command:
yc serverless function version list --function-name <function_name>
Result:
+----------------------+----------------------+-----------+--------------+---------+---------------------+
| ID | FUNCTION ID | RUNTIME | ENTRYPOINT | TAGS | CREATED AT |
+----------------------+----------------------+-----------+--------------+---------+---------------------+
| b09u830mb1n3******** | b097d9ous3ge******** | python311 | test.handler | $latest | 2023-08-22 09:23:23 |
| b09ch6pmpohf******** | b097d9ous3ge******** | python311 | test.handler | beta | 2023-08-22 09:12:38 |
+----------------------+----------------------+-----------+--------------+---------+---------------------+
To get a list of function versions, use the listVersions REST API method for the Function resource or the FunctionsService/ListVersions gRPC API call.
You can create a list of function versions using the Yandex Cloud Toolkit plugin