Getting a list of function versions
- 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 CLI yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. 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