Making a revision active
Written by
Updated at October 17, 2024
Invoking a container triggers the active revision.
Management console
CLI
API
- In the management console
, select the folder with your container. - Select Serverless Containers.
- Select the container.
- In the row with the revision you need, click
and select Make active from the drop-down list. - In the window that opens, click Confirm. The revision status will change from
Obsolete
toActive
.
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 container revision, get a list of container revisions in the folder.
To make a container revision active, run this command:
yc serverless containers rollback \
--name <container_name> \
--revision-id <revision_ID>
Where:
--name
: Name of the container whose active revision you want to change.--revision-id
: ID of the container revision you want to make active.
Result:
id: bba610kqnj8b********
folder_id: b1g3f9i71bpm********
created_at: "2023-11-15T12:49:49.795Z"
name: container
url: https://bba610kqnj8b********.containers.yandexcloud.net/
status: ACTIVE
To make a container revision active, use either the rollback REST API method for the Container resource or the ContainerService/Rollback gRPC API call.