Deregister Service Accounts API

DELETE/flexscan-api/rest/v1/service-accounts/deregister

This API deregisters a service account from the Qualys connector service. 

 This API removes only the connector registration, it does not delete the cloud infrastructure.

 When you trigger the Deregister API, the service account setup for the enabled regions will be removed. However, the associated subnets and VPCs will not be deleted automatically. You will need to manually delete the subnets and VPCs a few hours after the Deregister API completes.

Input parametersInput parameters

Parameter Mandatory/Optional Data Type Description
accountId Mandatory String Cloud account identifier to deregister
cloudType Mandatory String Cloud provider: GCP, AWS, or AZURE (case-insensitive)

Sample - Deregister a Service AccountSample - Deregister a Service Account

API Request

curl -X DELETE \
  '<qualys_gateway_url>/flexscan-api/rest/v1/service-accounts/deregister' \
  -H 'Authorization: Bearer <qas-jwt-token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "accountId": "my-gcp-project-XXX",
    "cloudType": "GCP"
  }'

API Response

{
  "data": {
    "accountId": "my-gcp-project-XXX",
    "status": "DEREGISTERED",
    "deregisteredAt": "2026-05-28T11:35:00"
  },
  "errors": [],
  "meta": {
    "timestamp": "2026-05-28T11:35:00Z"
  }
}