SMA1000シリーズの API ドキュメント
07/24/2024 0 People found this article helpful 166,106 Views
Description
- 管理 API
https://アプライアンス管理IP:8443/Console/Help
- セットアップに関する API
https://アプライアンス管理IP:8443/Setup/Help
Resolution
Curl を使用した 実例
セットアップ関連:
--
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Setup/Finish"
curl -kvu "local\admin:password" -X POST "https://YourApplianceAddress:8443/Setup/Cancel"
単純クエリー:
--
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"
コネクトトンネルのブランディング:
--
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
設定:
--
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"
トラブルシューティング関連:
--
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
設定エクスポート / インポートとApply Changeの実行:
--
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"
アプライアンスのアップグレード / ロールバック、リスタート
--
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