Contains the operations for the root resource of the Compute API.
Compute
Loading...
The Compute API enables users to submit and execute SAS code using REST calls. Users can manage Compute contexts, create sessions, submit jobs, and access information about the session.
Contains the operations to create SAS Compute Server definitions.
head
Internal-Use OnlyDetermines whether an endpoint is currently available.Check endpoint availability
get
Internal-Use OnlyReturns a list of Compute context definitions. Standard paging, filtering, and sorting options are provided. By default, this endpoint returns a summary of the available information about the contexts. Specify an Accept-Item header with the value application/vnd.sas.compute.context+json to get all available information for each context.Get context definitions
post
Internal-Use OnlyCreates a context definition. The new context is assigned a unique ID. The contextName namespace is managed by you, and the contextName must be unique. You can update contexts by performing a PUT on the corresponding URL.Create a context definition
delete
Internal-Use OnlyDeletes the context definition that has the specified contextId.Delete a context definition
get
Internal-Use OnlyReturns the context definition that has the specified contextId.Get a context definition
head
Internal-Use OnlyDetermines whether the specified context exists.Verify that a context exists
put
Internal-Use OnlyUpdates a context definition. Changing a context does not affect any sessions that are currently running on the server that is instantiated by that context. Servers that are created after updating the context use the current definition. If the contextId matches the ID of an existing context, that context is updated. Otherwise, an error is returned. The request must include the current ETag of the context as the value of the If-Match request header to prevent concurrent updates. The current ETag of the context is provided in the value of the ETag response header of any endpoint that produces application/vnd.sas.compute.context.Update a context definition
post
Internal-Use OnlyCreates a new session that is based on the Compute context definition that corresponds to the contextId path variable. If a reusable SAS Compute Server is available to handle this session, a new session is created on that SAS Compute Server. Otherwise, a new SAS Compute Server is created and the new session is created on that SAS Compute Server. The new session is associated with the identity of the requester. URLs that define how to access the session are returned. The contextId matches the ID member of a known context entry. The Location header contains the URI of the created session resource.Request new session
Contains the operations for SAS Compute Server instances.
get
Internal-Use OnlyReturns a list of active servers. Standard paging, filtering, and sorting options are provided. This method is restricted to users with ADMIN permission on this URL for monitoring purposes. By default, this endpoint returns a summary of the available information about the active servers. Specify an Accept-Item header with the value application/vnd.sas.compute.server+json to get all available information for each server.Get active servers
head
Internal-Use OnlyDetermine whether the servers endpoint is currently available.Check endpoint availability
delete
Internal-Use OnlyStops the specified server instance. The user must have administration permissions on the server to perform this request.Stop the server
get
Internal-Use OnlyReturns links and information for the active server instance. The serverId is a unique identifier for an active SAS Compute Server instance.Get links for the active server
head
Internal-Use OnlyDetermines whether the specified server exists.Verify that a server exists
get
Internal-Use OnlyGets the current status of a server. The value that is returned is either running or stopped.Get server status
head
Internal-Use OnlyDetermines whether the status endpoint for a server is available.Check server status endpoint
get
Internal-Use OnlyGets a paginated list of sessions that are owned by the requested service instance. Standard paging, filtering, and sorting options are provided.Get active sessions for server
head
Internal-Use OnlyDetermines whether the session endpoint for a server is available.Check sessions endpoint for a server
Contains the operations for sessions that run on a server and handle SAS requests.
get
Internal-Use OnlyGets a paginated list of sessions. Standard paging, filtering, and sorting options are provided. By default, this endpoint returns a summary of the available information about the sessions. Specify an Accept-Item header with the value application/vnd.sas.compute.session+json to get all available information for each session.Get active compute sessions
head
Internal-Use OnlyDetermines whether a session endpoint is available.Check endpoint availability
get
Internal-Use OnlyReturns the session state.Get session state
head
Internal-Use OnlyDetermines whether the state endpoint is available.Check state availability
put
Internal-Use OnlySets the current state of a session. Use this method to cancel running code by setting the state to canceled.Set state of a session
delete
Internal-Use OnlyDeletes the specified session.Delete session
get
Internal-Use OnlyReturns a representation of the session that includes links for the session.Get current session information
head
Internal-Use OnlyDetermines whether the specified session is available.Verify session availability
Contains the operations for submitting session jobs.
post
Internal-Use OnlyExecutes SAS code in the specified session. Code is always submitted asynchronously. URLs are returned that contain endpoints. The Location header contains the URI of the job resource. You might submit the code directly in a request or as a reference to a File service resource.Execute SAS code in a session
get
Internal-Use OnlyReturns a collection of all the current jobs for a session. Standard paging, filtering, and sorting options are provided.Get the current jobs for a session
head
Internal-Use OnlyDetermines whether the jobs endpoint is available for a session.Check endpoint availability
delete
Internal-Use OnlyDeletes a job and all job access points into a session from this job. The log, listing, and results that were created by the job are also deleted. Actual job resources are still available via the session, until the session is destroyed.Delete a job
get
Internal-Use OnlyReturns information about a specified job. This information includes the job's current state and links to other endpoints that are associated with the job, such as results, log, or output.Get information about a job
head
Internal-Use OnlyDetermines whether the specified job exists.Verify that a job exists
get
Internal-Use OnlyReturns the current state of the specified job.Get current state of a job
head
Internal-Use OnlyDetermines whether the state can be determined for a job.Check endpoint availability
put
Internal-Use OnlySets the current state of the specified job. For example, you can use this method to set the state to canceled.Set current state of a job
Contains the operations for retrieving SAS output information from a job.
get
Internal-Use OnlyRetrieves the listing output associated with a session. This operation returns a collection in which each entry is of the type application/vnd.sas.compute.log.line.Retrieve listing information for a session
head
Internal-Use OnlyDetermines whether a session listing is available.Check for a session listing
post
Internal-Use OnlyUploads session listing output to the Files service and returns the representation of the file resource containing the output. The file is created in one of two formats, based on the value of the property "format" specified in the post body. If "collection" is specified as the value of "format", the output file is rendered as application/vnd.sas.collection+json. If the format is specified as "prefixedText", the output is text/plain in which each line of output is prefixed with the name of the line type followed by a colon. In either case, all available output is returned; neither pagination nor filtering is supported.Upload session listing output to the Files service
get
Internal-Use OnlyRetrieves the listing output associated with a session as text.Retrieve listing information for a session as text
head
Internal-Use OnlyDetermines whether a session listing is available as text.Check for session listing as text
get
Internal-Use OnlyRetrieves the listing output associated with a job. A job listing is a subset of the session listing. Therefore, the first line of a job listing begins at a location (offset) within the session listing. This operation returns a collection in which each entry is of the type application/vnd.sas.compute.log.line.Retrieve listing information for a job
head
Internal-Use OnlyDetermines whether a job listing exists.Check for a job listing
post
Internal-Use OnlyUploads job listing output to the Files service and returns the representation of the file resource containing the output. The file is created in one of two formats, based on the value of the property "format" specified in the post body. If "collection" is specified as the value of "format", the output file is rendered as application/vnd.sas.collection+json. If the format is specified as "prefixedText", the output is text/plain in which each line of output is prefixed with the name of the line type followed by a colon. In either case, all available output is returned; neither pagination nor filtering is supported.Upload job listing output to the Files service
get
Internal-Use OnlyRetrieves the listing output associated with a job as text.Retrieve listing information for a job as text
head
Internal-Use OnlyDetermines whether a job listing exists as text.Check for job listing as text
Contains the operations for retrieving log information from a job.
get
Internal-Use OnlyRetrieves the log output associated with a job. A job log is a subset of the session log. Therefore, the first line of a job log begins at a location (offset) within the session log. This operation returns a collection in which each entry is of the type application/vnd.sas.compute.log.line.Retrieve a job log
head
Internal-Use OnlyDetermines whether there is currently a log for a job.Check job log availability
post
Internal-Use OnlyUploads job log output to the Files service and returns the representation of the file resource containing the output. The file is created in one of two formats, based on the value of the property "format" specified in the post body. If "collection" is specified as the value of "format", the output file is rendered as application/vnd.sas.collection+json. If the format is specified as "prefixedText", the output is text/plain in which each line of output is prefixed with the name of the line type followed by a colon. In either case, all available output is returned; neither pagination nor filtering is supported.Upload job log output to the Files service
get
Internal-Use OnlyRetrieves the entire log output associated with a job as text.Retrieve a job log as text
head
Internal-Use OnlyDetermines whether there is currently a log for a job as text.Check for job log as text
get
Internal-Use OnlyRetrieves the log output associated with a session. This operation returns a collection in which each entry is of the type application/vnd.sas.compute.log.line.Retrieve a session log
head
Internal-Use OnlyDetermines whether the session has a log available.Check for a session log
post
Internal-Use OnlyUploads session log output to the Files service and returns the representation of the file resource containing the output. The file is created in one of two formats, based on the value of the property "format" specified in the post body. If "collection" is specified as the value of "format", the output file is rendered as application/vnd.sas.collection+json. If the format is specified as "prefixedText", the output is text/plain in which each line of output is prefixed with the name of the line type followed by a colon. In either case, all available output is returned; neither pagination nor filtering is supported.Upload session log output to the Files service
get
Internal-Use OnlyRetrieves the log output associated with a session as text.Retrieve a session log as text
head
Internal-Use OnlyDetermines whether the session has a log available as text.Check for session log as text
Contains the operations for retrieving results from a job.
get
Internal-Use OnlyRetrieves the results of a job as a collection. The results might be ODS output or other output. Standard paging options are available.Fetch the results of a job
head
Internal-Use OnlyDetermines whether a job has any results.Check for job results
get
Internal-Use OnlyRetrieves the results of an entire session. This can be ODS output or other output.Fetch results for a session
head
Internal-Use OnlyDetermines whether the session has any results.Check for session results
Contains the operations to access information for librefs and SAS data sets.
get
Internal-Use OnlyProvides a listing that contains summaries of the libraries that are defined in the current session.Return libraries in a session
head
Internal-Use OnlyDetermines whether a session has a data endpoint available.Check access to data for a session
post
Internal-Use OnlyAssigns a libref that is based on the request body for a session. The Location header contains the URI of the libref resource.Assign a libref
get
Internal-Use OnlyRetrieves information about a specified libref, including links to tables.Get libref information
head
Internal-Use OnlyDetermines whether the specified libref exists in a session.Verify that a libref exists
delete
Internal-Use OnlyRemoves the libref from the session.Deassign libref
get
Internal-Use OnlyReturns summary information about a specified libref.Get libref summary
get
Internal-Use OnlyReturns a collection of data sets that are associated with a specified libref. Set the Accept header on this method to application/vnd.sas.collection+json. The collection contains application/vnd.sas.compute.data.table.summary items. Standard paging options are provided.Get data sets in a libref
get
Internal-Use OnlyReturns information about a data set.Get a data set
head
Internal-Use OnlyDetermines whether the specified data set exists in a libref.Check for a data set in a libref
put
Internal-Use OnlyUpdates the name or label of the specified table.Update table information
delete
Internal-Use OnlyDeletes a table or view. If you request to delete a table and you have proper permissions, then the data set is deleted. If you request to delete a view, then the view is destroyed.Delete a table or view
get
Internal-Use OnlyReturns summary information about a data set.Get a summary of a data set
get
Internal-Use OnlyReturns the column information for a specified data set. By default, a collection is returned, and standard paging options are available.Get column information
head
Internal-Use OnlyDetermines whether the specified data set has access to columns.Check for available columns in a table
post
Internal-Use OnlyReturns the column information for a specified data set based on the submitted request body. By default, a collection is returned, and standard paging options are available.Retrieve column information
get
Internal-Use OnlyGets a specific column from a data set.Get a column
head
Internal-Use OnlyDetermines whether a specified data set has access to a column.Check for a column in a table
put
Internal-Use OnlyUpdates the name, label, format, or informat information for a specified column.Update column information
get
Internal-Use OnlyReturns the rows for a specified data set. By default, a collection is returned, and standard paging options are available.Get row information
head
Internal-Use OnlyDetermines whether a data set has access to a specific row.Check row availability
post
Internal-Use OnlyReturns the rows for a specified data set based on the submitted request body. By default, a collection is returned, and standard paging options are available.Obtain rows from a data set
get
Internal-Use OnlyReturns rows in CSV format for a specified data set.Get row information as comma-separated values
head
Internal-Use OnlyReturns the headers for rows in CSV format for a specified data set.Get headers for rows represented as comma-separated values
get
Internal-Use OnlyReturns a row set that is based on the specified table and an optional WHERE clause.Get a row set from a data set
head
Internal-Use OnlyDetermines whether a row set is available on for a data set.Check row set availability
post
Internal-Use OnlyReturns a row set that is based on the specified request body.Get a row set from a data set
get
Internal-Use OnlyReturns content useful for populating prompts more effectively.Get prompt content from a data set
head
Internal-Use OnlyDetermines headers for prompt content for a given data set.Check prompt content availability
post
Internal-Use OnlyReturns content useful for populating prompts more effectively.Get prompt content from a data set
post
Internal-Use OnlyReturns a view of the specified data set. The request body that you provide controls the view that is created. You can then access the returned view as a table.Create a data set view
Contains the operations to access information for files and filerefs.
get
Internal-Use OnlyReturns a list of all the filerefs that are defined for a session.List filerefs in a session
head
Internal-Use OnlyDetermines whether the file service is available for a session.Check endpoint availability
post
Internal-Use OnlyCreates or assigns a fileref for a session.Assign a fileref
get
Internal-Use OnlyGet file information from a fileref in a session.Get fileref information
head
Internal-Use OnlyDetermines whether the specified fileref exists in a session.Check for a fileref
delete
Internal-Use OnlyDeassigns the specified fileref in a session.Deassign a fileref
get
Internal-Use OnlyGets fileref summary information for a fileref in a session.Get fileref summary information
get
Internal-Use OnlyGets information about a member of a directory fileref.Get a directory member
get
Internal-Use OnlyGets contents of a file that you refer to by a fileref. If the server can determine the type of file that is returned, the Content-type header returns the appropriate media type information. Otherwise, application/octet-stream data is returned for the Content-type header.Download a file
head
Internal-Use OnlyDetermines whether a file is available for download.Check file availability
put
Internal-Use OnlyUploads a physical file that is associated with a fileref.Upload a file
delete
Internal-Use OnlyDeletes the file that is referenced by the fileref.Delete a file
get
Internal-Use OnlyReturns a directory listing when a fileref refers to a directory. A collection of directory members is returned.Get directory contents
Contains the operations to access information for variables in a given session.
get
Internal-Use OnlyGets the variables that are currently defined in a session. These variables are macro variables that have been defined either by SAS or by you. A collection of application/vnd.sas.compute.variable items is returned. Standard pagination rules apply, and simple filtering is allowed.Get session variables
head
Internal-Use OnlyDetermines whether it is possible to get variables for a session.Check variable availability for a session
get
Internal-Use OnlyReturns the information about the requested variable in the session. By default, the session variable resource is returned. You can get the simple value of the variable by specifying an Accept header of text/plain.Get a variable from the session
head
Internal-Use OnlyDetermines whether the requested variable exists for a session and obtains the header information for the variable.Determine whether a variable exists in a session
Contains the operations to access information about data access engines from a session.
get
Internal-Use OnlyReturns engine information for a session. An engine enables you to access data from different storage locations. Each engine might have different requirements for usage. This endpoint returns a collection of engine information that enables you to determine what engines can be used in a session. A collection of application/vnd.sas.data.engine items is returned. Standard pagination rules apply, and simple filtering is allowed.Get an engine list for a session
head
Internal-Use OnlyDetermines whether it is possible to get engine information for a session.Check engine list availability for a session
get
Internal-Use OnlyReturns information about a specific engine.Get engine information for a session
head
Internal-Use OnlyDetermines whether information for a specific engine is available.Get engine information
get
Internal-Use OnlyReturns the options schema for a specific engine.Get options schema for an engine
head
Internal-Use OnlyDetermines whether information for the specified engine is available.Get engine information for a session
Contains the operations to access information for the file system.
get
Internal-Use OnlyGets file or directory properties at a specified path.Get file or directory properties
head
Internal-Use OnlyDetermines whether the specified file or directory exists.Check for file or directory properties
put
Internal-Use OnlyRenames a file or directory at the specified location. Can also be used to move a file or directory to a location that you specify in the path element of the application/vnd.sas.compute.file.properties body. If no path is provided, the file is moved to the current working directory. The move action causes the path for the new file or directory to change.Rename a file or directory
delete
Internal-Use OnlyDeletes a file or directory.Delete a file or directory
post
Internal-Use OnlyCreates an empty file or directory. In the request body, set the isDirectory attribute to 'false' for files and to 'true' for a directory. The name attribute specifies the name of the new file or directory. Provide the path of the new file or directory either in the URI or in the path attribute in the request body. If you do not provide a path, then the new file or directory is created under the current working directory.Create an empty file or directory
post
Internal-Use OnlyCopies a file or directory. Provide the path of the destination file or directory in the URI. Provide the path of the source file or directory in the request body. If you do not provide a path in the request body, then the current working directory is assumed.Copy a file or directory
get
Internal-Use OnlyGets contents of a file that is specified by the file path. If the server can determine the type of file that is returned, then the Content-type header returns the appropriate media type information. Otherwise, application/octet-stream data is returned for the Content-type header.Download file contents
put
Internal-Use OnlyCreates a file or replaces an existing file. An ETag is required when you replace an existing file.Upload file content
get
Internal-Use OnlyReturns a collection of directory members from a specified directory path.Get directory members
Contains the operations to access information for options in a session.
get
Internal-Use OnlyReturns the value of the option as a plain text value.Get an option by name
head
Internal-Use OnlyReturns headers for option retrieval.Verify that an option exists
put
Internal-Use OnlyEnables you to set or update the value of the specified option.Set or update option value
get
Internal-Use OnlyReturns information about the specified option, including the value.Get an option representation
head
Internal-Use OnlyReturns headers for option retrieval.Verify that an option exists
Contains the operations to access format information that is available in a session.
get
Internal-Use OnlyReturns a list of all the formats that are defined for a session.List formats in a session
head
Internal-Use OnlyDetermines whether the formats endpoint is available for a session.Check endpoint availability
get
Internal-Use OnlyGets format information from a session.Get format information
head
Internal-Use OnlyDetermines whether the specified format exists in a session.Check for a format
Contains the operations to access informat information that is available in a session.
get
Internal-Use OnlyReturns a list of all the informats that are defined for a session.List informats in a session
head
Internal-Use OnlyDetermines whether the informats endpoint is available for a session.Check endpoint availability
get
Internal-Use OnlyGets informat information from a session.Get informat information
head
Internal-Use OnlyDetermines whether the specified informat exists in a session.