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]$

    Name of the function to invoke

Query Parameters

    webfn string

    Possible values: [true]

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

Header Parameters

    X-Qualifier string

    Specify the function version to invoke. If omitted, the request follows the canary release rules.

    X-Tcb-Webfn string

    Possible values: [true]

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

Body

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

    property name* any

Responses

Returned when the invocation succeeds

Response Headers
  • X-Request-Id string

    Request ID

Schema
    property name* any
Loading...