Yandex Cloud
Поиск
Связаться с экспертомПопробовать бесплатно
  • Кейсы
  • Документация
  • Блог
  • Все сервисы
    • 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
    • VibeCraft
    • Yandex Cloud Detection and Response
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • GOST Gateway
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • SourceCraft
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • 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
  • Статус работы сервисов
  • Marketplace
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Yandex Cloud Trust
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
  • Кейсы
  • Документация
  • Блог
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex Smart Web Security
  • Начало работы
    • Обзор
    • Профили безопасности
    • Профили WAF
    • ARL (лимит на запросы)
    • Правила
    • Условия
    • Списки
    • Управление бот-трафиком
    • Защита доменов
    • Шаблоны ответов
    • Логирование
    • Квоты и лимиты
  • Управление доступом
  • Правила тарификации
    • Overview
      • Overview
        • Overview
        • create
        • delete
        • get
        • list
        • start
        • stop
        • update
  • Справочник Terraform
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • История изменений
  1. Справочник CLI (англ.)
  2. load-balancer
  3. load-balancer
  4. update

yc smartwebsecurity load-balancer load-balancer update

Статья создана
Yandex Cloud
Обновлена 8 сентября 2026 г.
Открыть в Markdown

Updates the specified load balancer.

Command UsageCommand Usage

Syntax:

yc smartwebsecurity load-balancer load-balancer update <LOAD-BALANCER-ID>

FlagsFlags

Flag

Description

--update-mask

[]string

Field paths for FieldMask: each segment may be proto snake_case or CLI kebab-case (e.g. name, labels, network-interface). Repeat the flag or use comma-separated values. When set and non-empty, takes precedence over update_mask in the request body/file and over mask inferred from -r. If omitted or empty, the mask is built from the fields you pass (changed flags, JSON/shorthand, and request file when update_mask is absent there).

--id

string

ID of the load balancer to update.

--labels

map<string><string>

Resource labels as 'key:value' pairs.

--name

string

Name of the load balancer.

--description

string

Description of the load balancer.

--domains

shorthand/json

Domains served by the load balancer.

Description
  • name (string)
    Unique name of domain within the balancer. Will be used for monitoring naming and error messages.
  • server-name (string)
    Server name or wildcard to be matched against SNI in a TLS connection and authority(host) header. Wildcards are in the form of ".s.o.m.e". Allowed: "example.com", ".example.com". Not allowed: "..example.com", "*-sub.example.com".
  • description (string)
    Domain description.
  • security-profile-id (string)
    Security Profile ID of SmartWebSecurity service.
  • http-backend (structure)
    Backend settings.
  • targets ([]structure)
    List of targets.
  • ip-address (string)
    IPv4 address.
  • description (string)
    Target description.
  • port (integer)
    Target port.
  • use-http2 (boolean)
    Enables HTTP2 for upstream requests. If not set, HTTP 1.1 will be used by default.
  • use-tls (boolean)
    Enable TLS for upstream requests.
  • sni (string)
    SNI string for TLS connections. Applicable only if use_tls enabled.
  • trusted-ca-bytes (string)
    Trusted certificate authority certificates bundle (PEM text). Applicable only if use_tls enabled.
  • timeout (duration)
    Backend timeout. If not set, default is 300 seconds.
  • idle-timeout (duration)
    Specifies the idle timeout for the route. If not specified, there is no per-route idle timeout.
  • session-affinity (structure)
    Session affinity.
  • session-affinity (oneof)
    Oneof session-affinity field
  • connection (structure)
    Session affinity based on source IP address.
  • source-ip (boolean)
    IP address.
  • header (structure)
    Session affinity based on an HTTP header.
  • header-name (string)
    Header name.
  • cookie (structure)
    Session affinity based on a cookie.
  • name (string)
    Cookie name.
  • ttl (duration)
    If not set, session cookie will be used (not persisted between browser restarts).
  • path (string)
    Optional cookie path.
  • tls-listener (structure)
    Optional TLS listener settings.
  • enabled (boolean)
    Enable TLS listener.
  • certificate-id (string)
    Certificate ID in the Certificate Manager.
  • port (integer)
    Listener port. If value is not set, used 443 by default.
  • enable-http1 (boolean)
    Enables HTTP/1.0 and HTTP/1.1 support and disables HTTP/2.
  • http-listener (structure)
    Optional plaintext listener settings.
  • enabled (boolean)
    Enable http (plaintext) listener.
  • redirect-to-https (boolean)
    Automatically redirect from HTTP to HTTPS. If TlsListener's port is 443 or not set, redirect URL will be "https://<host><path>" and "https://<host>:<port><path>" in other case.
  • port (integer)
    Listener port. If value is not set, used 80 by default.
  • solid-waf-settings (structure)
    Optional Solid WAF settings.
  • solid-waf-profile-id (string)
    ID of the Solid WAF profile.
  • session-affinity (structure)
    Session affinity to analyzers. If not set, ConnectionSessionAffinity will be used.
  • session-affinity (oneof)
    Oneof session-affinity field
  • connection (structure)
    Session affinity based on source IP address.
  • source-ip (boolean)
    IP address.
  • header (structure)
    Session affinity based on an HTTP header.
  • header-name (string)
    Header name.
  • cookie (structure)
    Session affinity based on a cookie.
  • name (string)
    Cookie name.
  • ttl (duration)
    If not set, session cookie will be used (not persisted between browser restarts).
  • path (string)
    Optional cookie path.
  • web-app-id (string)
    ID of the Solid WAF web app.
  • rate-limit (structure)
    Optional rate limit settings.
  • all-requests-per-second (integer)
    Rate limit for all requests. Defaults: - with SolidWaf enabled: 20000 RPS - without SolidWaf enabled: unlimited
  • requests-per-ip-per-second (integer)
    Rate limit for individual IP addresses. Defaults: - with SolidWaf enabled: 1000 RPS - without SolidWaf enabled: unlimited
