Get Service Account State API

GET/flexscan-api/rest/v1/service-accounts/{accountId}/state

This API retrieves the current provisioning state and per-region cloudInfo for a service account.

 The state is scoped to the authenticated customer's tenant - you cannot query another customer's accounts.

Input parametersInput parameters

Parameter Mandatory/Optional Data Type Description
accountId Mandatory String (path) Service account identifier

Sample - Get Account State for the specified Service AccountSample - Get Account State for the specified Service Account

API Request

curl -X GET \
  '<qualys_gateway_url>/flexscan-api/rest/v1/service-accounts/my-gcp-project-123/state' \
  -H 'Authorization: Bearer <qas-jwt-token>'

API Response

{
  "data": {
    "accountId": "my-gcp-project-123",
    "cloudType": "GCP",
    "state": "REGISTERED",
    "cloudInfo": {
      "us-east1": {
        "vnetId": "/subscriptions/.../virtualNetworks/qualys-vnet-eastus",
        "storageAccountName": "qualysstore123"
      }
    }
  },
  "errors": [],
  "meta": {
    "timestamp": "2026-05-28T11:30:00Z"
  }
}