I need to trigger a ADF Pipeline via REST API and pass a parameter in order to execute the pipeline for the given ID (parameter). With sparse documentation around this, I am unable to figure out how to pass parameters to the URL
Sample:
https://management.azure.com/subscriptions/asdc57878-77fg-fb1e8-7b06-7b0698bfb1e8/resourceGroups/dev-rg/providers/Microsoft.DataFactory/factories/df-datafactory-dev/pipelines/pl_StartProcessing/createRun?api-version=2018-06-01 I tried to send parmaters in the request body but I get the following message depending on how params are sent
{ "message": "The request entity's media type 'text/plain' is not supported for this resource." } I tried using python requests :
import requests url = "https://management.azure.com/subscriptions/adsad-asdasd-adasd-adasda-adada/resourceGroups/dev-rg/providers/Microsoft.DataFactory/factories/datafactory-dev/pipelines/pl_Processing/createRun?api-version=2018-06-01" payload = " \"parameters\": {\r\n “stateID”: “78787878”\r\n}" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer adsasdasdsad' } response = requests.request("POST", url, headers=headers, data = payload) print(response.text.encode('utf8')) I tried to put the parameter in the payload (body)
given IDyou meanreferencePipelineRunId? Could you show your complete request sample, Including the body?