Scan
Create an ad-hoc scan
Creates scan request and runs scan on nodes that match filter criteria if specified.
To use this endpoint, you must have one of the following roles: comply-admin comply-operator
post/v1/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
{
"filters": {
"environments": [
"production"
],
"hostnames": [
"hostname.example"
],
"node_groups": [
"node group"
],
"operating_systems": [
"redhat 7",
"redhat 8"
]
},
"scan-type": "desired"
}Response
CreateDesiredScanResponse 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.