/api/space/config-template-management/config-templates/{id}/versions/{template-ver}/exec-publish

The following operation is supported on this resource:

  • POST - Publish a specified template to a candidate configuration of a list of devices
POST /config-templates/{id}/versions/{template-ver}/exec-publishVersion 2

This API publishes the specified template to a candidate configuration for a list of devices. This API takes a list of device IDs as its parameter.

Sample Usage

POST /config-templates/{id}/versions/{template-ver}/exec-publish


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    idIntegerPathThe ID of the configuration template. Y
    template-verIntegerPathThe template version. Y
  • Sample Input XML:
    <exec-publish-request>
         <devices>
               <device href="/api/space/device-management/devices/{id}"/>
         </devices>
         <resolved-variables>
               <device>
                   <device-id>Integer</device-id>
                   <variables total="Integer">
                         <variable>
                             <values total="Integer">
                                   <value>String</value>
                             </values>
                             <name>String</name>
                         </variable>
                   </variables>
               </device>
         </resolved-variables>
    </exec-publish-request>

  • Sample Input JSON:
    {
       "exec-publish-request" : {
         "devices" : {
           "device" : {
             "@href" : "/api/space/device-management/devices/{id}"
           }
         } ,
         "resolved-variables" : {
           "device" : {
             "device-id" : "Integer" ,
             "variables" : {
               "@total" : "Integer" ,
               "variable" : {
                 "values" : {
                   "@total" : "Integer" ,
                   "value" : "String"
                 } ,
                 "name" : "String"
               }
             }
           }
         }
       }
    }

  • Access Control

    The following capabilities are required to access this API: AssignToDeviceCap