Shorthand Syntax
[
  {
    description = string,
    http-backend = {
      idle-timeout = duration,
      session-affinity = {
        session-affinity = connection={
          source-ip = boolean
        } | cookie={
          name = string,
          path = string,
          ttl = duration
        } | header={
          header-name = string
        }
      },
      sni = string,
      targets = [
        {
          description = string,
          ip-address = string,
          port = integer
        }, ...
      ],
      timeout = duration,
      trusted-ca-bytes = string,
      use-http2 = boolean,
      use-tls = boolean
    },
    http-listener = {
      enabled = boolean,
      port = integer,
      redirect-to-https = boolean
    },
    name = string,
    rate-limit = {
      all-requests-per-second = integer,
      requests-per-ip-per-second = integer
    },
    security-profile-id = string,
    server-name = string,
    solid-waf-settings = {
      session-affinity = {
        session-affinity = connection={
          source-ip = boolean
        } | cookie={
          name = string,
          path = string,
          ttl = duration
        } | header={
          header-name = string
        }
      },
      solid-waf-profile-id = string,
      web-app-id = string
    },
    tls-listener = {
      certificate-id = string,
      enable-http1 = boolean,
      enabled = boolean,
      port = integer
    }
  }, ...
]
JSON Syntax
[
  {
    "description": "string",
    "http-backend": {
      "idle-timeout": "duration",
      "session-affinity": {
        "session-affinity": {
          "connection": {
            "source-ip": "boolean"
          },
          "cookie": {
            "name": "string",
            "path": "string",
            "ttl": "duration"
          },
          "header": {
            "header-name": "string"
          }
        }
      },
      "sni": "string",
      "targets": [
        {
          "description": "string",
          "ip-address": "string",
          "port": "integer"
        }, ...
      ],
      "timeout": "duration",
      "trusted-ca-bytes": "string",
      "use-http2": "boolean",
      "use-tls": "boolean"
    },
    "http-listener": {
      "enabled": "boolean",
      "port": "integer",
      "redirect-to-https": "boolean"
    },
    "name": "string",
    "rate-limit": {
      "all-requests-per-second": "integer",
      "requests-per-ip-per-second": "integer"
    },
    "security-profile-id": "string",
    "server-name": "string",
    "solid-waf-settings": {
      "session-affinity": {
        "session-affinity": {
          "connection": {
            "source-ip": "boolean"
          },
          "cookie": {
            "name": "string",
            "path": "string",
            "ttl": "duration"
          },
          "header": {
            "header-name": "string"
          }
        }
      },
      "solid-waf-profile-id": "string",
      "web-app-id": "string"
    },
    "tls-listener": {
      "certificate-id": "string",
      "enable-http1": "boolean",
      "enabled": "boolean",
      "port": "integer"
    }
  }, ...
]

--service-account-id

string

ID of the service account used to access dependent resources.

--deletion-protection

Protects the load balancer from accidental deletion.

--log-options

shorthand/json

Cloud Logging settings.

Description
  • log-group-id (string)
    ID of Cloud Logging log group. Keep empty to use default log group.
  • disable (boolean)
    Do not send logs to Cloud Logging log group.
  • discard-rules ([]structure)
    Ordered list of rules, first matching rule applies.
  • http-codes ([]integer)
    HTTP codes that should be discarded.
  • http-code-intervals ([]structure)
    Groups of HTTP codes like 4xx that should be discarded.
  • discard-percent (integer)
    Percent of logs to be discarded: 0 - keep all, 100 or unset - discard all.
