AnsweredAssumed Answered

Is there a vara type that does not strip the quotes?

Question asked by mitchell.feldman on Sep 19, 2018
Latest reply on Oct 12, 2018 by Luu Le

ASO 12.1.2

 

https://docs.automic.com/documentation/webhelp/english/ARA/12.1/DOCU/12.1/ARA%20Guides/Default.htm#REST%20API/AE_REST_AP… 

 

I'm calling the AE REST API

 

http://{{host}}:{{port}}/ae/api/v1/100/executions 

 

using the following JSON body:

 

{
"object_name": "JOBP.LAB_NFV_NSO_CHANGE_IP_OF_SERVICE.2",
"inputs": {
"partnerid": "partner_id_v123",
"ip": "1.1.1.1",
"pool": { "name": "sktest-10-06-2017-aws1.ebiz.verizon.com_HAL_pool" }
}
}

 

To launch a workflow.  Then I'm using a promtset (assigned to the workflow) to pass in and assign variables within the workflow.

 

partnerid and ip are easy and work using Data Reference "UC_DATATYPE_STRING".  The variable pool (which is JSON itself) is the problem.  The problem is that when I assign pool using "UC_DATATYPE_STRING", the value as seen via a print is 

2018-09-19 13:33:48 - U00020408 pool = {name=sktest-10-06-2017-aws1.ebiz.verizon.com_HAL_pool

all the quotes get stripped.  WHY?  And more importantly, what vara type can I use where Automic does NOT strip the quotes?

 

In troubleshooting:

I can send this in the body:

 

{
"object_name": "JOBP.LAB_NFV_NSO_CHANGE_IP_OF_SERVICE.2",
"inputs": {
"partnerid": "partner_id_v123",
"ip": "1.1.1.1",
"pool": "{\"name\": \"sktest-10-06-2017-aws1.ebiz.verizon.com_HAL_pool\" }"
}
}

 

and then pool = 

2018-09-19 13:38:05 - U00020408 pool = { "name": "sktest-10-06-2017-aws1.ebiz.verizon.com_HAL_pool" }

 

but this is not legal JSON in the body for pool.  In my real life use case the JSON (from the user interface) is rather large and I don't want to get away from JSON.

 

Soo: what vara type can I use where Automic does NOT strip the quotes?

Outcomes