---
title: "POST /v1/{+parent}/metadataImports"
method: POST
path: "/v1/{+parent}/metadataImports"
tags: ["projects"]
---

# POST /v1/{+parent}/metadataImports

`POST /v1/{+parent}/metadataImports`

Creates a new MetadataImport in a given project and location.

## Path parameters

- `parent` string, required

## Query parameters

- `metadataImportId` string
- `requestId` string

## Request body

- MetadataImport — A metastore resource that imports metadata.
  - `description` string — Optional. The description of the metadata import.
  - `createTime` string, google-datetime — Output only. The time when the metadata import was started.
  - `databaseDump` DatabaseDump — A specification of the location of and metadata about a database dump from a relational database management system.
    - `type` 'TYPE_UNSPECIFIED' | 'MYSQL' | 'AVRO' — Optional. The type of the database dump. If unspecified, defaults to MYSQL.
    - `sourceDatabase` string — Optional. The name of the source database.
    - `databaseType` 'DATABASE_TYPE_UNSPECIFIED' | 'MYSQL' — The type of the database.
    - `gcsUri` string — Optional. A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
  - `name` string — Immutable. Identifier. The relative resource name of the metadata import, of the form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
  - `endTime` string, google-datetime — Output only. The time when the metadata import finished.
  - `updateTime` string, google-datetime — Output only. The time when the metadata import was last updated.
  - `state` 'STATE_UNSPECIFIED' | 'RUNNING' | 'SUCCEEDED' | 'UPDATING' | 'FAILED' — Output only. The current state of the metadata import.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/metastore.md) · [All operations](https://skmtc.net/google/apis/metastore/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/metastore/versions/303a0939d73e/schema)
