REST Resources
/api/space/hardware-catalog/svn/test-connection
The following operations are supported on this resource:
GET /svn/test-connection | Version 1 |
Tests the credential of the SVN repository that is configured to download hardware catalog.
Sample Usage
GET /svn/test-connection
- Accept Headers:
application/vnd.net.juniper.space.hardware-catalog.test-connection-response+xml;version=1
application/vnd.net.juniper.space.hardware-catalog.test-connection-response+json;version=1
<test-connection-response>
<value>false</value>
</test-connection-response>
{
" test-connection-response": {
"value": false
}
}
Access Control
The following capabilities are required to access this API: HardwareCatalog
POST /svn/test-connection | Version 1 |
Tests the credentials of the SVN repository input by user to download hardware catalog.
Sample Usage
POST /svn/test-connection
- Content-Type Headers:
application/vnd.net.juniper.space.hardware-catalog.test-connection-request+xml;version=1;charset=UTF-8
application/vnd.net.juniper.space.hardware-catalog.test-connection-request+json;version=1;charset=UTF-8 - Accept Headers:
application/vnd.net.juniper.space.hardware-catalog.test-connection-response+xml;version=1
application/vnd.net.juniper.space.hardware-catalog.test-connection-response+json;version=1
<test-connection-request>
<svn-trunk-url>https://xml.juniper.net/dmi-int/repository/trunk</svn-trunk-url>
<svn-user-name>super</svn-user-name>
<svn-user-password>**********</svn-user-password>
</test-connection-request>
<test-connection-response>
<value>false</value>
</test-connection-response>
{
"test-connection-request" : {
"svn-trunk-url" : "https://xml.juniper.net/dmi-int/repository/trunk" ,
"svn-user-name" : "super" ,
"svn-user-password" : "**********"
}
}
{
" test-connection-response": {
"value": false
}
}
Access Control
The following capabilities are required to access this API: HardwareCatalog