Invoking Test Data Management REST APIs Using cURL

Invoking Test Data Management REST APIs Using cURL

Import Source Metadata into the Project

Import Source Metadata into the Project

To use the required source metadata, you must import the source metadata into the project.
You can run the
/tdm/v1/projects/{projectId}/metadata/connection
API to import the source metadata from the required connection.
  1. Enter the following cURL API request:
    curl -X POST "http://<host>:<port>/api/public/tdm/v1/projects/2412/metdata/connection" -H "accept: application/json" -H "authorization: Basic TmF0aXZlL0FkbWluaXN0cmF0b3I6QWRtaW5pc3RyYXRvcg==" -H "Content-Type: application/json" -d "{ \"connectionId\": \"U:-1kjBTQOEemYiOETycM8Kg\", \"datasources\": [ { \"name\": \"DB01\", \"sources\": [ { \"name\": \"BONUS\" } ] } ], \"schedule\": 0}"
  2. Press Enter.
  3. Review the response to verify the job status.
    The following code is the response that the sample request returns:
    {"id":3217,"name":"Import from Source","description":"Connection: DB01","status":"In Queue","start_date":0,"end_date":0,"job_type":"Import from Ssource", "created_by_name":"Native/Administrator", "creation_date":1561618571574, "creation_date_str":"06/27/2019 12:26:11 PM", "last_updated_date":1561618571574, "last_updated_date_str":"06/27/2019 12:26:11 PM", "last_updated_by_name":"Native/Administrator", "schedule_on":0, "paused_at_step":0, "percent_complete":0, "job_action_type":null, "child_job_id":-1}
The BONUS source metadata from DB01 schema in the DB01 connection is imported into the
Project_RestAPI01
project.

0 COMMENTS

We’d like to hear from you!