https://server-name/ws/powerscui/command
Handled headers
- Accept - define output format (application/json, application/xml), default is application/json
List of resources
- /ws/powerscui/command/results - resource to retrieve command execution result
Methods
- POST
Submit command to execute
URL Parameters- denaliSessionId (required) - current session identifier.
Required content
<SubmitOrderList>
Result
<SubmitResultList>
Data structures
{ "orders" : [ <SubmitOrder>, <SubmitOrder>, <SubmitOrder>, ... ] }
{
"commandName" : <commandName>,
"elementId" : <uid>,
"arguments" : <commandArguments>,
}{ "results" : [ <SubmitResult>, <SubmitResult>, <SubmitResult>, ... ] }{
"elementId" : <uid>,
"commandName" : <commandName>,
"resultKey" : <submitResultKey>,
"result" : <submitResult>
}
One of the following:
FORBIDDEN - authenticated user has no rights for the operation
BAD_REQUEST - request is malformed
NO_PROFILE_FOUND - specific for profiles commands
INTERNAL_SERVER_ERROR - internal server error occurred
OK - the command successfully committed to execute<executionKey> or error message{
"fileName" : <String>,
"modFile" : <Boolean>,
"modFileAttr" : <Boolean>,
"modDir" : <Boolean>
}{
"fileName" : <String>,
"isMonitored" : <Boolean>,
"isVolatile" : <Boolean>
}{
"fileName" : <String>
}{
"fileName" : <String>
}{
"name" : <String>,
"timestamp" : <String>
}{
"name" : <String>,
"directory" : <String>
}commandArguments
This should be a set of key values in JSON format. Refer to the tables below for command and required arguments information.
commandName
Refer to the following table for Compliance command information.
| Command name | Description | Required arguments |
|---|---|---|
| refreshStatus | Get currently applied profiles. | No arguments are required. |
| checkLevel | Check compliance level. |
|
| applyLevel | Apply compliance level. |
|
| checkProfile | Check compliance with a profile. |
|
| applyProfile | Apply compliance profile. |
|
| checkCompliance | Check compliance level against current rule type. | No arguments are required. |
| undoCompliance | Undoes the security settings that are applied. | No arguments are required. |
Refer to the following table for Compliance profile command information:
| Command name and description | Description | Required arguments |
|---|---|---|
| getProfile | Get profile XML file content from system. |
|
| putProfile | Get profile xml-file content from the specified library using the specified profile name, and put it to endpoint. |
|
| deleteProfile | Delete profile XML file. |
|
| getProfileList | Get space-separated list of profile XML file names. | No arguments are required. |
Refer to the following table for Real-time compliance profile command information:
| Command name and description | Description | Required arguments |
|---|---|---|
| getRTCPolicy | Get RTC policy configuration in JSON format. |
|
| configureRTCPolicy | Change RTC policy. |
|
| getRTCMonitoredFileset | Get list of files monitored by RTC. This command returns JSON array of monFileListItem. |
|
| changeRTCFilePolicy | Change list of monitored files. |
|
| getRTCMonitoredFileBackupFileList | Get list of backed up policy files. This method return JSON array of backupFileListItem. | No arguments are required. |
| getRTCConfigurationBackupFileList | Get list of backed up configuration files. This method return JSON array ofbackupFileListItem. | No arguments are required. |
| turnOffRTC | Turn off (or turn on in a special case) RTC for a specified amount of time in minutes. |
|
Refer to the following table for Auditd command information:
| Command name and description | Description | Required arguments |
|---|---|---|
| getAuditdMonitoredFileBackupFileList | Get list of backed up rules file. This method returns the JSON array of backupFileListItem. | No arguments are required. |
| getAuditdMonitoredFileset | Get list of filed monitored by Auditd. This command returns the JSON array of monFileListItem. |
|
| changeAuditdFilePolicy | Change list of files monitored by Auditd. |
|
| turnOffAuditd | Turn off (or turn on in special case) Auditd for a specified amount of time in minutes. |
|
Refer to the following table for Trusted execution command information:
| Command name and description | Description | Required arguments |
|---|---|---|
| getTEPolicy | Get trusted execution policy. | No arguments are required. |
| configureTEPolicy | Change trusted execution policy. | TE policy key value pairs in JSON format. |
| getTEMonitoredFileset | Get list of files monitored by TE. This command return JSON array of teFileListItem. | No arguments are required. |
| getFAPOLICYDMonitoredFileset | Get list of files monitored by fapolicyd. This command return JSON array of fapolicydFileListItem. | Arguments are required. |
| changeTEFilePolicy | Change list of files monitored by TE. |
|
| changeFAPOLICYDFilePolicy | Change list of files monitored by FAPOLICYD |
|
| turnOffTE | Turn off (or turn on in special case) TE for a specified amount of time in minutes. |
|
| turnOffFAPOLICYD | Turn off (or turn on in special case) FAPOLICYD |
|
| runTSDScan | Check the security parameters stored in the TSD against the parameters of the actual files using trustchk -n ALL. | No arguments are required. |
Refer to the following table for Up to date command information:
| Command name and description | Description | Required arguments |
|---|---|---|
| verify | Check patch management status (up to date status). | No arguments are required. |
| update | Update system with patch management. | No arguments are required. |
Refer to the following table for custom command information:
| Command name and description | Description | Required arguments |
|---|---|---|
| getFileList | Get list of files. This command returns JSON array of <fileListItem>. |
|
Refer to the following table for PSAD command information:
| Command name and description | Description | Required arguments |
|---|---|---|
| getPSADPolicy | Get the contents of the PSAD configuration file. This command returns the result key and status. |
|
| configurePSADPolicy | Set the contents of the PSAD configuration file. Use the PowerSC GUI or run |
|