Resource URL: /platform/<<version=3>>/hardening/state

    Overview: This resource exposes the state of hardening operation.

     Methods: GET

********************************************************************************

Method GET: Get the state of the current hardening operation, if one is
            happening.  Note that this is different from the /status resource,
            which returns the overall hardening status of the cluster.

       URL: GET /platform/<<version=3>>/hardening/state

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "state": {
          "type": "object", 
          "description": "The state of hardening operation on the cluster.", 
          "properties": {
            "issues_file": {
              "type": [
                "string", 
                "null"
              ], 
              "description": "Full path name of issues file, or null if no issues file is configured. This file contains all issues found when the cluster configuration is checked against expected configuration."
            }, 
            "message": {
              "type": "string", 
              "description": "This contains more information and details about the operation state."
            }, 
            "state": {
              "enum": [
                "Disabled", 
                "Checking_Before_Apply", 
                "Issues_Found_Before_Apply", 
                "Applying", 
                "Enabled", 
                "Checking_Before_Revert", 
                "Issues_Found_Before_Revert", 
                "Reverting", 
                "Failed", 
                "Resolving", 
                "Issues_Resolved", 
                "No_Issues_Found", 
                "Resolved_failed", 
                "Issues_Found_In_Report", 
                "No_Issues_Found_In_Report", 
                "Other"
              ], 
              "type": "string", 
              "description": "The state of the hardening operation. In case there is no operation currently going on, this will display the last state of operation."
            }
          }
        }
      }
    }
  ]
}
