/api/space/configuration-management/cli-configlets/{configlet-id}/compute-parameter-values

The following operation is supported on this resource:

  • POST - This API is used to compute(retrieve) parameter values based on the xpaths defined in that parameter of the configlet. This value is fetched against device configuration xml
POST /cli-configlets/{configlet-id}/compute-parameter-valuesVersion 3

This API is used to compute(retrieve) parameter values based on the xpaths defined in that parameter of the configlet. This value is fetched against device configuration xml.

Sample Usage

POST /cli-configlets/{configlet-id}/compute-parameter-values


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    configlet-idIntegerPathConfiglet ID Y
  • Sample Input XML:
    <compute-parameter-values-request>
         <device href="/api/space/device-management/devices/{id}"/>
         <compute-parameter-values>
               <compute-parameter-value>
                   <parameter href="/api/space/configuration-management/cli-configlets/{configletId}/cli-configlet-params/{paramId}"/>
                   <dependent-parameter-values total="Integer">
                         <dependent-parameter-value>
                             <parameter href="/api/space/configuration-management/cli-configlets/{configletId}/cli-configlet-params/{paramId}"/>
                             <parameter-value>String</parameter-value>
                         </dependent-parameter-value>
                   </dependent-parameter-values>
               </compute-parameter-value>
         </compute-parameter-values>
    </compute-parameter-values-request>

  • Sample Output XML:
    <compute-parameter-values-response uri="/api/space/configuration-management/cli-configlets/{configlet-id}/compute-parameter-values">
         <compute-parameter-values>
               <compute-parameter-value>
                   <parameter
                         href="/api/space/configuration-management/cli-configlets/{configletId}/cli-configlet-params/{paramId}" uri="/api/space/configuration-management/cli-configlets/{configlet-id}/compute-parameter-values">
                         <parameter-id>Integer</parameter-id>
                         <name>String</name>
                         <configlet-id>Integer</configlet-id>
                   </parameter>
                   <parameter-value>String</parameter-value>
                   <possible-values total="Integer">
                         <possible-value>String</possible-value>
                   </possible-values>
               </compute-parameter-value>
         </compute-parameter-values>
    </compute-parameter-values-response>

  • Sample Input JSON:
    {
       "compute-parameter-values-request" : {
         "device" : {
           "@href" : "/api/space/device-management/devices/{id}"
         } ,
         "compute-parameter-values" : {
           "compute-parameter-value" : {
             "parameter" : {
               "@href" :
               "/api/space/configuration-management/cli-configlets/{configletId}/cli-configlet-params/{paramId}"
             } ,
             "dependent-parameter-values" : {
               "@total" : "Integer" ,
               "dependent-parameter-value" : {
                 "parameter" : {
                   "@href" :
                   "/api/space/configuration-management/cli-configlets/{configletId}/cli-configlet-params/{paramId}"
                 } ,
                 "parameter-value" : "String"
               }
             }
           }
         }
       }
    }

  • Sample Output JSON:
    {
       "compute-parameter-values-response" : {
         "@uri" :
         "/api/space/configuration-management/cli-configlets/{configlet-id}/compute-parameter-values"
         ,
         "compute-parameter-values" : {
           "compute-parameter-value" : {
             "parameter" : {
               "@href" :
               "/api/space/configuration-management/cli-configlets/{configletId}/cli-configlet-params/{paramId}"
               ,
               "@uri" :
               "/api/space/configuration-management/cli-configlets/{configlet-id}/compute-parameter-values"
               ,
               "parameter-id" : "Integer" ,
               "name" : "String" ,
               "configlet-id" : "Integer"
             } ,
             "parameter-value" : "String" ,
             "possible-values" : {
               "@total" : "Integer" ,
               "possible-value" : "String"
             }
           }
         }
       }
    }

  • Access Control

    The following capabilities are required to access this API: ApplyCliTemplateCap