Subversion Edge Secure Port API

Use this API to find out the SSL port number for HTTPS communications.

The Subversion Edge console runs simultaneous listeners for plain HTTP and HTTPS communications. Out of the box, the ports for these are 3343 and 4434 respectively. However, as the administrator, you can customize them and disable plain HTTP. If plain HTTP is disabled, the HTTP listener redirects to the HTTPS listener.

The Discovery Service advertises the plain HTTP location via mDns (Bonjour); so you can easily find the URL for plain HTTP. If you need to use HTTPS for API communications, you must first access the Secure Port API via plain HTTP to find the SSL port.

This API is available with Subversion Edge 2.2.0 (and later). It supports only the GET method.
Note: The following examples show request bodies and responses in JSON format, but XML is equally valid.

GET

HTTP method and URL
GET /csvn/api/1/securePort?format=json
Authentication / Authorization All Subversion Edge users (ROLE_USER)
Response The response contains the SSL port number and whether or not SSL is required for all other API calls are indicated in the response.

Example: