REST Resources

/api/space/device-management/devices/{device-id}/compute-configlet-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 and fetched against device configuration xml
POST /devices/{device-id}/compute-configlet-parameter-valuesVersion 5

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

Sample Usage

POST /devices/{device-id}/compute-configlet-parameter-values


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    device-idIntegerPathDevice ID Y
  • Sample Input XML:
    <compute-configlet-parameter-values-request>
         <configlet href="/api/space/configuration-management/cli-configlets/2588695"/>
         <compute-configlet-parameter-values>
               <compute-configlet-parameter-value>
                   <parameter href="/api/space/configuration-management/cli-configlets/2588695/cli-configlet-params/2588696"/>
                   <dependent-parameter-values total="1">
                         <dependent-parameter-value>
                             <parameter href="/api/space/configuration-management/cli-configlets/2588695/cli-configlet-params/2588697"/>
                             <parameter-value>test_dependent_pramerter_value</parameter-value>
                         </dependent-parameter-value>
                   </dependent-parameter-values>
               </compute-configlet-parameter-value>
         </compute-configlet-parameter-values>
    </compute-configlet-parameter-values-request>

  • Sample Output XML:
    <compute-configlet-parameter-values-response uri="/api/space/device-management/devices/2228251/compute-configlet-parameter-values">
         <compute-configlet-parameter-values>
               <compute-configlet-parameter-value>
                   <parameter
                         href="/api/space/configuration-management/cli-configlets/2588695/cli-configlet-params/2588696">
                         <param-id>2588696</param-id>
                         <name>AuthType</name>
                         <configlet-id>2228251</configlet-id>
                   </parameter>
                   <parameter-value>authentication-sha</parameter-value>
                   <possible-values>
                         <possible-value>authentication-sha</possible-value>
                         <possible-value>authentication-none</possible-value>
                         <possible-value>authentication-md5</possible-value>
                   </possible-values>
               </compute-configlet-parameter-value>
         </compute-configlet-parameter-values>
    </compute-configlet-parameter-values-response>

  • Sample Input JSON:
    {
       "compute-configlet-parameter-values-request" : {
         "configlet" : {
           "@href" : "/api/space/configuration-management/cli-configlets/2588695"
         } ,
         "compute-configlet-parameter-values" : {
           "compute-configlet-parameter-value" : {
             "parameter" : {
               "@href" : "/api/space/configuration-management/cli-configlets/2588695/cli-configlet-params/2588696"
             } ,
             "dependent-parameter-values" : {
               "@total" : "1" ,
               "dependent-parameter-value" : {
                 "parameter" : {
                   "@href" : "/api/space/configuration-management/cli-configlets/2588695/cli-configlet-params/2588697"
                 } ,
                 "parameter-value" : "test_dependent_pramerter_value"
               }
             }
           }
         }
       }
    }

  • Sample Output JSON:
    {
       "compute-configlet-parameter-values-response" : {
         "@uri" :
         "/api/space/device-management/devices/2228251/compute-configlet-parameter-values" ,
         "compute-configlet-parameter-values" : {
           "compute-configlet-parameter-value" : {
             "parameter" : {
               "@href" : "/api/space/configuration-management/cli-configlets/2588695/cli-configlet-params/2588696" ,
               "@uri" : "/api/space/device-management/devices/2228251/compute-configlet-parameter-values" ,
               "param-id" : "2588696" ,
               "name" : "AuthType" ,
               "configlet-id" : "2228251"
             } ,
             "parameter-value" : "authentication-sha" ,
             "possible-values" : {
               "possible-value" : "authentication-sha"
               "possible-value" : "authentication-none"
               "possible-value" : "authentication-md5"
             }
           }
         }
       }
    }

  • Access Control

    The following capabilities are required to access this API: ApplyCliTemplateCap, ReadDevices