Delete Amazon Security Hub Details

DELETE /partner-integration/aws/security-hub/id 

POST /partner-integration/aws/security-hub/{id}/vm 

For an Amazon Security Hub integration, you could delete the following:

  • Amazon Security Hub integration
  • AWS accounts associated with the Amazon Security Hub
  • regions associated with the Amazon Security Hub

If only a single region is associated with the AWS account used for integration, you cannot delete it. Deletion of a region for an AWS account used for integration is possible only if there are multiple regions associated with the AWS account.

Delete the Amazon Security Hub IntegrationDelete the Amazon Security Hub Integration

API Request

"curl -X DELETE --header""Content-Type:application/json""<qualys_gateway_url>/partner-integration/aws/security-hub/{id}""-H""Authorization: Bearer <token>""where",
"id is the unique integration identifier of the Amazon Security Hub"	  
	  

JSON Output

{
   "message":"AWS security hub VM integration successfully deleted."
}	  
	  

Delete the Accounts Associated with the Amazon Security HubDelete the Accounts Associated with the Amazon Security Hub

API Request

"curl -X POST --header""Content-Type:application/json""<qualys_gateway_url>/partner-integration/aws/security-hub/{id}/vm""-H""Authorization: Bearer <token>""where",
"id is the unique integration identifier of the Amazon Security Hub
Request POST Dat"	  
	  

Request POST Data (integration.json)

{
   "awsAccounts":[
      "111111111111",
      "222222222222"
   ]
}	  
	  

JSON Output

{
   "message":"AWS security hub VM integration successfully deleted."
}	  
	  

Delete the Regions Associated with the Amazon Security HubDelete the Regions Associated with the Amazon Security Hub

API Request

 "curl -X POST --header""Content-Type:application/json""<qualys_gateway_url>/partner-integration/aws/security-hub/{id}/vm/regions --data ""@integration.json""'
-H \"Authorization: Bearer <token>\"
where, id is the unique integration identifier of the Amazon Security Hub"	 
	  

 'integration.json' contains the request POST data.

Request POST Data (integration.json)

  {
   "vmRegionConfigs":[
      {
         "awsAccounts":[
            "111111111111",
            "      ""222222222222"
         ],
         "regions":[
            "eu-west-2"
         ]
      }
   ]
}"   "	
	  

JSON Output

 {
   "message":"Regions successfully deleted from AWS accounts in AWS security hub VM integration."
}	 
	  

Delete the Multiple Regions Associated with Multiple Accounts of the Amazon Security Hub IntegrationDelete the Multiple Regions Associated with Multiple Accounts of the Amazon Security Hub Integration

API Request

"curl -X POST --header""Content-Type:application/json""<qualys_gateway_url>/partner-integration/aws/security-hub/{id}/vm/regions --data ""@integration.json""'
-H \"Authorization: Bearer <token>\"
where, id is the unique integration identifier of the Amazon Security Hub"	  
	  

'integration.json' contains the request POST data.

Request POST Data (integration.json)

{
   "vmRegionConfigs":[
      {
         "awsAccounts":[
            "111111111111",
            "222222222222"
         ],
         "regions":[
            "us-west-2"
         ]"        "
      },
      {
         "awsAccounts":[
            "33333333333"
         ],
         "regions":[
            "us-west-2",
            "us-west-1"
         ]"        "
      }
   ]
}	  
	  

JSON Output

{
   "message":"Regions successfully deleted from AWS accounts in AWS security hub VM integration."
}