question

developerprashant avatar image
0 Votes"
developerprashant asked KranthiPakala-MSFT commented

How to validate json while creating a pipeline on azure synapse using REST API?

Please suggest ways to validate JSON for the azure synapse pipeline.
For creating a pipeline on azure synapse environment using REST API we have following POST API URL and using this API we can create a pipeline.

{endpoint}/pipelines/{pipelineName}/createRun?api-version=2020-12-01

but this API is returning ok/success type response without checking JSON is valid or not. If you use the same JSON and try to create a pipeline on synapse env this will validate JSON first and then will create a pipeline. It will check provided sources / linked services are present on the server or not. This feature is missing for an API which is available.

We are looking for a such validate method for creating a pipeline. If the above API is returning success response then pipeline should be created there else should return proper error message .

If someone knows how to manage this then please suggest a way to do this.

azure-data-factoryazure-synapse-analytics
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @PrashantRewatkar-4915,

Thanks for the question and using MS Q&A platform.

Yes, unfortunately it is not possible to validate the JSON when you are creating a pipeline using REST API's. But we are reaching out to internal team to check if there any other alternate ways to validate the JSON while creating the resources using REST API's. Will keep you posted as soon as we have an update from the team.

Thanks

0 Votes 0 ·

0 Answers