Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Solutions
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Cloud Functions
  • Getting started
    • Overview
    • Creating a function
      • Overview
      • Python
      • Node.js
      • PHP
      • Go
      • Bash
    • Creating a trigger
      • Overview
      • Timer
      • Trigger for Message Queue
      • Trigger for Object Storage
      • Trigger for Container Registry
      • Trigger for Cloud Logs
      • Trigger for Yandex IoT Core
  • Step-by-step instructions
    • All instructions
    • Using functions to get an IAM token for a service account
    • Managing rights to access functions
    • Managing functions
      • Creating a function
      • Managing function versions
      • Working in the code editor
      • Invoking a function
      • Updating a function
      • View monitoring charts
      • Viewing the execution log
      • Delete function
    • Managing triggers
      • Getting information about a trigger
      • Creating a timer
      • Creating a trigger for Message Queue
      • Creating a trigger for Object Storage
      • Creating a trigger for Container Registry
      • Creating a trigger for Cloud Logs
      • Creating a trigger for Yandex IoT Core
      • Updating a trigger
      • Deleting a trigger
  • Concepts
    • Overview
    • Function
    • Invoking a function
    • Runtime environment
      • Overview
      • Environment
      • Execution context
    • Builder
    • Trigger
      • Overview
      • Timer
      • Trigger for Message Queue
      • Trigger for Object Storage
      • Trigger for Container Registry
      • Trigger for Cloud Logs
      • Trigger for Yandex IoT Core
    • Dead Letter Queue
    • Log groups
    • Monitoring
    • Backups
    • Quotas and limits
  • Developing in Node.js
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in Python
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in Go
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in PHP
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
  • Developing in Bash
    • Overview
    • Request handler
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in Java
    • Overview
    • Programming model
      • Overview
      • Function interface
      • YcFunction interface
      • HttpServlet class
      • Spring Boot
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Developing in R
    • Overview
    • Programming model
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
  • Developing in C#
    • Overview
    • Programming model
      • Overview
      • Function interface
      • YcFunction interface
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Use cases
    • Creating skills for Alice
  • Pricing policy
  • Access management
  • API Functions reference
    • Authentication in the API
    • gRPC
      • Overview
      • FunctionService
      • OperationService
    • REST
      • Overview
      • Function
        • Overview
        • create
        • createVersion
        • delete
        • get
        • getVersion
        • getVersionByTag
        • list
        • listAccessBindings
        • listOperations
        • listRuntimes
        • listTagHistory
        • listVersions
        • removeTag
        • setAccessBindings
        • setTag
        • update
        • updateAccessBindings
  • API Triggers reference
    • Authentication in the API
    • gRPC
      • Overview
      • TriggerService
      • OperationService
    • REST
      • Overview
      • Trigger
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • pause
        • resume
        • update
  • Questions and answers
  1. Step-by-step instructions
  2. Managing functions
  3. Updating a function

Updating a function

  • Changing the name of a function
  • Updating the description of a function
  • Managing function labels
    • Adding a label
    • Updating a label
    • Deleting a label

You can change the name and description of a function as well as manage function labels. To change the code or operation parameters of a function, create a new version of the function.

To access a function, use its name or unique ID. To find them, get a list of functions in a folder.

Changing the name of a function

Management console
CLI
API
  1. In the management console, go to the folder where you want to change the name of a function.
  2. Open Cloud Functions.
  3. Select a function.
  4. In the upper-right corner, click Edit.
  5. In the window that opens, enter the desired function name.
  6. 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 change the function name, run the command:

yc serverless function update <function name> --new-name <new function name>

Result:

id: b097d9ous3gep99khe83
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-06-06T11:36:48.688Z"
name: my-beta-function
labels:
 test: test
log_group_id: eolv6578frac08uh5h6s
http_invoke_url: https://functions.yandexcloud.net/b097d9ous3gep99khe83
status: ACTIVE

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

Updating the description of a function

Management console
CLI
API
  1. In the management console, go to the folder where you want to change the description of a function.
  2. Open Cloud Functions.
  3. Select a function.
  4. In the upper-right corner, click Edit.
  5. In the window that opens, enter the description of the function.
  6. 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 update the description of a function, run the command:

yc serverless function update <function name> --description "<function description>"

Result:

id: b097d9ous3gep99khe83
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-06-06T11:36:48.688Z"
name: my-beta-function
description: My beta function.
labels:
  test: test
log_group_id: eolv6578frac08uh5h6s
http_invoke_url: https://functions.yandexcloud.net/b097d9ous3gep99khe83
status: ACTIVE

You can update the description of a function using the API method update.

Managing function labels

You can perform the following actions with function labels:

  • Add a label
  • Update a label
  • Delete a label

Adding a label

CLI
API

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 add a label to a function, run the command:

yc serverless function add-labels <function name> --labels <key>=<value>

Result:

id: b097d9ous3gep99khe83
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-06-06T11:36:48.688Z"
name: my-beta-function
description: My beta function.
labels:
  test: test
  version: beta
log_group_id: eolv6578frac08uh5h6s
http_invoke_url: https://functions.yandexcloud.net/b097d9ous3gep99khe83
status: ACTIVE

You can add a label to a function using the API method update.

Updating a label

CLI
API

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 update a label of a function, run the command:

Warning

The existing set of labels is completely replaced by the set transmitted.

yc serverless function update <function name> --labels <key>=<value>

Result:

id: b097d9ous3gep99khe83
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-06-06T11:36:48.688Z"
name: my-beta-function
description: My beta function.
labels:
  new_labels: my-beta-function
log_group_id: eolv6578frac08uh5h6s
http_invoke_url: https://functions.yandexcloud.net/b097d9ous3gep99khe83

You can edit labels of a function using the API method update.

Deleting a label

CLI
API

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 delete a function label, run the command:

yc serverless function remove-labels <function name> --labels <key>

Result:

id: b097d9ous3gep99khe83
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-06-06T11:36:48.688Z"
name: my-beta-function
description: My beta function.
labels:
  version: beta
log_group_id: eolv6578frac08uh5h6s
http_invoke_url: https://functions.yandexcloud.net/b097d9ous3gep99khe83
status: ACTIVE

You can delete a function label using the API method update.

In this article:
  • Changing the name of a function
  • Updating the description of a function
  • Managing function labels
  • Adding a label
  • Updating a label
  • Deleting a label
Language / Region
Careers
Privacy policy
Terms of use
Brandbook
© 2021 Yandex.Cloud LLC