Switch the AWS scan engine for a connection (Varman scanners ↔ Security Hub)
PATCH
/v1/cloud-security/connections/{connectionId}/scan-mode
const url = 'https://api.varman.io/v1/cloud-security/connections/example/scan-mode';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"mode":"comp_scanners"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/cloud-security/connections/example/scan-mode \ --header 'Content-Type: application/json' \ --data '{ "mode": "comp_scanners" }'Accepts session, API key, or service token auth. For API key / service token callers without an explicit user attribution, the action is attributed to the org’s owner.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”connectionId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
mode
required
Which scan engine to use for this AWS connection.
string
Example
security_hub