x-yc-apigateway-integration:cloud_functions extension
The x-yc-apigateway-integration:cloud_functions
extension invokes the specified function. The function receives information about the HTTP request as input and returns the result of function execution to the client. The request data is transmitted in the same format as that of the current version of HTTP-integration when invoking the function with the integration=raw
request string parameter that is most compatible with the AWS API Gateway format.
Supported parameters
The table below lists the parameters specific to API Gateway API gateways. Read more about other parameters in the OpenAPI Specification 3.0.
Parameter | Type | Description |
---|---|---|
function_id |
string |
Function ID. |
tag |
string |
Optional parameter. Function version tag. The default value is $latest . Parameters are substituted in tag . |
service_account_id |
string |
ID of the service account used for authorization when accessing the function. If the parameter is omitted, the value of the top-level service_account_id parameter is used. If there is no top-level parameter, the function is invoked without authorization. |
Extension specification
Sample specification:
x-yc-apigateway-integration:
type: cloud_functions
function_id: b095c95icnvbuf4v755l
tag: stable
service_account_id: ajehfe41hhliq4n93q1g