[Yandex Cloud documentation](../../index.md) > [Yandex Cloud Functions](../index.md) > [Concepts](index.md) > Backups

# Backups in Cloud Functions

Data in Cloud Functions is stored securely and replicated within the Yandex Cloud infrastructure. You can get:
* [Lists of functions](#function-list).
* [Lists of function versions](#version-list).
* [Information about function versions](#version-get).
* [Lists of triggers](#trigger-list).
* [Information about triggers](#trigger-get).

## Getting a list of functions {#function-list}

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), go to the folder where you want to view a list of functions.
  1. Navigate to **Cloud Functions**.
  1. In the left-hand panel, select ![image](../../_assets/console-icons/curly-brackets-function.svg) **Functions**.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) 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 get a list of functions, run this command:

  ```bash
  yc serverless function list
  ```

  Result:

  ```text
  +----------------------+--------------------+----------------------+--------+
  |          ID          |        NAME        |      FOLDER ID       | STATUS |
  +----------------------+--------------------+----------------------+--------+
  | b097d9ous3ge******** | my-beta-function   | aoek49ghmknn******** | ACTIVE |
  +----------------------+--------------------+----------------------+--------+
  ```

- API {#api}

  To get a list of functions, use the [list](../functions/api-ref/Function/list.md) REST API method for the [Function](../functions/api-ref/Function/index.md) resource or the [FunctionsService/List](../functions/api-ref/grpc/Function/list.md) gRPC API call.


{% endlist %}

## Getting a list of function versions {#version-list}

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), navigate to the folder containing the function.
    1. Navigate to **Cloud Functions**.
    1. In the left-hand panel, select ![image](../../_assets/console-icons/curly-brackets-function.svg) **Functions**.
    1. Select the function for which you want to get the list of versions.
    1. Under **Version history**, you will see the list of function versions and their details.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) 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 function, [get](../operations/function/function-list.md) the list of functions in the folder.

    To get a list of function versions, run the following command:

    ```bash
    yc serverless function version list --function-name <function_name>
    ```

    Result:

    ```text
    +----------------------+----------------------+-----------+--------------+---------+---------------------+
    |          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 |
    +----------------------+----------------------+-----------+--------------+---------+---------------------+
    ```

- API {#api}

    To get a list of function versions, use the [listVersions](../functions/api-ref/Function/listVersions.md) REST API method for the [Function](../functions/api-ref/Function/index.md) resource or the [FunctionsService/ListVersions](../functions/api-ref/grpc/Function/listVersions.md) gRPC API call.


{% endlist %}

## Getting information about a function version {#version-get}

{% note warning %}

There is no backup of function code. We recommend saving it on your own.

{% endnote %}

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), navigate to the folder containing the function.
    1. Navigate to **Cloud Functions**.
    1. In the left-hand panel, select ![image](../../_assets/console-icons/curly-brackets-function.svg) **Functions**.
    1. Select the function for which you want to get the list of versions.
    1. Under **Version history**, you will see the list of function versions and their details.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) 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 function version, get the [list of function versions](../operations/function/version-list.md) in the folder.

    To get detailed information about a function version by:

    * `ID`, run this command:
        ```
        yc serverless function version get <version_ID>
        ```
        Result:
      
        ```
        id: b09u830mb1n3********
        function_id: b097d9ous3ge********
        created_at: "2023-08-22T09:23:23.383Z"
        runtime: python311
        entrypoint: test.handler
        resources:
          memory: "134217728"
        execution_timeout: 5s
        image_size: "4096"
        status: ACTIVE
        tags:
        - $latest
        log_group_id: eolv6578frac********
        ```

    * `TAGS`, run this command:
        ```
        yc serverless function version get-by-tag --function-name <function_name> --tag <tag>
        ```
        Result:
      
        ```
        id: b09ch6pmpohf********
        function_id: b097d9ous3ge********
        created_at: "2023-08-22T09:12:38.464Z"
        runtime: python311
        entrypoint: test.handler
        resources:
          memory: "134217728"
        execution_timeout: 5s
        image_size: "4096"
        status: ACTIVE
        tags:
        - beta
        log_group_id: eolv6578frac********
        ```

- API {#api}

    To get detailed information about a function version, use the [getVersion](../functions/api-ref/Function/getVersion.md) REST API method for the [Function](../functions/api-ref/Function/index.md) resource or the [FunctionsService/GetVersion](../functions/api-ref/grpc/Function/getVersion.md) gRPC API call.


{% endlist %}

## Getting a list of triggers {#trigger-list}

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), go to the folder where you want to view a list of triggers.
    1. Navigate to **Cloud Functions**.
    1. In the left-hand panel, select ![image](../../_assets/console-icons/gear-play.svg) **Triggers**.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) 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.

    Get a list of triggers:

    ```bash
    yc serverless trigger list
    ```

    Result:

    ```text
    +----------------------+------------+----------------------+
    |          ID          |    NAME    |      FOLDER ID       |
    +----------------------+------------+----------------------+
    | dd0gj5tsj2********** | my-trigger | aoek49ghmk********** |
    +----------------------+------------+----------------------+
    ```

- API {#api}

  To get a list of triggers, use the [list](../triggers/api-ref/Trigger/list.md) REST API method for the [Trigger](../triggers/api-ref/Trigger/index.md) resource or the [TriggerService/List](../triggers/api-ref/grpc/Trigger/list.md) gRPC API call.

{% endlist %}

## Getting information about a trigger {#trigger-get}

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the folder containing the trigger.
  1. Navigate to **Cloud Functions**.
  1. In the left-hand panel, select ![image](../../_assets/console-icons/gear-play.svg) **Triggers**.
  1. Select the trigger you want to get details about.

- CLI {#cli}

    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

    The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) 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 trigger, [get](../operations/trigger/trigger-list.md) the list of triggers in the folder.

    Get detailed information about a trigger:

    ```bash
    yc serverless trigger get <trigger_name>
    ```

    Result:

    ```text
    id: a1s9q2li6t**********
    folder_id: b1g9hv2loa**********
    created_at: "2023-08-01T12:36:14.321Z"
    name: my-trigger
    description: Trigger for uploaded objects
    rule:
      object_storage:
        event_type:
          - OBJECT_STORAGE_EVENT_TYPE_CREATE_OBJECT
        bucket_id: **********
        batch_settings:
          size: "10"
          cutoff: 10s
        invoke_function:
          function_id: d4e5muirrt**********
          function_tag: $latest
          service_account_id: ajek0fou8e**********
    status: ACTIVE
    ```

- API {#api}

  To get detailed information about a trigger, use the [get](../triggers/api-ref/Trigger/get.md) REST API method for the [Trigger](../triggers/api-ref/Trigger/index.md) resource or the [TriggerService/Get](../triggers/api-ref/grpc/Trigger/get.md) gRPC API call.

{% endlist %}