Shorthand Syntax
{
  disable = boolean,
  discard-rules = [
    {
      discard-percent = integer,
      http-code-intervals = [
        HTTP_1XX|HTTP_2XX|HTTP_3XX|HTTP_4XX|HTTP_5XX|HTTP_ALL, ...
      ],
      http-codes = integer,...
    }, ...
  ],
  log-group-id = string
}
JSON Syntax
{
  "disable": "boolean",
  "discard-rules": [
    {
      "discard-percent": "integer",
      "http-code-intervals": [
        "HTTP_1XX|HTTP_2XX|HTTP_3XX|HTTP_4XX|HTTP_5XX|HTTP_ALL", ...
      ],
      "http-codes": [
        "integer", ...
      ]
    }, ...
  ],
  "log-group-id": "string"
}

--resource-units

int

Number of initially allocated resource units.

--route-options

shorthand/json

Options that apply to all domains.

Description
  • modify-request-headers ([]structure)
    Apply the following modifications to the request headers.
  • name (string)
    Name of the header.
  • operation (oneof)
    Oneof operation field
  • append (string)
    Append string to the header value.
  • replace (string)
    New value for a header.
  • remove (boolean)
    Remove the header.
  • rename (string)
    New name for a header.
  • modify-response-headers ([]structure)
    Apply the following modifications to the response headers.
  • name (string)
    Name of the header.
  • operation (oneof)
    Oneof operation field
  • append (string)
    Append string to the header value.
  • replace (string)
    New value for a header.
  • remove (boolean)
    Remove the header.
  • rename (string)
    New name for a header.
Shorthand Syntax
{
  modify-request-headers = [
    {
      name = string,
      operation = append=string | remove=boolean | rename=string | replace=string
    }, ...
  ],
  modify-response-headers = [
    {
      name = string,
      operation = append=string | remove=boolean | rename=string | replace=string
    }, ...
  ]
}
JSON Syntax
{
  "modify-request-headers": [
    {
      "name": "string",
      "operation": {
        "append": "string",
        "remove": "boolean",
        "rename": "string",
        "replace": "string"
      }
    }, ...
  ],
  "modify-response-headers": [
    {
      "name": "string",
      "operation": {
        "append": "string",
        "remove": "boolean",
        "rename": "string",
        "replace": "string"
      }
    }, ...
  ]
}

--async

Display information about the operation in progress, without waiting for the operation to complete.

-r, --request-file

string

Path to a request file.

--example-json

Generates a JSON template of the request.

-e, --example-yaml

Generates a YAML template of the request.

The template can be customized and used as input for the command.

Usage example:

  1. Generate template:
    yc smartwebsecurity load-balancer load-balancer update --example-json > request.json
    or
    yc smartwebsecurity load-balancer load-balancer update --example-yaml > request.yaml

  2. Edit the template file

  3. Run with template:
    yc smartwebsecurity load-balancer load-balancer update -r request.json
    or
    yc smartwebsecurity load-balancer load-balancer update -r request.yaml

Global FlagsGlobal Flags

Flag

Description

--profile

string

Set the custom profile.

--region

string

Set the region.

--cloud-id

string

Set the ID of the cloud to use.

--folder-id

string

Set the ID of the folder to use.

--folder-name

string

Set the name of the folder to use (will be resolved to id).

--debug

Debug logging.

--debug-grpc

Debug gRPC logging. Very verbose, used for debugging connection problems.

--no-user-output

Disable printing user intended output to stderr.

--pager

string

Set the custom pager.

--no-pager

Do not pipe help output through a pager.

--format

string

Set the output format: text, yaml, json, table, summary || summary[name, instance.id, instance.disks[0].size].

--retry

int

Enable gRPC retries. By default, retries are enabled with maximum 5 attempts.
Pass 0 to disable retries. Pass any negative value for infinite retries.
Even infinite retries are capped with 2 minutes timeout.

--timeout

string

Set the timeout.

--token

string

Set the IAM token to use.

--impersonate-service-account-id

string

Set the ID of the service account to impersonate.

--no-browser

Disable opening browser for authentication.

--query

string

Query to select values from the response using jq syntax

--print-metadata

Print operation metadata along with result.

--syntax

string

Choose syntax option.

--cli-auto-prompt

string[="on"]

Enable interactive auto-prompt mode. Values: on, partial, off. Bare --cli-auto-prompt is equivalent to --cli-auto-prompt=on.

--no-cli-auto-prompt

Disable interactive auto-prompt mode (overrides --cli-auto-prompt, env and profile).

-h, --help

Display help for the command.

Была ли статья полезна?

Предыдущая
stop
Следующая
Overview
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»