Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • 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
    • Education and Science
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Application Load Balancer
  • Getting started
    • All guides
    • Creating Application Load Balancer infrastructure through a wizard
      • Creating an L7 load balancer
      • Editing an L7 load balancer
      • Getting information about an L7 load balancer
      • Viewing L7 load balancer statistics
      • Viewing L7 load balancer logs
      • Setting up L7 load balancer logging
      • Getting a log group ID of an L7 load balancer
      • Stopping and starting an L7 load balancer
      • Moving a VM to a target group in a different availability zone
        • Allowing and denying zonal shift
        • Enabling and disabling availability zones
      • Deleting an L7 load balancer
    • Viewing service resource operations
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • L7 load balancer logs
  • Release notes

In this article:

  • Enabling traffic transfer
  • Disabling traffic transfer
  1. Step-by-step guides
  2. L7 load balancers
  3. Availability zone management
  4. Enabling and disabling availability zones

Enabling and disabling traffic transfer from an availability zone

Written by
Yandex Cloud
Updated at July 22, 2025
  • Enabling traffic transfer
  • Disabling traffic transfer

If there is maintenance or issues in one of the availability zones, Yandex Cloud technicians can redirect traffic to other zones. You can test this process, to see how traffic transfer works.

Enabling traffic transferEnabling traffic transfer

CLI
API

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

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the description of the command to enable traffic transfer from an availability zone:

    yc application-load-balancer load-balancer disable-zones --help
    
  2. Get a list of all L7 load balancers in the default folder:

    yc application-load-balancer load-balancer list
    

    Result:

    +----------------------+-----------------------+-------------+----------------+---------+
    |          ID          |         NAME          |  REGION ID  | LISTENER COUNT | STATUS  |
    +----------------------+-----------------------+-------------+----------------+---------+
    | ds70q425egoe******** |      my-balancer      | ru-central1 |              1 |  ACTIVE |
    | f3da23i86n2v******** |      new-balancer     | ru-central1 |              1 |  ACTIVE |
    +----------------------+-----------------------+-------------+----------------+---------+
    
  3. Enable traffic transfer:

    yc application-load-balancer load-balancer disable-zones \
      <load_balancer_name_or_ID> \
      --zones <availability_zones>
    

    Result:

    id: ds70q425egoe********
    name: my-balancer
    ...
    allocation_policy:
      locations:
        - zone_id: ru-central1-b
          subnet_id: e2lptlobccu6********
        - zone_id: ru-central1-a
          subnet_id: e9bo5ir5prfi********
          zonal_shift_active: true
    ...
    

To enable traffic transfer, use the startZonalShift REST API method for the LoadBalancer resource or the LoadBalancerService/StartZonalShift gRPC API call.

Disabling traffic transferDisabling traffic transfer

CLI
API

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

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the description of the command to disable traffic transfer from an availability zone:

    yc application-load-balancer load-balancer enable-zones --help
    
  2. Get a list of all L7 load balancers in the default folder:

    yc application-load-balancer load-balancer list
    

    Result:

    +----------------------+-----------------------+-------------+----------------+---------+
    |          ID          |         NAME          |  REGION ID  | LISTENER COUNT | STATUS  |
    +----------------------+-----------------------+-------------+----------------+---------+
    | ds70q425egoe******** |      my-balancer      | ru-central1 |              1 |  ACTIVE |
    | f3da23i86n2v******** |      new-balancer     | ru-central1 |              1 |  ACTIVE |
    +----------------------+-----------------------+-------------+----------------+---------+
    
  3. Disable traffic transfer:

    yc application-load-balancer load-balancer enable-zones \
      <load_balancer_name_or_ID> \
      --zones <availability_zones>
    

    Result:

    id: ds70q425egoe********
    name: my-balancer
    ...
    allocation_policy:
      locations:
        - zone_id: ru-central1-b
          subnet_id: e2lptlobccu6********
        - zone_id: ru-central1-a
          subnet_id: e9bo5ir5prfi********
    ...
    

To disable traffic transfer, use the cancelZonalShift REST API method for the LoadBalancer resource or the LoadBalancerService/CancelZonalShift gRPC API call.

Was the article helpful?

Previous
Allowing and denying zonal shift
Next
Deleting an L7 load balancer
© 2025 Direct Cursus Technology L.L.C.