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

    Overview: This resource provides an interface to start applying hardening
              on the cluster.

     Methods: POST

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

Method POST: Apply hardening on the cluster.

        URL: POST /platform/<<version=3>>/hardening/apply

There are no query arguments for this method.

POST request body schema:
{
  "type": "object", 
  "description": "Apply hardening on the cluster.", 
  "properties": {
    "profile": {
      "type": "string", 
      "description": "Hardening profile."
    }, 
    "report": {
      "type": "boolean", 
      "description": "Option to only generate and display a report on current cluster configuration with respect to the expected configuation required to apply hardening. If his option is set to true, hardening is not applied after the report is displayed. By default, this option is false."
    }
  }
}

POST 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": {
        "message": {
          "type": "string", 
          "description": "Message text indicating if hardening apply operation started successfully or failed to start."
        }
      }
    }
  ]
}
