Delete Blocked Commands

Delete Blocked Commands is a configuration-based API. It is a configuration-based API that helps you delete the blocked commands.

The API can be executed only by the Manager user role.

API Version History

The following table provides the information about the different versions of this API along with the status:

API Version Status EOS Timeline EOL Timeline
v2 Active N/A N/A
v1 Active N/A N/A

For more information on API versioning, refer to API Versioning.

v2 API

POST sm/v2/block-commands/delete

Input ParametersInput Parameters

Parameter Mandatory/
Optional
Data Type Description
commandIds Mandatory Set<Long> Provide the list of blocked command IDs.
user Optional Object Provide the user details like name and id of user
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 .

Sample: Delete a blocked commandSample: Delete a blocked command

API Request

curl -X POST
'<qualys_base_url>/sm/v2/block-commands/delete'
-header 'Content-Type: application/json'
-header 'Authorization: Bearer {{authToken}}'
-data '{
    "commandIds": [2,3],
    "user": {
      "id": "9321x0x3-5372-4107-817x-x5647xx6Xx11",
      "name": "string",
      "userName": "string"
    }
  }'

Response

{
  "body": "Commands Deleted Successfully"
}

v1 API

POST sm/v1/block-commands/delete

Input ParametersInput Parameters

Parameter Mandatory/
Optional
Data Type Description
languageIds Mandatory Set<Long> Provide the list of language IDs (languageId is the unique ID with the combination of platform and language).
user Optional Object Provide the user details like name and id of user
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 .

SampleSample

API Request

 curl -X POST 'https://<qualys_base_url>/sm/v1/block-commands/delete' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{authToken}}' \
--data '{
 "languageIds" :[4,5],
 "user": {
 "id": "<USER ID>",
 "name": "<USER NAME>"
 
 }
}'

Response

{
 "body": {
 "success": {
 "ids": [
 4
 ],
 "message": "Ids are processed"
 },
 "failure": {
 "ids": [
 5
 ],
 "message": "Ids are Invalid"
 }
 }
}