search cancel

Object activated through cURL via REST call does not start.

book

Article ID: 240142

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

An object started through the Automation Engine REST API via cURL gets the following exception.

 

[[email protected] ~]$ curl GET -u AUTOMIC/AUTOMIC -H 'content-type: application/json' -d '{"object_name":"JOBS.UNIX.33085289}' http://AE_Server:8088/ae/apiv1/0100/executions
Enter host password for user 'AUTOMIC/AUTOMIC':
curl: (6) Could not resolve host: GET
{
  "code" : 45106,
  "error" : "The request is invalid and cannot be processed by the Automation Engine.",
  "details" : "No detail information available."
}

Environment

Release : 12.3.7

Component : AUTOMATION ENGINE

Cause

Typo.

Resolution

The object name was missing the closing ". Once the syntax is changing the object executes as expected:

curl GET -u AUTOMIC/AUTOMIC -H 'content-type: application/json' -d '{"object_name":"JOBS.UNIX.33085289"}' http://AE_Server:8088/ae/apiv1/0100/executions
Enter host password for user 'AUTOMIC/AUTOMIC':
curl: (6) Could not resolve host: GET
{
  "run_id" : 1230347
}