Service resource labels
Most Yandex Cloud services support resource labeling.
A label is a key-value pair in <label_name>=<label_value>
format. You can use labels to break resources into logical groups.
Labels are subject to the following limitations:
- Maximum number of labels per resource: 64.
- The key:
- Must be from 1 to 63 characters long.
- May contain lowercase Latin letters, numbers, hyphens, and underscores.
- Must start with a letter.
- The value:
- It may be up to 63 characters long.
- May contain lowercase Latin letters, numbers, hyphens, and underscores.
Label usage examples
-
Viewing service usage details by labels.
For example, you can view the DataSphere spending details.
-
Searching for resources belonging to the same project, owner, environment, etc.
For example, you can use the
project:app
label to find the Yandex Cloud resources used in theapp
project. -
Grouping resources by various criteria, such as project, team, environment, application, etc.
For example, you can use the
environment:production
andenvironment:test
labels to mark Yandex Cloud resources as belong to the production and test environments. -
Automating actions with a resource group, such as launching, stopping, or deleting the labeled resources.
For example, you can manage a resource group using Yandex Cloud Functions.
Services that support labels
List of services whose resources support labels:
- Yandex API Gateway
- Yandex Application Load Balancer
- Yandex Certificate Manager
- Yandex Cloud DNS
- Yandex Cloud Functions
- Yandex Cloud Logging
- Yandex Cloud Organization
- Yandex Compute Cloud
- Yandex Container Registry
- Yandex Data Proc
- Yandex DataSphere
- Yandex Identity and Access Management
- Yandex IoT Core
- Yandex Key Management Service
- Yandex Lockbox
- Yandex Managed Service for Apache Kafka®
- Yandex Managed Service for ClickHouse®
- Yandex Managed Service for Greenplum®
- Yandex Managed Service for Kubernetes
- Yandex Managed Service for MongoDB
- Yandex Managed Service for MySQL
- Yandex Managed Service for PostgreSQL
- Yandex Managed Service for Redis
- Yandex Managed Service for YDB
- Yandex Network Load Balancer
- Yandex Object Storage
- Yandex Resource Manager
- Yandex Serverless Containers
- Yandex Virtual Private Cloud
See also
- Managing labels
- Managing labels in Yandex DataSphere communities
- Managing labels in Yandex DataSphere projects
Greenplum® and Greenplum Database® are registered trademarks or trademarks of VMware, Inc. in the United States and/or other countries.
ClickHouse® is a registered trademark of ClickHouse, Inc