--- title: "DB Tableマッピング (VPC)" slug: "analytics-cloudsearch-postdbuploadmappingvpc" updated: 2026-09-17T09:57:29Z published: 2026-09-17T09:57:29Z canonical: "api.ncloud-docs.com/analytics-cloudsearch-postdbuploadmappingvpc" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # DB Tableマッピング (VPC) userのdbにアクセスしてtable情報を取得した後、cloud searchのschemaに合わせてマッピングして返します。 ``` POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/db_upload/mapping/vpc ``` ## リクエスト ### リクエストパラメータ | パラメータ名 | 必須有無 | タイプ | 制約事項 | 説明 | | --- | --- | --- | --- | --- | | region | Yes | string | リージョンコード | DBサーバが配置されているリージョンコード | ### リクエストボディ | パラメータ名 | 必須有無 | タイプ | 制約事項 | 説明 | | --- | --- | --- | --- | --- | | dbKind | Yes | String | mysql, mariadb | データベースの種類 | | host | Yes | String | | データベースのIP | | port | Yes | Integer | | データベースのポート | | user | Yes | String | | ユーザーID | | password | Yes | String | | パスワード | | db | Yes | String | | データベース名 | | charset | Yes | String | | データベースのキャラクターセット | | table | Yes | String | | データベースのテーブル | | connectTimeout | Yes | Int | | 接続タイムアウト、単位は秒 | ## レスポンス ### レスポンスStatus | HTTP Status | Desc | | --- | --- | | 200 | OK(照会完了) | | 400 | Bad Request | | 401 | Unauthorized | | 403 | Forbidden | | 404 | Not Found | | 500 | Internal Server Error | ### 응답 body [Schema](/docs/common-apidatatype-csschema) ## 例 ### リクエスト例 ``` POST /CloudSearch/real/v1/db_upload/table/vpc Host: cloudsearch.apigw.ntruss.com accept:application/json { "dbKind": "mysql", "host": "1111223", "port": 23306, "user": "root", "password": "Cloudsearch, "db": "test_db", "charset": "utf8", "connectTimeout": 30, "table": "test_data" } ``` ### レスポンス例 ``` { "document": { "sections": [ { "name": "tid" }, { "name": "first_name" }, { "name": "last_name" }, { "name": "gender" }, { "name": "ip_address" }, { "name": "index_type" } ], "indexes": [], "primarySectionName": "tid" } } ```