Scan
Create an ad-hoc custom scan
Creates custom scan request and runs scan on nodes that match filter criteria if specified with profile.
To use this endpoint, you must have one of the following roles: comply-admin comply-operator
post/v1/custom-scan
Request
- Base URLhttps://help.puppet.com/api/public
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"benchmark_id": 123,
"custom_profile_id": 123,
"profile_id": 123,
"scan_filters": {
"environments": [
"production"
],
"hostnames": [
"hostname.example"
],
"node_groups": [
"node group"
],
"operating_systems": [
"redhat 7",
"redhat 8"
]
},
"scan_type": "custom"
}Response
CreateCustomScanResponse represents the response to a scan request.
Example response
{
"created_at": "2023-09-25T13:57:16.743Z",
"finished": 100,
"finished_at": "2023-09-25T13:57:16.743Z",
"id": "123",
"name": "Scan 1",
"nodes_scanned": 100,
"status": "finished",
"type": "desired"
}Changes
No recorded changes to this operation across all 1 revision of this API.