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: Relative path to the integration that will be added to API Gateway URL. Specify variables in curly braces, e.g.,
/static/{function_id}
. For more information, see the OpenAPI 3.0 specification. - HTTP method: Method that will be used to work with the integration.
-
URL: URL to redirect the invocation to. It must be accessible from the internet.
-
(Optional) Method: HTTP method to be used for the invocation. If you skip this parameter, the method specified in the HTTP method field will be used.
-
(Optional) HTTP headers: HTTP headers to be provided in the request.
Enable the Send HTTP headers of the original request option. By default, the HTTP headers of the original request are not sent.
-
(Optional) Query parameters: Query parameters to be provided in the request.
Enable the Send query parameters of the original request option. By default, the query parameters of the original request are not sent.
-
(Optional) Read timeout: Invocation read timeout in seconds.
-
(Optional) Connection timeout: Connection timeout for the invocation in seconds.
- Path: Relative path to the integration that will be added to API Gateway URL. Specify variables in curly braces, e.g.,
-
(Optional) Enable the Do not send empty headers option. By default, empty headers are sent.
-
(Optional) Enable the Do not send empty query parameters. By default, empty query parameters are sent.
-
Click Add.
The Specification field will display the OpenAPI specification with the specified parameter values.