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. -
In the list of services, select API Gateway.
-
Select an API gateway or click Create API gateway to create a new one.
-
In the Specification field, click
. -
Specify the following in the field:
- 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.
-
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 Send original query headers. By default, the HTTP headers of the original request are not provided.
-
Optionally, Query parameters: Query parameters to provide in the request.
Enable Send original query parameters. By default, the query parameters of the original request are not 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.,
-
Optionally, enable Omit empty headers. By default, empty headers are provided.
-
Optionally, enable Omit empty query parameters. By default, empty query parameters are provided.
-
Click Add.
The Specification field will display the OpenAPI specification with the specified parameter values.