REST Resources
-
/ -
/config-template-definitions -
/config-template-definitions /{def-id} /config-templates /{template-id} -
/config-template-definitions /{id} -
/config-template-definitions /{id} /config-templates -
/config-template-definitions /{id} /configuration -
/config-templates -
/config-templates /config-templates-by-ids2 -
/config-templates /deleteTemplateWithVersions -
/config-templates /{from-template-id} /clone -
/config-templates /{id} -
/config-templates /{id} /exec-audit -
/config-templates /{id} /exec-deploy -
/config-templates /{id} /exec-publish -
/config-templates /{id} /exec-undeploy -
/config-templates /{id} /versions -
/config-templates /{id} /versions /{template-version} /exec-auditTemplate -
/config-templates /{id} /versions /{template-version} /exec-compareConfig -
/config-templates /{id} /versions /{template-ver} /exec-deploy -
/config-templates /{id} /versions /{template-ver} /exec-publish -
/config-templates /{id} /versions /{version-num} -
/config-templates /{id} /versions /{version} /configuration -
/config-templates /{template-id} /configuration -
/config-templates /{template-id} /device-associations -
/config-templates /{template-id} /versions /{version-num} /device-associations -
/export-compare-template-job-results -
/jobs /{job-id} /compare-template-job-results -
/templates /{template-id} /devicesAll -
/templates /{template-id} /template-versions
/api/space/config-template-management/config-templates/{template-id}/device-associations
The following operation is supported on this resource:
- GET - Get all device template associations for a specified configuration template
GET /config-templates/{template-id}/device-associations | Version 1 |
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.
Sample Usage
GET /config-templates/{template-id}/device-associations
-
Parameters:
Name Type URI Type Description Required template-id Integer Path The ID of the configuration template. Y
-
Accept Headers:
application/vnd.net.juniper.space.config-template-management.device-associations+xml;version=1
application/vnd.net.juniper.space.config-template-management.device-associations+json;version=1
<device-associations total="Integer" uri="/api/space/config-template-management/config-templates/{template-id}/device-associations">
<device-association>
<device-name>String</device-name>
<current-template-ver>Integer</current-template-ver>
<deploy-status>DEPLOYED</deploy-status>
<audit-status>OUTOFSYNC</audit-status>
<template-version>Integer</template-version>
<published-template-version>Integer</published-template-version>
<deployed-by>String</deployed-by>
<domain-id>Integer</domain-id>
<domain-name>String</domain-name>
<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 href="/api/space/device-management/devices/{deviceId}"/>
<deployment-job href="/api/space/job-management/jobs/{jobId}"/>
<audit-job href="/api/space/job-management/jobs/{auditJobId}"/>
</device-association>
</device-associations>
{
"device-associations" : {
"@total" : "Integer" ,
"@uri" :
"/api/space/config-template-management/config-templates/{template-id}/device-associations"
,
"device-association" : {
"device-name" : "String" ,
"current-template-ver" : "Integer" ,
"deploy-status" : "DEPLOYED" ,
"audit-status" : "OUTOFSYNC" ,
"template-version" : "Integer" ,
"published-template-version" : "Integer" ,
"deployed-by" : "String" ,
"domain-id" : "Integer" ,
"domain-name" : "String" ,
"audit-job-id" : "Integer" ,
"job-id" : "Integer" ,
"publish-status" : "PUBLISHED" ,
"order-seq" : "Integer" ,
"device-id" : "Integer" ,
"device" : {
"@href" : "/api/space/device-management/devices/{deviceId}"
} ,
"deployment-job" : {
"@href" : "/api/space/job-management/jobs/{jobId}"
} ,
"audit-job" : {
"@href" : "/api/space/job-management/jobs/{auditJobId}"
}
}
}
}
Access Control
The following capabilities are required to access this API: ViewTemplateDeployment