GET /compliancePolicies/persistedResult
Use this method to return the persisted compare result for servers to which a compliance policy is assigned.
Authentication
Authentication with username and password is required.
Request URL
GET https://{management_server_IP}/compliancePolicies/persistedResult
Query parameters
If all query parameters are empty or null, all the persisted compliance result are returned.
Parameters | Required / Optional | Description |
---|---|---|
complexid={uuid} | Optional | Returns the persisted compliance results for only scalable complexes |
uuid={uuid} | Optional | Returns the persisted results for only the device specified by the UUID and resource type |
type={device_type} | Optional | When the uuid query parameter is specified, this query parameter is used to indicate the resource type.
|
The following example returns the persisted compliance results for only scalable complexes.
GET https://192.0.2.0/compliancePolicies/persistedResult?complexid=C156CA72D6E811E48F0F6EAE8B4BDB07
The following example returns the persisted results for only the device specified by the UUID and resource type.
GET https://192.0.2.0/compliancePolicies/persistedResult?type=SERVER&uuid=41C8528EDC3E11E6B757C80D4FC25D9F
Request body
None
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
403 | Forbidden | The orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request. |
409 | Conflict | There is a conflict with the current state of the resource. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
Attributes | Type | Description | ||||
---|---|---|---|---|---|---|
all | Array | |||||
chassis | String | Chassis UUID | ||||
cmms | Compliance policy information for each CMM | |||||
deviceCompliant | Boolean | Identifies whether the CMM is compliant. This can be one of the following values.
| ||||
message | Array | Error message that is returned if an error occurs | ||||
policyName | String | Firmware-compliance policy that is associated with the CMM | ||||
supported | Boolean | Identifies whether the CMM is supported. This can be one of the following values.
| ||||
targetFirmware | Array | Information about firmware | ||||
build | String | Update build | ||||
category | String | Update category | ||||
compliant | String | Indicates whether the CMM firmware is compliant with the policy. This can be one of the following values.
| ||||
componentID | String | For a CMM, this is the CMM UUID | ||||
componentName | String | Name of the CMM | ||||
date | String | Update date | ||||
fixid | String | Update- ID | ||||
installedFirmware | Array of objects | Information about each firmware that is installed on the component | ||||
build | String | Firmware build level | ||||
date | String | Firmware date | ||||
name | String | Firmware name | ||||
versionList | Array of strings | List of versions that were installed | ||||
level | String | Update level | ||||
packageExistence | String | Identifies whether the update package exists in the firmware-updates repository. This can be one of the following values.
| ||||
reason | String | Explanation for the result of the compliance check | ||||
versionList | Strings | Update package version | ||||
uuid | String | CMM UUID | ||||
racklist | Object | If there are racks managed, and you queried for all persisted compliance results, return those results | ||||
deviceCompliant | Boolean | Identifies whether the CMM is compliant. This can be one of the following values.
| ||||
message | Array | Error message that is returned if an error occurs | ||||
policyName | String | Firmware-compliance policy that is associated with the CMM | ||||
supported | Boolean | Identifies whether the CMM is supported. This can be one of the following values.
| ||||
targetFirmware | Array | Information about firmware | ||||
category | String | Update category | ||||
build | String | Update build | ||||
compliant | String | Indicates whether the CMM firmware is compliant with the policy. This can be one of the following values.
| ||||
componentID | String | For a CMM, this is the CMM UUID | ||||
componentName | String | Name of the CMM | ||||
date | String | Update date | ||||
fixid | String | Update- ID | ||||
installedFirmware | Array of objects | Information about each firmware that is installed on the component | ||||
build | String | Firmware build level | ||||
date | String | Firmware date | ||||
name | String | Firmware name | ||||
versionList | Array of strings | List of versions that were installed | ||||
level | String | Update level | ||||
packageExistence | String | Identifies whether the update package exists in the firmware-updates repository. This can be one of the following values.
| ||||
reason | String | Explanation for the result of the compliance check | ||||
versionList | Strings | Update package version | ||||
uuid | String | CMM UUID. | ||||
rackswitchlist | Object | Compliance policy information for each managed RackSwitch switch | ||||
deviceCompliant | String | Identifies whether the RackSwitch switch is compliant. This can be one of the following values.
| ||||
message | Array | Error message if an error occurs for this RackSwitch switch | ||||
policyName | String | Firmware-compliance policy that is associated with the RackSwitch switch | ||||
supported | String | Identifies whether the RackSwitch switch is supported. This can be one of the following values.
| ||||
targetFirmware | Array | Information about firmware | ||||
build | String | Update build | ||||
category | String | Type of firmware update | ||||
compliant | String | Indicates whether the RackSwitch switch firmware is compliant with the firmware-compliance policy. This can be one of the following values.
| ||||
componentID | String | RackSwitch switch UUID | ||||
componentName | String | RackSwitch switch name | ||||
date | String | Update date | ||||
fixid | String | Update ID | ||||
installedFirmware | Array of objects | Information about each firmware that is installed on the component | ||||
build | String | Firmware build level | ||||
date | String | Firmware date | ||||
name | String | Firmware name | ||||
versionList | Array of strings | List of versions that were installed | ||||
level | String | Update level | ||||
packageExistence | String | Identifies whether the update package exists in the firmware-updates repository. This can be one of the following values.
| ||||
reason | String | Explanation for the result of the compliance check | ||||
versionList | Array of string | Update package version | ||||
uuid | String | RackSwitch switch UUID | ||||
storagelist | Object | Compliance policy information for each managed storage device | ||||
deviceCompliant | String | Identifies whether the storage device is compliant. This can be one of the following values.
| ||||
message | String | Error message if an error occurs for this storage device | ||||
policyName | String | Firmware-compliance policy that is associated with the storage device | ||||
supported | String | Identifies whether the storage device is supported. This can be one of the following values.
| ||||
targetFirmware | Array | Information about firmware | ||||
build | String | Update build | ||||
category | String | Type of firmware update | ||||
compliant | String | Indicates whether the storage device firmware is compliant with the firmware-compliance policy. This can be one of the following values.
| ||||
componentID | String | Storage device UUID | ||||
componentName | String | Storage device name | ||||
date | String | Update date | ||||
fixid | String | Update ID | ||||
installedFirmware | Array of objects | Information about each firmware that is installed on the component | ||||
build | String | Firmware build level | ||||
date | String | Firmware date | ||||
name | String | Firmware name | ||||
versionList | Array of strings | List of versions that were installed | ||||
level | String | Update level | ||||
packageExistence | String | Identifies whether the update package exists in the firmware-updates repository. This can be one of the following values.
| ||||
reason | String | Explanation for the result of the compliance check | ||||
versionList | Array of strings | Update package version | ||||
uuid | String | Storage device UUID | ||||
switches | Object | Compliance policy information for each Flex System switch | ||||
deviceCompliant | String | Identifies whether the switch is compliant. This can be one of the following values.
| ||||
message | Array | Error message if an error occurs for this Flex System switch | ||||
policyName | String | Firmware-compliance policy that is associated with the Flex System switch | ||||
supported | String | Identifies whether the Flex System switch is supported. This can be one of the following values.
| ||||
targetFirmware | Array | Information about firmware | ||||
build | String | Update build | ||||
category | String | Type of firmware update, such as IMM2, UEFI, Network, and ServeRAID | ||||
compliant | String | Indicates whether the Flex System switch firmware is compliant with the policy. This can be one of the following values.
| ||||
componentID | String | For a Flex System switch, this is the switch UUID | ||||
componentName | String | Flex System switch name | ||||
date | String | Update date | ||||
fixid | String | Update ID | ||||
installedFirmware | Array of objects | Information about each firmware that is installed on the component | ||||
build | String | Firmware build level | ||||
date | String | Firmware date | ||||
name | String | Firmware name | ||||
versionList | Array of strings | List of versions that were installed | ||||
level | String | Update level | ||||
packageExistence | String | Identifies whether the update package exists in the firmware-updates repository. This can be one of the following values.
| ||||
reason | String | Explanation for the result of the compliance check | ||||
versionList | Strings | Update package version | ||||
uuid | String | Flex System switch UUID | ||||
xITEs | Object | Compliance policy information for each server | ||||
message | Array | Error message that is returned if an error occurs | ||||
deviceCompliant | Boolean | Identifies whether the server is compliant. This can be one of the following values.
| ||||
policyName | String | Firmware-compliance policy that is associated with the server | ||||
supported | Boolean | Identifies whether the server is supported. This can be one of the following values.
| ||||
targetFirmware | Array | Information about firmware | ||||
build | String | Update build | ||||
category | String | Update category | ||||
compliant | String | Indicates whether the server firmware is compliant with the policy. This can be one of the following values.
| ||||
componentID | String | For servers, this is returned as server UUID:component name | ||||
componentName | String | Component name | ||||
date | String | Update date | ||||
fixid | String | Update ID | ||||
level | String | Update level | ||||
installedFirmware | Array of objects | Information about each firmware that is installed on the component | ||||
build | String | Firmware build level | ||||
date | String | Firmware date | ||||
name | String | Firmware name | ||||
versionList | Array of strings | List of versions that were installed | ||||
packageExistence | String | Identifies whether the update package exists in the firmware-updates repository. This can be one of the following values.
| ||||
reason | String | Explanation for the result of the compliance check | ||||
versionList | Strings | Update package version | ||||
uuid | String | Server UUID | ||||
message | Array | Error message that is returned if an error occurs |
The following example is returned if the request is successful.
{
"all": [
{
"chassis": "FBEF740B178F4EFAA846E7225EE256DC",
"cmms": [{
"deviceCompliant": ""."message": [],
"policyName": "",
"supported": "true",
"targetFirmware": [],
"uuid": "387E51D69EC311E0A4C8E87E4D6C0479"
}]
"switches": [{
"deviceCompliant": "no",
"message": [],
"policyName": "DEFAULT-2015-04-25",
"supported": "true",
"targetFirmware": [{
"build": "0802",
"category": "Switches",
"compliant": "no",
"componentID": "1B33D6C57ECB04C14567A897DC604900",
"componentName": "IO Module 02",
"date": "2015-04-22",
"fixid": "lnvgy_fw_scsw_si4093-8.2.1.0_anyos_noarch",
"installedFirmware": [{
"build": "",
"date": "2014-05-20",
"name": "Boot ROM",
"versionList": ["7.8.3.15"]
},
{
"build": "",
"date": "2014-05-20",
"name": "Main Application 1",
"versionList": ["7.8.3.15"]
},
{
"build": "" ,
"name": "Main Application 2",
"date": "2014-05-20",
"versionList": ["7.8.3.15"]
}],
"level": "higher",
"packageExistence": "yes",
"reason": "The installed version is down level than the version defined in compliance policy.",
"versionList": ["8.2.1.0"]
}],
"uuid": "1B33D6C57ECB04C14567A897DC604900"
}],
"xITEs": [{
"deviceCompliant": "",
"message": [],
"policyName": "",
"supported": "true",
"targetFirmware": [],
"uuid": "69BDF8912E5211E4998B40F2E99033F0"
}]
}
{
"racklist": [{
"policyName": "",
"endpointCompliant": "",
"targetFirmware": [],
"message": [],
"uuid": "200B8108289D11E3878E000AF725674C"
}]
},
{
"complexlist": []
},
{
"rackswitchlist": []
},
{
"storagelist": []
}]
}
Give documentation feedback