Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Container Registry
  • Getting started
    • All guides
    • Installing and configuring Docker
    • Authentication in Container Registry
      • Getting information about existing lifecycle policies
      • Creating a lifecycle policy
      • Updating a lifecycle policy
      • Performing lifecycle policy dry runs
      • Deleting a lifecycle policy
    • Scanning Docker images for vulnerabilities
    • Creating a trigger for a registry
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Troubleshooting
  • FAQ

In this article:

  • Getting a list of lifecycle policies in a repository or registry
  • Getting information about a lifecycle policy
  1. Step-by-step guides
  2. Managing Docker image lifecycle policies
  3. Getting information about existing lifecycle policies

Getting information about lifecycle policies

Written by
Yandex Cloud
Updated at March 6, 2025
  • Getting a list of lifecycle policies in a repository or registry
  • Getting information about a lifecycle policy

Find out how to get:

  • List of lifecycle policies in a repository or registry.
  • Details about a lifecycle policy.

Getting a list of lifecycle policies in a repository or registryGetting a list of lifecycle policies in a repository or registry

Management console
CLI
API

Note

In the management console, you can only get a list of lifecycle policies for a repository.

  1. In the management console, select the folder the registry was created in.
  2. In the list of services, select Container Registry.
  3. Select the registry and click the row with its name.
  4. Select the repository and click the row with its name.
  5. In the left-hand panel, click Lifecycle.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

  • Retrieve a list of lifecycle policies in a repository:

    yc container repository lifecycle-policy list --repository-name crp2hlbs67tj********/ubuntu
    

    Result:

    +----------------------+-------------+----------------------+----------+---------------------+-------------------------------+
    |          ID          |    NAME     |    REPOSITORY ID     |  STATUS  |       CREATED       |          DESCRIPTION          |
    +----------------------+-------------+----------------------+----------+---------------------+-------------------------------+
    | crp6lg1868p3******** | test-policy | crp3cpm16edq******** | DISABLED | 2020-05-28 15:05:58 | disabled lifecycle-policy for |
    |                      |             |                      |          |                     | tests                         |
    +----------------------+-------------+----------------------+----------+---------------------+-------------------------------+
    
  • Retrieve 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 retrieve a list of lifecycle policies, use the List method for the LifecyclePolicyService resource.

Getting information about a lifecycle policyGetting information about a lifecycle policy

Management console
CLI
API
  1. In the management console, select the folder the registry was created in.
  2. In the list of services, select Container Registry.
  3. Select the registry and click the row with its name.
  4. Select the repository and click the row with its name.
  5. In the left-hand panel, click Lifecycle.
  6. Click the name of the lifecycle policy you need.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

Get detailed information about a lifecycle policy using the id from the previous item:

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 retrieve a list of policies using the List method for the LifecyclePolicyService resource.

Was the article helpful?

Previous
Creating a repository
Next
Creating a lifecycle policy
© 2025 Direct Cursus Technology L.L.C.