Grassfish
- Links
Grassfish DS Manager Pro, Swagger UI (erste Anlaufstelle, um die Methoden des API anzuschauen): https://$HOST:$PORT/gv2/webservices/API/swagger/ui/index#/
API: https://webhelp.grassfish.tv/ClientWebservices_API/index.html
Online Help: https://webhelp.grassfish.tv/gv2/gf/help//11.12/STANDARD_en/Location.html
API
Der API-Zugriff muss separat freigeschaltet werden.
export HOST=127.0.0.1
export PORT=8080
export VER=1.12
Das Swagger Definition-File für das Grassfish DS Manager Pro API findet sich hier:
Authentication:
# per X-ApiKey (recommended)
curl --silent --request GET --header 'Accept: application/json' --header 'X-ApiKey: mytoken' 'https://$HOST:$PORT/gv2/webservices/API/v1.12/AppGroups'
# per X-Session-Id
curl --silent --request GET --header 'Accept: application/json' --header 'X-Session-Id: mytoken' 'https://$HOST:$PORT/gv2/webservices/API/v1.12/AppGroups'
Beispiel-Aufrufe:
curl --silent --request GET --header 'Accept: application/json' --header 'X-ApiKey: mytoken' 'https://$HOST:$PORT/gv2/webservices/API/v1.12/Licenses'
curl --silent --request GET --header 'Accept: application/json' --header 'X-ApiKey: mytoken' 'https://$HOST:$PORT/gv2/webservices/API/v1.12/Players'
curl --silent --request GET --header 'Accept: application/json' --header 'X-ApiKey: mytoken' "https://$HOST:$PORT/gv2/webservices/API/v1.12/Players/$i/Screens"
# LastStatusChange = Timestamp of last change from on/off to off/on
curl --silent --request GET --header 'Accept: application/json' --header 'X-ApiKey: mytoken' "https://$HOST:$PORT/gv2/webservices/API/v1.12/Players/$i/PendingFileTransfers"
Built on 2024-11-18