Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud CDN
    • All guides
      • Creating a resource
      • Copying configuration from one resource to another
      • Updating basic settings of a resource
      • Getting information about a resource
      • Configuring resource caching
      • Configuring log export
      • Prefetching files to the CDN server cache
      • Purging resource cache
      • Configuring request and response headers
      • Configuring CORS for responses to clients
      • Configuring HTTP methods
      • Setting up an HTTP response
      • Enabling file compression
      • Enabling file segmentation
      • Enabling origin shielding
      • Setting up a request redirect
      • Enabling a resource to follow request redirects
      • Setting up hiding of origin headers
      • Setting up access via a secure token
      • Setting up location rules
      • Setting up a server name for SNI
      • Suspending and resuming a resource
      • Managing resource labels
      • Configuring dedicated IP addressing
      • Configuring a TLS profile
      • Deleting a resource
      • Viewing resource statistics
  • Access management
  • Pricing policy
  • Terraform reference
  • Metrics Monitoring
  • Request logs
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Adding or updating labels
  • Viewing labels
  • Deleting labels
  1. Step-by-step guides
  2. Resources
  3. Managing resource labels

Managing resource labels

Written by
Yandex Cloud
Updated at August 5, 2026
View in Markdown
  • Adding or updating labels
  • Viewing labels
  • Deleting labels

CDN resource labels are key-value pairs used for logical CDN resource labeling.

Adding or updating labelsAdding or updating labels

Management console
CLI
  1. In the management console, select the folder the resource is in.
  2. Navigate to Cloud CDN.
  3. In the CDN resource row, click and select Edit.
  4. Under Content, find the Labels field.
  5. Click Add label.
  6. Enter a label in key: value format. To update an existing label, enter its key and a new value.
  7. Press Enter.
  8. Click Save.

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

The folder used by default is the one specified when creating 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.

  1. View the description of the CLI command to update the CDN resource settings:

    yc cdn resource update --help
    
  2. Get a list of CDN resources in the default folder:

    yc cdn resource list
    

    Result:

    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    |          ID          |  CNAME  |           CREATED AT           |           UPDATED AT           | ACTIVE |                         OPTIONS                         |
    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    | bc8jhcx5o47p******** | ****.ru | seconds:1734615244             | seconds:1734615244             | false  | edge_cache_settings:{enabled:true                       |
    |                      |         | nanos:439618000                | nanos:439638000                |        |  default_value:345600}                                  |
    |                      |         |                                |                                |        | query_params_options:{ignore_query_string:{enabled:true |
    |                      |         |                                |                                |        |  value:true}}  stale:{enabled:true  value:"error"       |
    |                      |         |                                |                                |        | value:"updating"}                                       |
    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    
  3. Add labels by specifying the name of the CDN resource:

    yc cdn resource update <CDN_resource_ID> \
      --add-labels <label_1_key>=<label_1_value>,<label_2_key>=<label_2_value>,...,<label_n_key>=<label_n_value>
    

    Where --add-labels is a parameter to list CDN resource labels in key=value format.

    Result:

    id: bc8jhcx5o47p********
    folder_id: b1g681qpemb4********
    cname: ****.ru
    ...
    labels:
      key2: value2
      key3: value3
      key4: value4
    

Viewing labelsViewing labels

Management console
CLI
  1. In the management console, select the folder the resource is in.
  2. Navigate to Cloud CDN.
  3. Navigate to the CDN resource.
  4. Under Content, find the Labels field.

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

The folder used by default is the one specified when creating 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.

  1. View the description of the CLI command to update the CDN resource settings:

    yc cdn resource update --help
    
  2. Get a list of CDN resources in the default folder:

    yc cdn resource list
    

    Result:

    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    |          ID          |  CNAME  |           CREATED AT           |           UPDATED AT           | ACTIVE |                         OPTIONS                         |
    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    | bc8jhcx5o47p******** | ****.ru | seconds:1734615244             | seconds:1734615244             | false  | edge_cache_settings:{enabled:true                       |
    |                      |         | nanos:439618000                | nanos:439638000                |        |  default_value:345600}                                  |
    |                      |         |                                |                                |        | query_params_options:{ignore_query_string:{enabled:true |
    |                      |         |                                |                                |        |  value:true}}  stale:{enabled:true  value:"error"       |
    |                      |         |                                |                                |        | value:"updating"}                                       |
    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    
  3. Get information about the labels by specifying the name of the CDN resource:

    yc cdn resource get <CDN_resource_ID>
    

    Result:

    id: bc8jhcx5o47p********
    folder_id: b1g681qpemb4********
    cname: ****.ru
    ...
    labels:
      key2: value2
      key3: value3
      key4: value4
    

Deleting labelsDeleting labels

Management console
CLI
  1. In the management console, select the folder the resource is in.
  2. Navigate to Cloud CDN.
  3. In the CDN resource row, click and select Edit.
  4. Under Content, find the Labels field.
  5. Click next to the label.
  6. Click Save.

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

The folder used by default is the one specified when creating 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.

  1. View the description of the CLI command to update the CDN resource settings:

    yc cdn resource update --help
    
  2. Get a list of CDN resources in the default folder:

    yc cdn resource list
    

    Result:

    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    |          ID          |  CNAME  |           CREATED AT           |           UPDATED AT           | ACTIVE |                         OPTIONS                         |
    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    | bc8jhcx5o47p******** | ****.ru | seconds:1734615244             | seconds:1734615244             | false  | edge_cache_settings:{enabled:true                       |
    |                      |         | nanos:439618000                | nanos:439638000                |        |  default_value:345600}                                  |
    |                      |         |                                |                                |        | query_params_options:{ignore_query_string:{enabled:true |
    |                      |         |                                |                                |        |  value:true}}  stale:{enabled:true  value:"error"       |
    |                      |         |                                |                                |        | value:"updating"}                                       |
    +----------------------+---------+--------------------------------+--------------------------------+--------+---------------------------------------------------------+
    
  3. Delete labels by specifying the name of the CDN resource:

    yc cdn resource update <CDN_resource_ID> \
      --remove-labels <label_1_key>,<label_2_key>,...,<label_n_key>
    

    Where --remove-labels is a parameter to list the keys of the CDN resource labels.

    Result:

    id: bc8jhcx5o47p********
    folder_id: b1g681qpemb4********
    cname: ****.ru
    ...
    labels:
      key2: value2
      key3: value3
      key4: value4
    

    To delete all labels, use the --remove-all-labels flag:

    yc cdn resource update <CDN_resource_ID> \
      --remove-all-labels
    

Was the article helpful?

Previous
Suspending and resuming a resource
Next
Configuring dedicated IP addressing
© 2026 Direct Cursus Technology L.L.C.