/api/space/configuration-management/match-cli-configlets-by-context

The following operation is supported on this resource:

  • POST - This API is used to retrieve the configlets matched by context list<br> Example : <table> <tr><td>1</td><td>/device[name="EX4200-200"]/configuration/interfaces/interface/unit</td></tr> <tr><td>2</td><td>/device[name="EX4200-200"]</td></tr> </table>
POST /match-cli-configlets-by-contextVersion 3

This API is used to retrieve the configlets matched by context list
Example :
1/device[name="EX4200-200"]/configuration/interfaces/interface/unit
2/device[name="EX4200-200"]
.

Sample Usage

POST /match-cli-configlets-by-context


  • Sample Input XML:
    <match-cli-configlets-by-context-request>
         <context-list>
               <context>String</context>
         </context-list>
    </match-cli-configlets-by-context-request>

  • Sample Output XML:
    <match-cli-configlets-by-context-response uri="/api/space/configuration-management/match-cli-configlets-by-context">
         <cli-configlets>
               <cli-configlet
                   href="/api/space/configuration-management/cli-configlets/{id}" uri="/api/space/configuration-management/match-cli-configlets-by-context">
                   <id>Integer</id>
                   <name>String</name>
                   <latest-version>String</latest-version>
                   <category>String</category>
                   <description>String</description>
                   <device-family>String</device-family>
                   <execution-type>String</execution-type>
                   <reference-number>Integer</reference-number>
                   <domain-id>Integer</domain-id>
                   <domain-name>String</domain-name>
                   <creation-time>java.util.Date</creation-time>
                   <last-updated-time>java.util.Date</last-updated-time>
                   <last-modified-by>String</last-modified-by>
               </cli-configlet>
         </cli-configlets>
    </match-cli-configlets-by-context-response>

  • Sample Input JSON:
    {
       "match-cli-configlets-by-context-request" : {
         "context-list" : {
           "context" : "String"
         }
       }
    }

  • Sample Output JSON:
    {
       "match-cli-configlets-by-context-response" : {
         "@uri" :
         "/api/space/configuration-management/match-cli-configlets-by-context" ,
         "cli-configlets" : {
           "cli-configlet" : {
             "@href" : "/api/space/configuration-management/cli-configlets/{id}" ,
             "@uri" :
             "/api/space/configuration-management/match-cli-configlets-by-context" ,
             "id" : "Integer" ,
             "name" : "String" ,
             "latest-version" : "String" ,
             "category" : "String" ,
             "description" : "String" ,
             "device-family" : "String" ,
             "execution-type" : "String" ,
             "reference-number" : "Integer" ,
             "domain-id" : "Integer" ,
             "domain-name" : "String" ,
             "creation-time" : "java.util.Date" ,
             "last-updated-time" : "java.util.Date" ,
             "last-modified-by" : "String"
           }
         }
       }
    }

  • Access Control

    The following capabilities are required to access this API: ManageCliTemplatesCap