http://POWebServer.com/SASProcessOrchestration/rest/executions/run?path= /Shared%20Data/Subfolder1/Orch%20Job1
cURL -v -b --location-trusted -u "ETLGuest:pw1" -H "Accept:application/json" -H "Content-Type:application/json" --url "http://POWebServer.com/SASProcessOrchestration/rest/executions/run?path= /Shared%20Data/Subfolder1/Orch%20Job1" -X POST
http://POWebServer.com/SASProcessOrchestration/rest/ executions/1375318231:1419:ETLGuest
cURL -v -b --location-trusted -u "ETLGuest:pw1" -H "Accept:application/json" -H "Content-Type:application/json" --url "http://POWebServer.com/SASProcessOrchestration/rest/ executions/1375318231:1419:ETLGuest"
http://POWebServer.com/SASProcessOrchestration/rest/executions/run?path= /Shared%20Data/Subfolder1/Orch%20Job1
Component
|
Description
|
---|---|
POWebServer.com
|
Name of the web server
for SAS Visual Process Orchestration. The default port for the web
server is port 80. Port 80 is used unless the default port for the
web server was changed during installation. If you changed the default
web server port, specify that port, like so: POWebServer.com:7880.
|
/SASProcessOrchestration/rest/
|
Default path to the
folder on the web host that contains the REST-based service.
|
executions/run?
|
The executions/run command
is used to run orchestration jobs. For a description
of the main commands that are used to manage jobs, see
Overview of the REST API .
|
path=
|
Path to the orchestration
job to be executed. Jobs can be stored in any convenient folder in
the SAS Folders tree on the SAS Visual Process Orchestration Design
Server.
|
Shared%20Data
|
The Shared
Data folder in the SAS Folders tree. The “%20”
characters in this example are used to encode a space in the context
of a URI.
|
Subfolder1
|
Example subfolder where
orchestration jobs are stored. The person who runs the job must have
access to the folder.
|
Orch%20Job1
|
Name of the orchestration
job to be executed.
|
cURL -v -b --location-trusted -u "ETLGuest:pw1" -H "Accept:application/json" -H "Content-Type:application/json" --url "http://POWebServer.com/SASProcessOrchestration/rest/executions/run?path= /Shared%20Data/Subfolder1/Orch%20Job1" -X POST
Option
|
Purpose
|
---|---|
-v
|
Verbose logging. Used
to log as much information as possible if debugging is necessary.
|
-b
|
Passes data to the HTTP
server as a cookie.
|
--location-trusted
|
Sends the user's
information to all of the hosts that the site might redirect to.
Note: cURL option names that are
two or more characters long must be preceded by two hyphens (--).
This enables cURL to distinguish between a one-character option name
(such as -u) from a multiple character option name (such as --location-trusted).
|
-u
|
The user ID and password
that are required to run the orchestration job. The user ID that executes
an orchestration job must have the RunJobs capability.
|
-H
|
An extra header used
when retrieving your job. This option enables you to add as many headers
as needed. You are also allowed to use this option to overwrite any
internal headers that are defaulted if you do not add your own.
Note: The response from the job
is in XML format unless you specify JSON in the header, as shown in
the example cURL command.
|
--url
|
The URL to the web service
that executes an orchestration job. The
path is
the folder path to the orchestration job on the SAS Visual Process
Orchestration Design Server.
Note: cURL option names that are
two or more characters long must be preceded by two hyphens (--).
|
-X POST
|
Specifies which request
method you want to use. The POST method is used to execute jobs. GET
is the default method if there is no specified method.
|
Task
|
REST API Commands
|
Method
|
Optional Parameters
|
---|---|---|---|
Run orchestration jobs.
|
"/executions/run"
|
POST
|
|
Note: The user ID that executes
an orchestration job must have the RunJobs capability. For information
about capabilities for orchestration jobs, see
Default Groups, Roles, and Capabilities.
|
|||
Stop an orchestration
job that is running.
|
"/executions/{id}/stop"
|
POST
|
|
Get the status for a
single job run, identified by ID.
|
"/executions/{id}"
|
GET
|
The following job status
codes are returned by the "/executions/{id}" command: COMPLETE,
CRASHED, ERROR_UNSPECIFIED, QUEUED, RUNNING, SUBMITTED, UNKNOWN_JOB_STATUS_CODE,
USER_TERMINATED.
|
Get the log for a job
identified by ID.
|
"/executions/{id}/log"
|
GET
|
|