Yandex Cloud
  • Сервисы
  • Решения
  • Почему Yandex Cloud
  • Сообщество
  • Тарифы
  • Документация
  • Связаться с нами
Подключиться
Language / Region
Проект Яндекса
© 2023 ООО «Яндекс.Облако»
Yandex Cloud Functions
  • Сопоставление с другими сервисами Yandex Cloud
  • Начало работы
  • Пошаговые инструкции
  • Концепции
  • Разработка на Node.js
  • Разработка на Python
  • Разработка на Go
  • Разработка на PHP
  • Разработка на Bash
  • Разработка на Java
  • Разработка на R
  • Разработка на C#
  • Практические руководства
  • Правила тарификации
  • Управление доступом
  • Справочник API Functions
    • Аутентификация в API
    • gRPC (англ.)
    • REST (англ.)
      • Overview
      • Function
        • Overview
        • create
        • createVersion
        • delete
        • get
        • getVersion
        • getVersionByTag
        • list
        • listAccessBindings
        • listOperations
        • listRuntimes
        • listScalingPolicies
        • listTagHistory
        • listVersions
        • removeScalingPolicy
        • removeTag
        • setAccessBindings
        • setScalingPolicy
        • setTag
        • update
        • updateAccessBindings
  • Справочник API Triggers
  • Вопросы и ответы
  1. Справочник API Functions
  2. REST (англ.)
  3. Function
  4. Overview

Cloud Functions Service, REST: Function methods

Статья создана
Yandex Cloud
  • JSON Representation
  • Methods

A set of methods for managing serverless functions.

JSON Representation

{
  "id": "string",
  "folderId": "string",
  "createdAt": "string",
  "name": "string",
  "description": "string",
  "labels": "object",
  "logGroupId": "string",
  "httpInvokeUrl": "string",
  "status": "string"
}
Field Description
id string

ID of the function. Generated at creation time.

folderId string

ID of the folder that the function belongs to.

createdAt string (date-time)

Creation timestamp for the function.

String in RFC3339 text format. The range of possible values is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

name string

Name of the function. The name is unique within the folder.

The string length in characters must be 3-63.

description string

Description of the function.

The string length in characters must be 0-256.

labels object

Function labels as key:value pairs.

No more than 64 per resource.

logGroupId string

ID of the log group for the function.

httpInvokeUrl string

URL that needs to be requested to invoke the function.

status string

Status of the function.

  • CREATING: Function is being created.
  • ACTIVE: Function is ready to be invoked.
  • DELETING: Function is being deleted.
  • ERROR: Function failed.

Methods

Method Description
create Creates a function in the specified folder.
createVersion Creates a version for the specified function.
delete Deletes the specified function.
get Returns the specified function.
getVersion Returns the specified version of a function.
getVersionByTag Returns all versions with the specified tag.
list Retrieves the list of functions in the specified folder.
listAccessBindings Lists existing access bindings for the specified function.
listOperations Lists operations for the specified function.
listRuntimes Lists available runtime environments for the specified function.
listScalingPolicies Lists existing scaling policies for specified function
listTagHistory Returns the log of tags assigned to versions of the specified function.
listVersions Retrieves the list of versions for the specified function, or of all function versions in the specified folder.
removeScalingPolicy Remove scaling policy for specified function and tag
removeTag Remove a tag from the specified version of a function.
setAccessBindings Sets access bindings for the function.
setScalingPolicy Set scaling policy for specified function and tag
setTag Set a tag for the specified version of a function.
update Updates the specified function.
updateAccessBindings Updates access bindings for the specified function.

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

Language / Region
Проект Яндекса
© 2023 ООО «Яндекс.Облако»
В этой статье:
  • JSON Representation
  • Methods