/api/space/device-management/devices/{id}/configurations/raw/match-content
The following operations are supported on this resource:
POST /api/space/device-management/devices/{id}/configurations/raw/match-content (v2)
This API is used to match raw configuration content (configuration without applying configuration groups) of a device.
Access Control
The following capabilities are required to access this API:
"ReadDevices"
Example Usage
POST /api/space/device-management/devices/{id}/configurations/raw/match-contentParameters
Name | Type | URI Type | Description | Required |
device-id | Integer | Path | The ID of the device whose raw configuration content will be matched | Y |
Content Types
-
Consumes content types:
application/vnd.net.juniper.space.device-management.match-raw-content+xml;version=2;charset=UTF-8
application/vnd.net.juniper.space.device-management.match-raw-content+json;version=2;charset=UTF-8 -
Produces content types:
application/vnd.net.juniper.space.device-management.match-raw-content+xml;version=2
application/vnd.net.juniper.space.device-management.match-raw-content+json;version=2 -
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":""
}
}
For other deprecated versions of this API, refer to :
version 1