Search List of Blocked Commands by LanguageId API
Search List of Blocked Commands by Language ID is a configuration-based API, that helps you to search a list of blocked commands by languageId.
The API can be executed only by the Manager user role.
Input ParametersInput Parameters
Parameters | Mandatory/Optional | Data Type | Description |
---|---|---|---|
id | Mandatory | Long | Provide the language id for which we want to get the list of blocked commands. |
Authorization | Mandatory | String | Authorization token to authenticate to the Qualys Enterprise TruRisk™ Platform. Prepend the token with 'Bearer', followed by a space. For example: Bearer . |
API Request
curl -X POST 'https://<qualys_base_url>/sm/v1/block-commands/508' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {{authToken}}' \ --data ''
Response
{ "body": { "totalCount": 1, "list": [ { "languageId": 201, "commandId": 102, "language": "PowerShell-Command", "platform": "WINDOWS", "commands": [ "runas", " Get-Service", " rmdir", " icacls", " New-ScheduledTask", " del", " curl", " netsh advfirewall" ] } ] } }
To know the details of the response codes, refer to Appendix.