[Yandex Cloud documentation](../../../index.md) > [Yandex API Gateway](../../index.md) > [Step-by-step guides](../index.md) > [Specification constructor](index.md) > Managed Service for YDB

# Adding the x-yc-apigateway-integration:cloud_ydb extenison

{% list tabs %}

- Management console

    1. In the [management console](https://console.yandex.cloud), select the [folder](../../../resource-manager/concepts/resources-hierarchy.md#folder) in which you created or want to create an [API gateway](../../concepts/index.md).
    1. Navigate to **API Gateway**.
    1. Select an API gateway or click **Create API gateway** to create a new one.
    1. In the **Specification** field, click ![image](../../../_assets/api-gateway/spec-constructor/cloud-ydb.svg).
    1. 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](https://github.com/OAI/OpenAPI-Specification) specification.
        * **HTTP method**: Method to use to work with the integration.

        * **Service account**: Service account for authorization when accessing the [database](../../../ydb/concepts/resources.md#database). If you do not have a service account, [create](../../../iam/operations/sa/create.md) one.
        * **Database**: Database name.
        * **Table**: Name of the table the operation will be performed on.
        * **Action**: [Operation type](../../concepts/extensions/ydb.md#podderzhivaemye-operacii) 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.

    1. Click **Add**.

{% endlist %}

The **Specification** field will display the OpenAPI specification with the specified parameter values.

## Useful links {#see-also}

* [x-yc-apigateway-integration:cloud_ydb extension](../../concepts/extensions/ydb.md)