Summary
          Translate FAML to XPaths
          Description
          Translate FAML to XPath expressions
          Route
          POST /smart_template/phcfg/to/xpath
          Roles
          
            admin
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | phcfg | object | yes | FAML object | 
            
          
          
            Copied to Clipboard
            
            {
  "phcfg": {
    "_attr": {
      "type": "leaf",
      "ns": "http://tail-f.com/ns/config/1.0",
      "prefix": "ncs",
      "condition": "cant",
      "severity": "error"
    }
  }
}
           
          
          Return
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | xpath | array | Array of xpath expressions | 
            
          
          
            Copied to Clipboard
            
            [
  "/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:name",
  "/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:name",
  "/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:config/ios:hostname itential.com",
  "/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:name"
]
           
          
            Copied to Clipboard
            
            {
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:config/ios:hostname itential.com",
      "/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:name"
    ]
  }
}