SSR REST API with swagger




Access


https://    proxy-15069.onramp.128technology.com/documentation/swagger 
List all routerscurl -X GET "https://192.168.0.209/api/v1/router"
List all services / routers
https://192.168.0.209/api/v1/service?router=Branch1

state of a service
https://192.168.0.209/api/v1/service/ipsec1?router=Branch1

GET config of a service 

https://192.168.0.209/api/v1/config/running/authority/service/ipsec1

config service
{
  "name": "ipsec1",
  "id": 17,
  "service-group": null,
  "serviceGroup": null,
  "description": null,
  "enabled": true,  <<<<<<<<<<<<
  "tenant": null,
  "scope": "private",
  "security": "internal",
  "tap-multiplexing": false,
  "tapMultiplexing": false,
  "address": [
    "9.9.9.9/32"
  ],
  "application-name": [],
  "applicationName": [],
  "domain-name": [],
  "domainName": [],
  "domain-name-category": [],
  "domainNameCategory": [],
  "generate-categories": false,
  "generateCategories": false,
  "url": [],
  "subcategory": [],
  "access-policy-generated": false,
  "accessPolicyGenerated": false,
  "service-policy": null,
  "servicePolicy": null,
  "share-service-routes": true,
  "shareServiceRoutes": true,
  "source-nat": "network-interface",
  "sourceNat": "network-interface",
  "ttl-padding": "neighborhood",
  "ttlPadding": "neighborhood",
  "application-type": "generic",
  "applicationType": "generic",
  "fqdn-resolution-type": "v4",
  "fqdnResolutionType": "v4",
  "generated": false
}
Disable the service

curl -X PATCH "https://192.168.0.209/api/v1/config/running/authority/service/ipsec1"


{

"enabled": "false"
}