/api/space/device-management/devices/{device-id}/validate-cli-configlet

The following operation is supported on this resource:

  • POST - Validates the Cli Configlet on the Device with the Parameters if any
POST /devices/{device-id}/validate-cli-configletVersion 5

Validates the Cli Configlet on the Device with the Parameters if any.

Sample Usage

This API makes an asynchronous method call, so you can, optionally, specify queue and schedule parameters:

POST /devices/{device-id}/validate-cli-configlet?queue=<queue>&schedule=<schedule>


Note: The queue URL denoted by <queue> must have been created already.


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    device-idIntegerPathUnique ID of the Device Y
    queueQueue URLQueryA fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage)N
    schedulecron-like-expressionQuerySchedule this API in the future, by specifying a cron-like-expression (See Job Scheduling)N
  • Sample Input XML:
    <validate-cli-configlet>
         <configlet href="/api/space/configuration-management/cli-configlets/{id}"/>
         <cli-configlet-params>
               <cli-configlet-param>
                   <parameter href="/api/space/configuration-management/cli-configlets/{configletId}/cli-configlet-params/{paramId}"/>
                   <parameter-value>String</parameter-value>
               </cli-configlet-param>
         </cli-configlet-params>
    </validate-cli-configlet>

  • Sample Input JSON:
    {
       "validate-cli-configlet" : {
         "configlet" : {
           "@href" : "/api/space/configuration-management/cli-configlets/{id}"
         } ,
         "cli-configlet-params" : {
           "cli-configlet-param" : {
             "parameter" : {
               "@href" :
               "/api/space/configuration-management/cli-configlets/{configletId}/cli-configlet-params/{paramId}"
             } ,
             "parameter-value" : "String"
           }
         }
       }
    }

  • Access Control

    The following capabilities are required to access this API: ApplyCliTemplateCap2