REST API Reference

REST API Reference

Metadata/pcrepo

Metadata/pcrepo

The POST metadata/pcrepo request imports metadata from a folder in the PowerCenter repository into a project in Test Data Manager.

Resource URL

/tdm/v1/projects/{projectId}/metadata/pcrepo

HTTP Request

POST http(s)://
<host>
:
<port>
/api/public/tdm/v1/projects/{projectId}/metadata/pcrepo

Request Header

The request header includes the following headers:
Header
Description
accept
Use the following value:
application/json
Authorization
Required. Use the following value:
Basic <user name>

Request Body

The request body includes the following properties as form data:
Property
Data Type
Description
projectId
Integer
ID of the project into which you want to import the metadata.
datasources
String
Enter the following details:
  • folderName. String. Name of the folder in the PowerCenter repository from which you want to import metadata.
  • name. String. Schema name.
  • sources. For each source that you want to import enter the following property:
    • name. String. Name of the table.
schedule
Boolean
Default is 0 and runs the job immediately.

Sample Request

POST http://<host>:6605/api/public/tdm/v1/projects/201/metadata/pcrepo

Sample Request Body

{ "folderName": "CI_TEST_FOLDER", "datasources": [ { "name": "FlatFile", "sources": [ { "name": "EMPLOYEEBANKDETAILS" } ] } ], "schedule": 0 }

Sample Response

{ "id": 202, "name": "Import from PC", "description": "Folder: CI_TEST_FOLDER", "status": "In Queue", "start_date": 0, "end_date": 0, "job_type": "Import from PC", "created_by_name": null, "creation_date": 1553503994089, "creation_date_str": "03/25/2019 02:23:14 PM", "last_updated_date": 1553503994089, "last_updated_date_str": "03/25/2019 02:23:14 PM", "last_updated_by_name": null, "schedule_on": 0, "paused_at_step": 0, "percent_complete": 0, "job_action_type": null, "child_job_id": -1 }
You can view the imported metadata in Test Data Manager.

0 COMMENTS

We’d like to hear from you!