REST Resources

/api/space/device-management/devices/{id}/configurations/expanded/match-content

The following operation is supported on this resource:

  • POST - Match expanded configuration of device with groups
POST /devices/{id}/configurations/expanded/match-content
(Deprecated)
Version 2

This API is used to match expanded configuration content of a device with configuration groups expanded, using the inherit="inherit" option of the Junos OS "get-configuration" RPC.

.

Sample Usage

POST /devices/{id}/configurations/expanded/match-content


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    device-idIntegerPathThe ID of the device whose expanded configuration content will be matched. Y
  • Sample Input XML:

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
     <device-configuration>
       <deviceFamily>junos</deviceFamily>
         <deviceConfig>
           <![CDATA[<configuration>< version>9.5R2.7</version></configuration>]]>
         </deviceConfig>
     </device-configuration>

  • Sample Output XML:

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
     <status-message>
      <statusCode>Success</statusCode>
       <errorMessage></errorMessage>
       <errorDetails></errorDetails>
       <rpc_reply></rpc_reply>
       <rpc_request></rpc_request>
     </status-message>

  • Sample Input JSON:

    {
      "device-configuration":{
        "deviceFamily":"junos","deviceConfig":"{
          'configuration':{
            'version': '10.1R2.8122'
          }
        }"
      }
    }

  • Sample Output JSON:

    {
       "status-message":{
          "statusCode":"Success",
          "errorMessage":"",
          "errorDetails":"",
          "rpc_reply":"",
          "rpc_request":""
       }
    }

  • Access Control

    The following capabilities are required to access this API: DeviceConfiguration

      For other deprecated versions of this API, refer to :
    • version 1