Getting a list of function versions
- In the management console
, select the folder containing the function. - Go to 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 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 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.