Secure Mobile Access API Documentation
07/25/2022 29 People found this article helpful 355,903 Views
Description
- Secure Mobile Access Management API
https://YourApplianceAddress:8443/Console/Help
- Secure Mobile Access appliance Setup API
https://YourApplianceAddress:8443/Setup/Help
Resolution
Simple Examples using Curl
Setup Specific:
--
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Setup/Finish"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Setup/Cancel"
Simple Queries:
--
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/SystemStatus" > YourSMA-status.txt
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/UserSessions" > YourSMA-users.txt
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Extensions"
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Licensing/FeatureLicenses"
Connect Tunnel Branding:
--
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Agents/ConnectTunnel/Branding"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Console/Agents/ConnectTunnel/Branding/Reset"
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Agents/ConnectTunnel/Branding/Default" --output DefaultBranding.zip
curl -kvu "local\admin:password" -H "Content-Type: multipart/form-data" -F "file=@CustomBranding.zip" -X POST "https://YourApplianceAddress:8443/Console/Agents/ConnectTunnel/Branding/Upload"
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Agents/ConnectTunnel/Branding/Custom" --output CustomBranding.zip
Configuration:
--
curl -kvu "local\admin:password" -H "Content-Type: application/json" -X PUT "https://YourApplianceAddress:8443/Console/ICMP?enabled=true"
curl -kvu "local\admin:password" -H "Content-Type: application/json" -X PUT "https://YourApplianceAddress:8443/Console/ICMP?Enabled=1"
Troubleshooting:
--
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Troubleshooting/Cores"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Console/Troubleshooting/Lookup" www.kernel.org
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Troubleshooting/NetworkTraffic/Captures"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Console/Troubleshooting/Ping" www.kernel.org
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Troubleshooting/Routes"
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Troubleshooting/Snapshot"
curl -kvu "local\admin:password" -H "Content-Type: application/json" -X POST "https://YourApplianceAddress:8443/Console/Troubleshooting/Snapshot/New?fullSnapshot=1" > snapshot.tgz
Export / Import and Apply Changes:
--
curl -kvu "local\admin:password" "https://YourApplianceAddress:8443/Console/Export" --output YourSMA-Config.aea
curl -kvu "local\admin:password" -H "Content-Type: multipart/form-data" -F "file=@YourSMA-Config.aea" -X POST "https://YourApplianceAddress:8443/Console/Import"
curl -kvu "local\admin:password" -H "Content-Type: multipart/form-data" -F "file=@YourSMA-Config.aea" -X POST "https://YourApplianceAddress:8443/Console/Import?partialImport=1"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Console/PendingChanges/Apply"
Appliance Upgrade / Rollback and Restart
--
curl -kvu "local\admin:password" -H "Content-Type: multipart/form-data" -F "file=@upgrade-12.4.2-05082.bin" -X POST "https://YourApplianceAddress:8443/Console/Update"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Console/Rollback"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Console/Restart"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Console/Rollback?hotfix=clt-hotfix-12.4.1-02965"
curl -kvu "local\admin:password" -X POST "https://YourAppliance.example:8443/Console/Rollback?hotfix=pform-hotfix-12.4.1-02994"
Related Articles
Categories
Was This Article Helpful?
YESNO