Batch

Loading...
The Batch API provides a full suite of capabilities for Batch job execution, control, and management, including robust file handling and job monitoring.

Contexts

Contains the operations to create SAS Batch Server definitions.

File Sets

Contains the operations to access information for file sets and files.
head
Check endpoint availability
Internal-Use OnlyDetermines whether an endpoint is currently available.
/fileSets
get
Get a collection of file sets
Internal-Use OnlyReturns a collection of file-set objects that meet the specified query parameters.
/fileSets
post
Create a file set
Internal-Use OnlyCreates a file set to hold files to transport to and from the cluster. The file set object that is passed in, requires only the context ID set.
/fileSets
get
Get a file set object
Internal-Use OnlyReturns the information about the specified file set.
/fileSets/{fileSetId}
head
Verify that a file set exists
Internal-Use OnlyDetermines whether a specified file set exists. Returns headers for the specified file set.
/fileSets/{fileSetId}
delete
Delete a file set
Internal-Use OnlyDeletes the specified file set and its contents.
/fileSets/{fileSetId}
head
Check endpoint availability
Internal-Use OnlyDetermines whether an endpoint is currently available.
/fileSets/{fileSetId}/files
get
Get the contents of a file set
Internal-Use OnlyReturns a collection of file-information objects representing all the files contained in the specified file set.
/fileSets/{fileSetId}/files
head
Verify that a file in a file set exists
Internal-Use OnlyDetermines whether a specified file in a specified file set exists. Returns headers for the specified file in the file set.
/fileSets/{fileSetId}/files/{fileName}
get
Get the information about a file in a file set
Internal-Use OnlyGets the metadata attached to a file in a file set. application/octet-stream headers returns the information and content of the specified file from the specified file set. application/vnd.sas.batch.file.set.file+json and application/json returns information about the specified file from the specified file set
/fileSets/{fileSetId}/files/{fileName}
put
Set the contents of a file in a file set
Internal-Use OnlyCreates or updates the contents of a specified file in the specified file set.
/fileSets/{fileSetId}/files/{fileName}

Jobs

Contains the operations for SAS Batch Server instances.
head
Check endpoint availability
Internal-Use OnlyDetermines whether an endpoint is currently available.
/jobs
get
Get a collection of Jobs
Internal-Use OnlyReturns a collection of job objects in the form of an application/vnd.sas.collection. It is based on the specified query parameters.
/jobs
post
Create a SAS job
Internal-Use OnlyCreates a new job to run a SAS program. The type of job is created depending on the Accept header. application/vnd.sas.batch.job.request.sas.batch+json headers creates a Batch job to run a SAS program. application/vnd.sas.batch.job.request.sas.line.mode+json headers creates a new interactive job to run SAS in line mode. application/vnd.sas.batch.job.request.command.batch+json headers creates a Batch job to run an arbitrary command. application/vnd.sas.batch.job.request.command.interactive+json headers creates an interactive job to run an arbitrary command.
/jobs
head
Verify that a job exists
Internal-Use OnlyDetermines whether a specific job exists.
/jobs/{jobId}
get
Get the job information
Internal-Use OnlyGets the job information or job state information for the specified job.
/jobs/{jobId}
delete
Delete a job
Internal-Use OnlyDeletes a job with the specified job ID.
/jobs/{jobId}
post
Send STDIO input text to a job
Internal-Use OnlySends the specified array of text strings to a running job to use as STDIN.
/jobs/{jobId}/input
post
Retrieve the STDIO ouput of a job
Internal-Use OnlyRetrieves the STDIO text from STDOUT and STDERR output from a running job.
/jobs/{jobId}/output
head
Verify that a job state exists
Internal-Use OnlyDetermines whether a specific job state exists.
/jobs/{jobId}/state
get
Get the state of a job
Internal-Use OnlyGets the plain text version of the specified job's state. The returned text is one of the following values: 'pending', 'running', 'completed', 'failed', 'unknown'.
/jobs/{jobId}/state
put
Change the state of a job
Internal-Use OnlyChanges the state of a specified job. The only state currently allowed is 'canceled'.
/jobs/{jobId}/state

Servers

Contains the operations for SAS Reusable Batch Server instances.