Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
Yandex Serverless Containers
  • Comparison with other Yandex Cloud services
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Getting an IAM token for a service account using a container
    • Getting information about a container
    • Managing rights to access a container
    • Creating a container
    • Invoking a container
    • Managing a container
    • Getting information about a trigger
    • Creating a trigger
    • Managing triggers
      • Updating a trigger
        • Updating a name
        • Updating a description
      • Viewing monitoring charts
      • Deleting a trigger
  • Concepts
  • Practical guidelines
  • Access management
  • Pricing policy
  • Containers API reference
  • API Triggers reference
  • Questions and answers
  1. Step-by-step instructions
  2. Managing triggers
  3. Updating a trigger
  4. Updating a name

Changing the name of a trigger in Serverless Containers

Written by
Yandex Cloud
    Management console
    CLI
    API
    1. In the management console, select the folder containing your trigger.
    2. Open Serverless Containers.
    3. On the left-hand panel, select Triggers.
    4. Select the trigger whose name you want to update.
    5. In the upper-right corner of the page, click Edit.
    6. Edit the name and click Save.

    If you don't have the Yandex Cloud command line interface yet, install and initialize it.

    The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

    To find out the name or unique ID of a trigger, get a list of triggers in the folder.

    To change the trigger name, run this command:

    yc serverless trigger update <trigger_name> --new-name <new_trigger_name>
    

    Result:

    id: a1sfe084v4**********
    folder_id: b1g88tflru**********
    created_at: "2022-12-04T08:45:31.131391Z"
    name: my-trigger
    rule:
      mail:
        email: a1s8h8avgl**********-cho1****@serverless.yandexcloud.net
        invoke_container:
          container_id: bba5jb38o8**********
          service_account_id: aje03adgd2**********
          retry_settings:
            retry_attempts: "1"
            interval: 10s
          dead_letter_queue:
            queue-id: yrn:yc:ymq:ru-central1:b1gmit33ng**********:dlq
            service-account-id: aje3lebfem**********
    status: ACTIVE
    

    You can change the trigger name using the update API method.

    Was the article helpful?

    Language / Region
    Yandex project
    © 2023 Yandex.Cloud LLC