Summary
          Get smart template errors
          Description
          Get the smart template instance from xpath expressions
          Route
          POST /golden_config/getSmartTemplateInstance
          Roles
          
            admin
engineering
support
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | complianceErrorsClassified | object | yes | Array of errors, device and tree information | 
            
          
          
            Copied to Clipboard
            
            {
  "complianceErrorsClassified": {
    "regexErrors": [
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
        "value": "Ew"
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
        "value": -76359689.10356516
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
        "value": "ToyDwNgt"
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
        "value": 37419711.40509781
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
        "value": false
      }
    ],
    "deletionErrors": [
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
        "value": true
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
        "value": "fVdTldbIyo"
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
        "value": -4375637.110560283
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
        "value": "SZip"
      }
    ],
    "regularErrors": [
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
        "value": -20098092.07671678
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
        "value": true
      },
      {
        "xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
        "value": 55777965.07034588
      }
    ]
  }
}
           
          
            Copied to Clipboard
            
            {
  "type": "object",
  "properties": {
    "complianceErrorsClassified": {
      "$ref": "complianceErrorsClassified"
    }
  },
  "required": [
    "complianceErrorsClassified"
  ],
  "additionalProperties": false
}
           
          Return
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | smartTemplateInstance | object | Errors with the instance for dry run in smart template | 
            
          
          
            Copied to Clipboard
            
            {
  "regularErrors": {
    "variables": {
      "VnkcNUzb": [
        {
          "MPWywA": {
            "sFW": "aliqua in quis mollit",
            "jKVPSgfQqa": "aliqua adipisicing",
            "WsOCFYaD": "Excepteur ut consectetur",
            "QCpWaS": "ut in nostrud ex ea",
            "F": "magna"
          }
        }
      ]
    },
    "faml": {
      "_attr": {
        "type": "keyword",
        "ns": "http://tail-f.com/ns/ncs",
        "prefix": "ncs",
        "condition": "cant",
        "severity": "error"
      },
      "_value": "T"
    },
    "action": "create"
  },
  "deletionErrors": {
    "xpaths": [
      "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
      "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname"
    ]
  }
}
           
          
            Copied to Clipboard
            
            {
  "type": "object",
  "properties": {
    "regexErrors": {
      "type": "object"
    },
    "regularErrors": {
      "$ref": "smartTemplateInstance"
    },
    "deletionErrors": {
      "properties": {
        "xpaths": {
          "type": "array",
          "items": {
            "type": "string",
            "examples": [
              "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
              "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
              "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version"
            ]
          }
        }
      },
      "required": [
        "xpaths"
      ]
    }
  },
  "required": [
    "regexErrors",
    "regularErrors",
    "deletionErrors"
  ]
}