ScanRun
A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12
Properties
| Name | Type | Description |
|---|---|---|
| startTime | string | Output only. The time at which the ScanRun started. |
| hasVulnerabilities | boolean | Output only. Whether the scan run has found any vulnerabilities. |
| endTime | string | Output only. The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user. |
| urlsTestedCount | string | Output only. The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the n |
| urlsCrawledCount | string | Output only. The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now. |
| executionState | string | Output only. The execution state of the ScanRun. |
| progressPercent | integer | Output only. The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the val |
| errorTrace | object | Output only. If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available. |
| resultState | string | Output only. The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED". |
| warningTraces | array | Output only. A list of warnings, if such are encountered during this scan run. |
| name | string | Output only. The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-cloud-security-command-center/json-schema/google-cloud-security-command-center-scan-run-schema.json",
"title": "ScanRun",
"description": "A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-cloud-security-command-center-websecurityscanner-projects-api-openapi.yml#/components/schemas/ScanRun",
"type": "object",
"properties": {
"startTime": {
"description": "Output only. The time at which the ScanRun started.",
"format": "google-datetime",
"type": "string"
},
"hasVulnerabilities": {
"description": "Output only. Whether the scan run has found any vulnerabilities.",
"type": "boolean"
},
"endTime": {
"type": "string",
"format": "google-datetime",
"description": "Output only. The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user."
},
"urlsTestedCount": {
"type": "string",
"format": "int64",
"description": "Output only. The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads."
},
"urlsCrawledCount": {
"type": "string",
"format": "int64",
"description": "Output only. The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now."
},
"executionState": {
"description": "Output only. The execution state of the ScanRun.",
"type": "string",
"enum": [
"EXECUTION_STATE_UNSPECIFIED",
"QUEUED",
"SCANNING",
"FINISHED"
]
},
"progressPercent": {
"type": "integer",
"description": "Output only. The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.",
"format": "int32"
},
"errorTrace": {
"$ref": "#/$defs/ScanRunErrorTrace",
"description": "Output only. If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available."
},
"resultState": {
"type": "string",
"enum": [
"RESULT_STATE_UNSPECIFIED",
"SUCCESS",
"ERROR",
"KILLED"
],
"description": "Output only. The result state of the ScanRun. This field is only available after the execution state reaches \"FINISHED\"."
},
"warningTraces": {
"type": "array",
"items": {
"$ref": "#/$defs/ScanRunWarningTrace"
},
"description": "Output only. A list of warnings, if such are encountered during this scan run."
},
"name": {
"type": "string",
"description": "Output only. The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system."
}
},
"$defs": {
"ScanConfigError": {
"properties": {
"fieldName": {
"description": "Output only. Indicates the full name of the ScanConfig field that triggers this error, for example \"scan_config.max_qps\". This field is provided for troubleshooting purposes only and its actual value can change in the future.",
"type": "string"
},
"code": {
"description": "Output only. Indicates the reason code for a configuration failure.",
"type": "string",
"enum": [
"CODE_UNSPECIFIED",
"OK",
"INTERNAL_ERROR",
"APPENGINE_API_BACKEND_ERROR",
"APPENGINE_API_NOT_ACCESSIBLE",
"APPENGINE_DEFAULT_HOST_MISSING",
"CANNOT_USE_GOOGLE_COM_ACCOUNT",
"CANNOT_USE_OWNER_ACCOUNT",
"COMPUTE_API_BACKEND_ERROR",
"COMPUTE_API_NOT_ACCESSIBLE",
"CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT",
"CUSTOM_LOGIN_URL_MALFORMED",
"CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS",
"CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS",
"CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS",
"CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS",
"DUPLICATE_SCAN_NAME",
"INVALID_FIELD_VALUE",
"FAILED_TO_AUTHENTICATE_TO_TARGET",
"FINDING_TYPE_UNSPECIFIED",
"FORBIDDEN_TO_SCAN_COMPUTE",
"FORBIDDEN_UPDATE_TO_MANAGED_SCAN",
"MALFORMED_FILTER",
"MALFORMED_RESOURCE_NAME",
"PROJECT_INACTIVE",
"REQUIRED_FIELD",
"RESOURCE_NAME_INCONSISTENT",
"SCAN_ALREADY_RUNNING",
"SCAN_NOT_RUNNING",
"SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT",
"SEED_URL_MALFORMED",
"SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS",
"SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS",
"SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS",
"SEED_URL_HAS_UNRESERVED_IP_ADDRESS",
"SERVICE_ACCOUNT_NOT_CONFIGURED",
"TOO_MANY_SCANS",
"UNABLE_TO_RESOLVE_PROJECT_INFO",
"UNSUPPORTED_BLACKLIST_PATTERN_FORMAT",
"UNSUPPORTED_FILTER",
"UNSUPPORTED_FINDING_TYPE",
"UNSUPPORTED_URL_SCHEME",
"CLOUD_ASSET_INVENTORY_ASSET_NOT_FOUND"
]
}
},
"description": "Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error.",
"type": "object"
},
"ScanRunErrorTrace": {
"type": "object",
"description": "Output only. Defines an error trace message for a ScanRun.",
"properties": {
"mostCommonHttpErrorCode": {
"description": "Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.",
"type": "integer",
"format": "int32"
},
"scanConfigError": {
"$ref": "#/$defs/ScanConfigError",
"description": "Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run."
},
"code": {
"type": "string",
"enum": [
"CODE_UNSPECIFIED",
"INTERNAL_ERROR",
"SCAN_CONFIG_ISSUE",
"AUTHENTICATION_CONFIG_ISSUE",
"TIMED_OUT_WHILE_SCANNING",
"TOO_MANY_REDIRECTS",
"TOO_MANY_HTTP_ERRORS",
"STARTING_URLS_CRAWL_HTTP_ERRORS"
],
"description": "Output only. Indicates the error reason code."
}
}
},
"ScanRunWarningTrace": {
"properties": {
"code": {
"type": "string",
"enum": [
"CODE_UNSPECIFIED",
"INSUFFICIENT_CRAWL_RESULTS",
"TOO_MANY_CRAWL_RESULTS",
"TOO_MANY_FUZZ_TASKS",
"BLOCKED_BY_IAP",
"NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN"
],
"description": "Output only. Indicates the warning code."
}
},
"description": "Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.",
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/google-cloud-security-command-center-scan-run"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.