Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Informatica Intelligent Cloud Services REST API
  3. Platform REST API version 2 resources
  4. Platform REST API version 3 resources
  5. Data Integration REST API
  6. File Ingestion and Replication REST API
  7. Streaming Ingestion and Replication REST API
  8. RunAJob utility
  9. ParamSetCli utility
  10. REST API codes
  11. REST API resource quick references

REST API Reference

REST API Reference

Getting hierarchical mapper metadata

Getting hierarchical mapper metadata

To get metadata about a hierarchical mapper, use a GET request and specify the hierarchical mapper ID.

GET request

Use the following URI to get metadata about a hierarchical mapper:
/h2h/api/v1/idsm/metadata/<hierarchical mapper ID>

GET response

If successful, the response returns the metadata.
The following table describes the fields in the response:
Field
Type
Description
srcSchemaType
String
Source schema type
tgtSchemaType
String
Target schema type
srcSchemaContent
String
Base64-encoded source schema
tgtSchemaContent
String
Base64-encoded target schema
The following table lists the source and target schema types that the response returns based on the asset used to create the hierarchical mapper:
Asset
Schema type
Intelligent structure model
Any
Data service in the data services repository
Native or XML based on whether
Input in Native format
is selected
Hierarchical schema from an XML file
XML
Hierarchical schema from a JSON file
JSON

GET example

The following request gets metadata about a hierarchial mapper:
GET <server URL>/h2h/api/v1/idsm/metadata/<hierarchical mapper ID> Content-Type: application/json Accept: application/json IDS-SESSION-ID: jpaybAKQMsmdt7vLJ02z0
If successful, you might receive the following response:
{ "srcSchemaType": "XML", "tgtSchemaType": "JSON", "srcSchemaContent": "eJzNV+tP2zAQ/85fEWXqJ5RHk1CgoqCKthNSAY3HhvYFuYlLLSV2SNzXtD9+Zz...", "tgtSchemaContent": "eJzNkL0OgjAUhXeegnRm0ZiYuBFlwBA0/q2kylVrUPByHYjh3aVVI2nAusnS3n..." }
The source and target schema values are truncated for brevity.

0 COMMENTS

We’d like to hear from you!