Adding the x-yc-apigateway-integration:http extension
-
In the management console
, select the folder in which you created or want to create an API gateway. -
Navigate to API Gateway.
-
Select an API gateway or click Create API gateway to create a new one.
-
Click
Edit. -
In the Specification field, click
. -
Specify the following:
- Path: Integration relative path to add to the API Gateway URL. Remember to wrap variables in braces, e.g.,
/static/{function_id}. For more information, see the OpenAPI 3.0 specification. - HTTP method: Method to use to work with the integration.
-
Optionally, Service account: Service account to use for authorization when accessing the Yandex Cloud API. If you do not have a service account, create one.
-
URL: URL to redirect the invocation to. It must be accessible from the internet.
-
Optionally, Method: HTTP method to use for the invocation. If you skip this parameter, the method specified in the HTTP method field will be used.
-
Optionally, HTTP headers: HTTP headers to provide in the request.
Enable Original request headers. By default, all headers of the original request, except
User-Agent, are not provided.
Enable Empty headers if required. By default, empty HTTP headers are provided.
-
Optionally, Query parameters: Query parameters to provide in the request.
Enable Original request query parameters. By default, the query parameters of the original request are not provided.
Enable Empty query parameters if required. By default, empty query parameters are provided.
- Optionally, Read timeout: Invocation read timeout in seconds.
- Optionally, Connect timeout: Connection timeout for the invocation in seconds.
- Path: Integration relative path to add to the API Gateway URL. Remember to wrap variables in braces, e.g.,
-
Click Add.
The Specification field will display the OpenAPI specification with the specified parameter values.