Skip to main content

Invoke Cloud Function

POST 

/v1/functions/:name

Invoke the specified cloud function.

Request

Path Parameters

    name stringrequired

    Possible values: Value must match regular expression ^[a-zA-Z][a-zA-Z0-9_-]{0,58}[a-zA-Z0-9]$

    The name of the function to be invoked

Query Parameters

    webfn string

    Possible values: [true]

    Set to true when invoking a web function. Choose either this parameter or the header parameter X-Tcb-Webfn=true.

Header Parameters

    X-Qualifier string

    Specifies the function version to invoke. If not provided, the function will be invoked according to grayscale rules.

    X-Tcb-Webfn string

    Possible values: [true]

    Set to true when invoking a web function. Choose either this header or the query parameter webfn=true.

Body

Request parameters for invoking the function. The request parameters must be a JSON object.

    property name* any

Responses

Returned on success

Response Headers
  • X-Request-Id string

    Request ID

Schema
    property name* any
Loading...