From dfed82b44ecc9238d1390832b7ae070f8184d207 Mon Sep 17 00:00:00 2001
From: jrybicki-jsc <j.rybicki@fz-juelich.de>
Date: Fri, 29 Oct 2021 10:57:06 +0200
Subject: [PATCH] requests examples with conneciton id

---
 docs/apirequests.adoc | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/docs/apirequests.adoc b/docs/apirequests.adoc
index 5dd6c1b..e2f3905 100644
--- a/docs/apirequests.adoc
+++ b/docs/apirequests.adoc
@@ -20,7 +20,7 @@ curl -X POST -u USER:PASS -H "Content-Type: application/json" \
 
 There should be an object created in B2SHARE, each object in B2SHARE is identified by a +id+, which needs to be passed to the DLS workflow as a parameter (see below).
 
-Also a connection to the SSH target needs to be created (where the data will be copied to):
+Also a connection to the SSH target needs to be created (where the data will be copied to). You are free to use own conneciton name here, and pass it over to during the execution (defult is 'default_ssh')
 
 ----
 curl -X POST -u USER:PASS -H "Content-Type: application/json"  \
@@ -44,6 +44,15 @@ curl -X POST -u USER:PASS -H "Content-Type: application/json" \
    $DLS/dags/taskflow_example/dagRuns
 ----
 
+If you want to use your own connection ('myown_con'):
+----
+curl -X POST -u USER:PASS -H "Content-Type: application/json" \
+   --data '{"conf": {"oid": ID}, "target": PATH, "connection": "myown_con"}' \
+   $DLS/dags/taskflow_example/dagRuns
+----
+
+
+
 === Checking status ===
 ----
 curl -X GET -u USER:PASS -H "Content-Type: application/json" $DLS/dags/taskflow_example/dagRuns
-- 
GitLab