informatique:docker:warp10:starter_kit
Ceci est une ancienne révision du document !
Table des matières
Starter Kit
Start Warp10
Démarrage docker Warp10 Standalone et WarpStudio :
docker run -d --restart=always --name="Warp10" -p 80:8080 -p 81:8081 warp10io/warp10:latest
Create Token
Getting Token - Génération d'un Token de démo valide 1 an :
florian@ubuntuNAS:~$ docker exec -u warp10 -it Warp10 warp10-standalone.sh worf MyGTS 31536000000 {"read":{"token":"_CMyoxjEHWECcDynChiuwHG.rIeaiIY1mrZSWdfS6bz6p1PqNH_gpkppoqgKyGlmdnueFuWUPyamxzKOz2Ss90YFkjDifWZP9yAjCBjrh5PXJuYrL5anJV","tokenIdent":"a98f77328f47d3fa","ttl":31536000000,"application":"MyGTS","applications":["MyGTS"],"owners":["0f573687-508c-4da7-925f-87a224f0b7fe"],"producer":"0f573687-508c-4da7-925f-87a224f0b7fe","producers":[]},"write":{"token":"AP_8QdbvhyjFJuuOoohNyHJClJd7ODr.vP5GMt.Y6irthsyFdeaZt_vx2CeCrQfpF465ADT1RKD5e488pteN2MhfVomQbEHAPX8Ra3foeYo","tokenIdent":"7af4eff80b201b04","ttl":31536000000,"application":"MyGTS","owner":"0f573687-508c-4da7-925f-87a224f0b7fe","producer":"0f573687-508c-4da7-925f-87a224f0b7fe"}}
Write GTS
Writing Data - On pousse une GTS :
curl -v -H 'X-Warp10-Token: my_write_token' --data-binary "1/48.44484:-4.46653/15000 GTS_demo{lieu=maison} 'Toctoc'" 'http://192.168.0.11:80/api/v0/update'
Un fichier de GTS :
curl -v -H 'X-Warp10-Token: my_write_token' --data-binary @eco2mix.gts 'http://192.168.0.11:80/api/v0/update'
Read GTS
Reading Data - On lit les GTS - ici via WarpStudio :
Delete GTS
Delete Data - On efface tout : ~.* url encoded :
curl -v -H 'X-Warp10-Token: my_write_token' 'http://192.168.0.11:80/api/v0/delete?deleteall&selector=~.%2A%7B%7D'{{:informatique:docker:warp10:bretagne_renouvelable_production_mw.png?nolink&1458x389}}
informatique/docker/warp10/starter_kit.1602320359.txt.gz · Dernière modification : 2025/01/14 11:19 (modification externe)