Get Target Accounts API
This API retrieves a specific target account by its identifier, including parent service account details.
Input parametersInput parameters
| Parameter | Mandatory/Optional | Data Type | Description |
|---|---|---|---|
| accountId | Mandatory | String (path) | Target account identifier |
Sample - Get a Target AccountSample - Get a Target Account
API Request
curl -X GET \ '<qualys_gateway_url>/flexscan-api/rest/v1/target-accounts/target-account-456' \ -H 'Authorization: Bearer <qas-jwt-token>'
API Response
{
"data": {
"accountId": "target-xxxxxxx",
"serviceAccountId": "my-gcp-projectxxxx",
"cloudType": "GCP",
"customerUuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"connectorUuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"portalUuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"regions": ["us-east1", "us-west1"],
"createdAt": "2026-05-01T10:00:00",
"updatedAt": "2026-05-28T11:30:00",
"serviceAccount": {
"accountId": "my-gcp-project-123",
"cloudType": "GCP",
"state": "REGISTERED",
"regions": ["us-east1", "us-west1"]
}
},
"errors": [],
"meta": {
"timestamp": "2026-05-28T11:30:00Z"
}
}