Getting information about lifecycle policies
Warning
Starting October 13, 2026, Yandex Container Registry will be unavailable to new users.
The existing users can create resources until November 10, 2026. Afterwards, Yandex Container Registry will go read-only and cease to operate on December 14, 2026. For more information on how it will be handled, see this article on Yandex Container Registry sunset.
Find out how to get:
Getting a list of lifecycle policies in a repository or registry
Note
In the management console, you can only get a list of lifecycle policies for a repository.
- In the management console
, select the folder with the registry. - Navigate
to Container Registry. - Select the registry and click the row with its name.
- Select the repository and click the row with its name.
- In the left-hand panel, click
Lifecycle.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
-
Get a list of lifecycle policies in a repository:
yc container repository lifecycle-policy list --repository-name crp2hlbs67tj********/ubuntuResult:
+----------------------+-------------+----------------------+----------+---------------------+-------------------------------+ | ID | NAME | REPOSITORY ID | STATUS | CREATED | DESCRIPTION | +----------------------+-------------+----------------------+----------+---------------------+-------------------------------+ | crp6lg1868p3******** | test-policy | crp3cpm16edq******** | DISABLED | 2020-05-28 15:05:58 | disabled lifecycle-policy for | | | | | | | tests | +----------------------+-------------+----------------------+----------+---------------------+-------------------------------+ -
Get a list of lifecycle policies in a registry:
yc container repository lifecycle-policy list --registry-id crp2hlbs67tj********Result:
+----------------------+-------------+----------------------+----------+---------------------+-------------------------------+ | ID | NAME | REPOSITORY ID | STATUS | CREATED | DESCRIPTION | +----------------------+-------------+----------------------+----------+---------------------+-------------------------------+ | crp6lg1868p3******** | test-policy | crp3cpm16edq******** | DISABLED | 2020-05-28 15:05:58 | disabled lifecycle-policy for | | | | | | | tests | | crpbia0qsdqp******** | | crpo17tgeemu******** | DISABLED | 2020-05-28 08:06:14 | | +----------------------+-------------+----------------------+----------+---------------------+-------------------------------+
To get a list of lifecycle policies, use the List method for the LifecyclePolicyService resource.
Getting information about a lifecycle policy
- In the management console
, select the folder containing the registry. - Navigate
to Container Registry. - Select the registry and click the row with its name.
- Select the repository and click the row with its name.
- In the left-hand panel, click
Lifecycle. - Click the lifecycle policy name.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
Get detailed information about a lifecycle policy using id from the previous step:
yc container repository lifecycle-policy get crp6lg1868p3********
Result:
id: crp6lg1868p3********
name: test-policy
repository_id: crp3cpm16edq********
...
expire_period: 172800s
tag_regexp: test.*
untagged: true
To get detailed information about a lifecycle policy, use the Get method for the LifecyclePolicyService resource. Specify the policy ID in the lifecycle_policy_id parameter.
You can get the list of policies using the List method for the LifecyclePolicyService resource.