Adding the x-yc-apigateway-integration:cloud_ydb extenison
Written by
Updated at July 14, 2025
Management console
-
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.
-
Service account: Service account for authorization when accessing the database. If you do not have a service account, create one.
-
Database: Database name.
-
Table: Name of the table the operation will be performed on.
-
Action: Operation type and its relevant parameters:
-
PutItem
. -
GetItem
:- Key: Primary key of the element the operation will be performed on.
-
UpdateItem
:- Key: Primary key of the element the operation will be performed on.
- Update expression: Expression that specifies the attributes to update and how to do it.
- Optionally, Alias: Alias that can be used in the update expression instead of the attribute value. It must start with a colon (
:
).
-
DeleteItem
:- Key: Primary key of the element the operation will be performed on.
-
Scan
:- Optionally, Limit: Maximum number of elements read.
- Optionally, Exclusive element key: Primary key of the element the search should start from.
-
- 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.