Grassfish

Links

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