Configuration Template Management API

/api/space/config-template-management/config-templates/{template-id}/device-associations

The following operations are supported on this resource:

  • GET - Gets all device-template associations for a specified configuration template

GET /api/space/config-template-management/config-templates/{template-id}/device-associations (v1)


This API gets all device-template associations for a specified configuration template. Associations show which devices are associated with which templates, as well as other deployment, audit, and publishing information.

Access Control

The following capabilities are required to access this API:
"AddDeployedDevices"


Example Usage

GET /api/space/config-template-management/config-templates/{template-id}/device-associations


Parameters

NameTypeURI TypeDescriptionRequired
template-idIntegerPathThe ID of the configuration template. Y

Content Types

  • Produces content types:
    application/vnd.net.juniper.space.config-template-management.device-associations+xml;version=1;q=0.01
    application/vnd.net.juniper.space.config-template-management.device-associations+json;version=1;q=0.01


  • Sample Output XML:
    <device-associations total="Integer" uri="/api/space/config-template-management/config-templates/{template-id}/device-associations">
         <device-association>
               <device-name>String</device-name>
               <deploy-status>DEPLOYED</deploy-status>
               <audit-status>OUTOFSYNC</audit-status>
               <template-version>Integer</template-version>
               <published-template-version>Integer</published-template-version>
               <audit-job-id>Integer</audit-job-id>
               <job-id>Integer</job-id>
               <publish-status>PUBLISHED</publish-status>
               <order-seq>Integer</order-seq>
               <device-id>Integer</device-id>
         </device-association>
    </device-associations>


  • Sample Output JSON:
    {
       "device-associations" : {
         "@total" : "Integer" ,
         "@uri" :
         "/api/space/config-template-management/config-templates/{template-id}/device-associations"
         ,
         "device-association" : {
           "device-name" : "String" ,
           "deploy-status" : "DEPLOYED" ,
           "audit-status" : "OUTOFSYNC" ,
           "template-version" : "Integer" ,
           "published-template-version" : "Integer" ,
           "audit-job-id" : "Integer" ,
           "job-id" : "Integer" ,
           "publish-status" : "PUBLISHED" ,
           "order-seq" : "Integer" ,
           "device-id" : "Integer"
         }
       }
    }