Summary
Run Compliance Reports (Tree)
Description
Begin a compliance report run for a Golden Config tree.
Route
No Northbound API Available
Roles
admin
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
treeId |
string |
yes |
- |
version |
string |
yes |
- |
variables |
object |
no |
- |
grading |
object |
no |
- |
Copied to Clipboard
{
"treeId": "5c35355dbebaa82eaf8113f0",
"version": "initial",
"grading": {
"weights": {
"error": -72168297.33161703,
"warning": 90839557.18123907,
"info": 56349469.25173709
}
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"treeId": {
"title": "treeId",
"$ref": "common#/definitions/mongoObjectId"
},
"version": {
"title": "version",
"$ref": "goldenConfigData#/definitions/goldenConfigTreeVersionName"
},
"variables": {
"title": "variables",
"$ref": "goldenConfigData#/definitions/goldenConfigVariables"
},
"grading": {
"title": "grading",
"$ref": "goldenConfigData#/definitions/reportGradingOptions"
}
},
"required": [
"treeId",
"version"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
runComplianceBatchResult |
object |
- |
Copied to Clipboard
{
"status": 202,
"message": "compliance batch ${batchId} completed",
"batchId": "5c35355dbebaa82eaf8113f0",
"reports": [
{
"reportId": "5c35355dbebaa82eaf8113f0",
"device": "xr9kv-atl",
"score": 55.38212418867181,
"grade": "review"
},
{
"reportId": "5c35355dbebaa82eaf8113f0",
"device": "xr9kv-atl",
"score": 57.04655008119377,
"grade": "pass"
},
{
"reportId": "5c35355dbebaa82eaf8113f0",
"device": "xr9kv-atl",
"score": 69.84710137706283,
"grade": "review"
},
{
"reportId": "5c35355dbebaa82eaf8113f0",
"device": "xr9kv-atl",
"score": 37.93691215879367,
"grade": "pass"
},
{
"reportId": "5c35355dbebaa82eaf8113f0",
"device": "xr9kv-atl",
"score": 71.17291233423309,
"grade": "review"
}
]
}
Copied to Clipboard
{
"title": "runComplianceBatchResult",
"type": "object",
"properties": {
"status": {
"type": "integer",
"const": 202
},
"message": {
"type": "string",
"examples": [
"compliance batch ${batchId} completed"
]
},
"batchId": {
"$ref": "common#/definitions/mongoObjectId"
},
"reports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"reportId": {
"$ref": "common#/definitions/mongoObjectId"
},
"device": {
"$ref": "deviceData#/definitions/deviceName"
},
"score": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"grade": {
"type": "string",
"examples": [
"pass",
"fail",
"review"
]
}
}
}
}
}
}