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.
This API is scheduled for End-of-Support (EOS) and End-of-Life (EOL). For more information, refer to the Version History of this API.
API Version History
The following table provides information about the different versions of this API, along with the status:
API Version | Status | EOS Timeline | EOL Timeline |
---|---|---|---|
v1 | End-of-support (EOS) | December 2025 - June 2026 | June 2026 |
For more information on API versioning, refer to API Versioning.
To search the list of blocked commands you can use the Search List of Blocked Commands API.
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.