Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
Yandex Serverless Containers
  • Comparison with other Yandex Cloud services
  • Getting started
  • Step-by-step instructions
  • Concepts
    • Overview
    • Container
    • Invoking a container
    • Networking
    • Runtime environments
    • Trigger
    • Dead Letter Queue
    • Container logs
    • Backups
    • Quotas and limits
  • Practical guidelines
  • Access management
  • Pricing policy
  • Containers API reference
  • API Triggers reference
  • Questions and answers
  1. Concepts
  2. Backups

Backups in Serverless Containers

Written by
Yandex Cloud
  • Getting a container list
  • Getting a container revision list
  • Getting information about a container revision
  • Getting a list of triggers
  • Getting information about a trigger

Data in Serverless Containers is stored securely and replicated within the Yandex Cloud infrastructure. You can get:

  • List of containers.
  • Container revision lists.
  • Information about container revisions.
  • Lists of triggers.
  • Information about triggers.

For more information about backing up Docker images used to create container revisions, see the Yandex Container Registry documentation.

Getting a container list

Management console
CLI
API
  1. In the management console, go to the folder where you want to view a list of containers.
  2. Select Serverless Containers.

If you don't 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 get a list of containers, run the command:

yc serverless container list

Result:

+----------------------+--------------------+-----------------------+--------+
|          ID          |        NAME        |      FOLDER ID        | STATUS |
+----------------------+--------------------+-----------------------+--------+
| b097d9ous3ge******** | my-beta-container   | aoek49ghmknn******** | ACTIVE |
+----------------------+--------------------+-----------------------+--------+

You can view a list of containers using the list API method.

Getting a container revision list

Management console
CLI
API
  1. In the management console, select the folder with your container.
  2. Select Serverless Containers.
  3. Select the container to get a list of revisions for.
  4. Under Revisions, you can find the list of container revisions and their details.

If you don't 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 container, get a 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 |
+----------------------+----------------------+--------------------------------------------+---------------------+

You can get a list of container revisions using the listRevisions API method.

Getting information about a container revision

Management console
CLI
API
  1. In the management console, select the folder with your container.
  2. Select Serverless Containers.
  3. Select the container to get revision information for.
  4. Under Revisions, you can find the list of container revisions and their details.

If you don't 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 container revision, get a list of container revisions in the folder.

To get detailed information about a container revision, run the command:

yc serverless container revision get <revision_ID>

Result:

id: bbaq84v92qqc********
container_id: bbab5i36nvda********
created_at: "2021-09-09T11:22:28.128Z"
image:
  image_url: cr.yandex/crpp35hht729********/ubuntu:test
  image_digest: sha256:9f05670784f562f278177e43a9ae0179f29b3cb93b2ef165b935f1**********
resources:
  memory: "1207959552"
  cores: "1"
  core_fraction: "100"
execution_timeout: 0s
concurrency: "1"
service_account_id: aje07l4q4vmo********
status: ACTIVE

To get the details about a container revision, use the getRevision API method.

Getting a list of triggers

Management console
CLI
API
  1. In the management console, go to the folder where you want to view a list of triggers.
  2. Open Serverless Containers.
  3. On the left-hand panel, select Triggers.

If you don't 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.

Get a list of triggers:

yc serverless trigger list

Result:

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

You can get a list of triggers using the list API method.

Getting information about a trigger

Management console
CLI
API
  1. In the management console, select the folder containing your trigger.
  2. Open Serverless Containers.
  3. On the left-hand panel, select Triggers.
  4. Select the trigger to get detailed information about.

If you don't 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.

Get detailed information about a trigger:

yc serverless trigger get <trigger_name>

Result:

id: a1sfe084v4**********
folder_id: b1g88tflri**********
created_at: "2022-12-04T08:45:31.131391Z"
name: mail-trigger
description: My trigger for mail.
rule:
  mail:
    email: a1smdtklem**********-xivn****@serverless.yandexcloud.net
    invoke_container:
      container_id: bba5jb38o8**********
      service_account_id: aje03adgd2**********
      retry_settings:
        retry_attempts: "1"
        interval: 10s
      dead_letter_queue:
        queue-id: yrn:yc:ymq:ru-central1:b1gmit33ng**********:dlq
        service-account-id: aje3lebfem**********
status: ACTIVE

You can get information about a trigger using the get API method.

Was the article helpful?

Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
In this article:
  • Getting a container list
  • Getting a container revision list
  • Getting information about a container revision
  • Getting a list of triggers
  • Getting information about a trigger