Action information and execution.
CAS REST
Loading...
The CAS REST API provides REST access to CAS functionality and server information. Endpoints are grouped into three root paths:
get
Internal-Use OnlyGet parameter definitions for actions in JSON form.Get parameter definitions for actions
get
Internal-Use OnlyGet parameter definitions for the specified action. If an action set is not specified as part of the name, a list of actions from all action sets with the matching name is returned.Get parameter defintions for an action
post
Internal-Use OnlyRun the specified action in a transient session. Action parameters are passed as POST data and converted to a CASValueList. A session is created, the action is executed, and the session is destroyed.Run action
delete
Internal-Use OnlyCancels the currently running action by sending a cancelAction action.Cancel the action running in the session
CAS information.
get
Internal-Use OnlyGet information about the CAS servers.Get grid information
delete
Internal-Use OnlyShut down the CAS servers.Shut down the CAS servers
get
Internal-Use OnlyConfiguration settings for the server.Configuration settings for the server
get
Internal-Use OnlyServer type.Server type
get
Internal-Use OnlyGet the state of the CAS server.CAS server state
get
Internal-Use OnlyGet a list of connected node names for the CAS grid.List connected nodes
get
Internal-Use OnlyGet a count of connected nodes.Connected node count
get
Internal-Use OnlyList of CAS nodes.Node List
put
Internal-Use OnlyAdd one or more nodes to the grid.Add nodes
delete
Internal-Use OnlyRemove one or more nodes from the grid. Parameters should be in the request body in JSON format. Directly calls the removeNode CAS action to remove the node from the grid.Remove nodes
get
Internal-Use OnlyGet information about the specified node.Get node information
get
Internal-Use OnlyGet metrics for the specified node.Get node metrics
get
Internal-Use OnlyReturns a list of process identifiers for all session processes running on a node.Get process identfiers for session processes
get
Internal-Use OnlyReturns a list of process identifiers for all session processes for the specified user.Get process identifiers for a user's session processes
get
Internal-Use OnlyList of nodes running CAS servers, including cpuLoad of the system running the CAS server. Retrieving the load information requires extra communication with the grid nodes. /cas/nodes is provided for cases where performance is of the essence and CPU load information is not needed.List of CAS nodes with CPU load
get
Internal-Use OnlyReturns node status and CPU time for all nodes.Node status and CPU time for all nodes
get
Internal-Use OnlyReturns node status and memory utilization for all nodes.Node status and memory utilization for all nodes
get
Internal-Use OnlyReturns node information and main process metrics for all nodes.Node information and main process metrics for all nodes
get
Internal-Use OnlyReturns CPU times with node type for all nodes.CPU times for all nodes
get
Internal-Use OnlyInformation about the CAS process.CAS process information
get
Internal-Use OnlyListening ports.CAS port information
get
Internal-Use OnlyGet a list of global caslibs from the controller. Returns a CTB containing global caslib information.Get global caslibs
put
Internal-Use OnlyAdd a global caslib to the controller using the table.addCaslib action. Parameters must be submitted as JSON in the request body using the parameters for the addCaslib CAS action. Parameter processing is handled by the action, so errors may be returned as action results (and HTTP 200 result code) rather than vnd.sas.cas.direct.error.response.Add a global caslib
delete
Internal-Use OnlyRemoves a global caslib from the controller. Use this endpoint when the name of the caslib is not URL safe.Remove a global caslib
get
Internal-Use OnlyGet information about the specified global caslib.Get global caslib information
delete
Internal-Use OnlyDrops the specified global caslib.Drop a global caslib
get
Internal-Use OnlyList the CAS server's administrators, both server administrators and data administrators.List administrators
put
Internal-Use OnlyCreate an administrator. Use for administrators with names that do not conform to URL format.Create administrator
post
Internal-Use OnlyChange information about an administrator.Change administrator
delete
Internal-Use OnlyRemove the specified administrator.Remove administrator
get
Internal-Use OnlyGet information about the specified administrator.Get administrator information
post
Internal-Use OnlyChange information about the administrator.Change administrator information
delete
Internal-Use OnlyRemove the specified administrator.Remove administrator
get
Internal-Use OnlyGet a list of server notifications, starting from an optional specific start time, through the current time. Returns the last time checked, which can be used on subsequent calls as the new starting time.Get server notifications
get
Internal-Use OnlyGet a list of loggers.Get a list of loggers
get
Internal-Use OnlyGet information about the specified logger.Get logger information
post
Internal-Use OnlyAdds a new logger to the logging system using the specified level and appender. Can only be performed by a CAS Administrator. The appender associated with the logger must have already been created.Add a new logger to the logging system
put
Internal-Use OnlyChange the logging level of the specified logger. Can only be performed by a CAS Administrator.Change logging level
get
Internal-Use OnlyGet a list of appenders.Get a list of appenders
get
Internal-Use OnlyGet information about a particular appender.Get appender information
put
Internal-Use OnlyAdd a new appender to the system, either a console appender or a file appender. Some parameters are specific to the file appender and, although marked as required, are not required for the console appender.Add a new appender
get
Internal-Use OnlyGet a list of active sessions. Does not return information that requires connecting to the sessions for retrieval.Get a list of active sessions
get
Internal-Use OnlyGet the 1 minute CPU load average for the system.Gewt system CPU load average
get
Internal-Use OnlyNumber of seconds the CAS server process has been running.Server uptime in seconds
Session information and management.
get
Internal-Use OnlyActive CAS sessions.CAS sessions information
post
Internal-Use OnlyCreate a new session. The user identity for the session is provided by HTTP authentication and the locale for the session is taken from the request locale.Create a new session
post
Internal-Use OnlyTerminates all user sessions by performing kill -9 on the session processes.Terminate all user sessions
get
Internal-Use OnlyGet information about the specified session.Get session information
delete
Internal-Use OnlyDestroy a session. The method used to end the session is determined by the value of the "command" option. For "endSession", the session is ended using the endSession action, and no output is returned upon success. For "cancel", the session is eonded using the cancelSession action (run in a transient session), and an empty JSON object is returned upon success. For "terminate", the session's processes are terminated on all of the CAS nodes and an empty JSON object is returned upon success.Destroy a session
put
Internal-Use OnlyUse with the table.upload action to upload tables. Action parameters are specified in the JSON-Parameters HTTP header in JSON format. Data for the table is sent as the HTTP request data, and should match the format specified in the fileType parameter of the action.Upload a table
post
Internal-Use OnlyRun the specified action. Action parameters can be specified either as URL query parameters or as POST data (either in form data or JSON format). For example, the echo action:Run action
get
Internal-Use OnlyReports if the session is idle, meaning it is not currently running an action.Report if session is idle
get
Internal-Use OnlyGet a list of nodes being used by the session.Get session nodes
get
Internal-Use OnlyGet a list of nodes being used by the session.Get session nodes with performance metrics
get
Internal-Use OnlyGet the number of hours/minutes/seconds since the last time an action was executed by the session.Get session idle time
get
Internal-Use OnlyGet the number of seconds since the last time an action was executed by the session.Get number of seconds a session has been idle
post
Internal-Use OnlyEnds the specified session by performing a kill -9 on all of the session's processes.Terminate a session
post
Internal-Use OnlyEnds the specified session using a cancelSession action.End the session
get
Internal-Use OnlyReturns the name of the user that owns the session.Get session owner
System information.
get
Internal-Use OnlyGet information about node's hardware.Get system information
get
Internal-Use OnlyGet a list of running processes on the node.List running processes
get
Internal-Use OnlyGet information about the specified process.Get process information
delete
Internal-Use OnlyTerminates the specified process using the SIGKILL signal. User must be a CAS administrator or "own" the process by virtue of having created the session that uses the process.Terminate a process
get
Internal-Use OnlyGet command line for the specified process.Get command line
get
Internal-Use OnlyGet CPU times for the specified process.Get process CPU times
get
Internal-Use OnlyReturns the environment variables for the specified process, if permitted by the operating system.Get process environment variables
get
Internal-Use OnlyGet list of threads for the specified process.List process threads
get
Internal-Use OnlyGet information about the specified thread.Get thread information
get
Internal-Use OnlyGet a stack trace the specified thread.Get thread stack trace
get
Internal-Use OnlyReturns a collection of system metrics, similar to the information gathered and displayed by the top utility for UNIX/Linux.Get system metrics
get
Internal-Use OnlyReturns a collection of system metrics, similar to the information gathered and displayed by the top utility for UNIX/Linux, for the specified user. If the user is not an administrator, then the processes returned include processes created for the specified user, e.g. processes for sessions owned by the user.Get system metrics for user
Grid information.
get
Internal-Use OnlyInformation about the hardware running the CAS grid.Get system information for grid nodes
get
Internal-Use OnlyInformation about a specific node on the grid.Get grid node information
get
Internal-Use OnlyRunning processes on a specific node on the grid.Get grid node processes
get
Internal-Use OnlyGet information about the specified process on the specified node.Get process information from a node
delete
Internal-Use OnlyTerminates the specified process on the specified host using the SIGKILL signal. User must be a CAS administrator or "own" the process by virtue of having created the session that uses the process.Terminate a process on a grid node
get
Internal-Use OnlyGet command line for the specified process on the specified node.Get the command line for a process on a grid node
get
Internal-Use OnlyGet CPU times for the specified process on the specified node.Get CPU times for a process on a grid node
get
Internal-Use OnlyReturns the environment variables for the specified process on the specified node.Get the environment variables for a process on a grid node
get
Internal-Use OnlyGet list of threads for the specified process on the specified node.Get a thread list for a process on a grid node
get
Internal-Use OnlyGet information about the specified thread.Get thread information on a grid node
get
Internal-Use OnlyGet a stack trace the specified thread.Get a stack trace on a grid node
get
Internal-Use OnlyReturns a collection of system metrics for the specified host, similar to the information gathered and displayed by the top utility for UNIX/Linux.Get system metrics on a grid node
get
Internal-Use OnlyReturns a collection of system metrics, similar to the information gathered and displayed by the top utility for UNIX/Linux, for the specified user. If the user is not an administrator, then the processes returned include processes created for the specified user, e.g. processes for sessions owned by the user.Get system metrics for a user on a grid node
Being removed in a future release.
post
Internal-Use OnlyCancels the currently running action by sending a cancelAction action. Deprecated. Use DELETE /cas/sessions/{sessionId}/actions instead.Cancel an action
post
Internal-Use OnlyShutdown the CAS server. Can only be executed by a CAS Administrator. Deprecated. Use DELETE /cas instead.Shutdown CAS Server
post
Internal-Use OnlyAdd one or more nodes to the grid. Deprecated. Use PUT /cas/nodes instead.Add one or more nodes to the grid
post
Internal-Use OnlyRemove one or more nodes from the grid. Deprecated. Use DELETE /cas/nodes instead.Remove one or more nodes from the grid
put
Internal-Use OnlyTerminates the specified process using the SIGKILL signal. User must be a CAS administrator or "own" the process by virtue of having created the session that uses the process.Terminate process
post
Internal-Use OnlyTerminates the specified process on the specified host using the SIGKILL signal. User must be a CAS administrator or "own" the process by virtue of having created the session that uses the process.