@@ -66,6 +66,7 @@ If you include this widget path when setting up a custom alarm, you can use it m
6666
6767## Configuration
6868``` java
69+
6970@ConfigDesc (" Collector connection infos - eg) host:6100:id:pw,host2:6100:id2:pw2" )
7071@ConfigValueType (ValueType . COMMA_SEPARATED_VALUE )
7172public String net_collector_ip_port_id_pws = " 127.0.0.1:6100:admin:admin" ;
@@ -82,8 +83,10 @@ public String net_http_api_auth_ip_header_key;
8283
8384@ConfigDesc (" Enable api access control by JSESSIONID of Cookie" )
8485public boolean net_http_api_auth_session_enabled = true ;
85- @ConfigDesc (" api http session timeout" )
86+ @ConfigDesc (" api http session timeout(sec) " )
8687public int net_http_api_session_timeout = 3600 * 24 ;
88+ @ConfigDesc (" Enable api access control by Bearer token(of Authorization http header) - get access token from /user/loginGetToken." )
89+ public boolean net_http_api_auth_bearer_token_enabled = false ;
8790
8891@ConfigDesc (" api access allow ip addresses" )
8992@ConfigValueType (ValueType . COMMA_SEPARATED_VALUE )
@@ -397,21 +400,77 @@ public int log_keep_days = 30;
397400 - ` serverId ` : (optional if single server)
398401
399402#### - ` GET /v1/kv/{key} `
400- - get value of given key from scouter server's key-value store
403+ - get value of given key from the scouter server's key-value store. (in the global key space)
401404 - ** Auth** : required
402405 - ** Path params**
403406 - ` key ` : (required)
404407 - ** Query params**
405408 - ` serverId ` : (optional if single server)
406409
407410#### - ` PUT /v1/kv `
408- - set key and value and store it to scouter server's key-value store
411+ - store it to the scouter server's key-value store. (in the global key space)
409412 - ** Auth** : required
410413 - ** Request body (type : application/json)**
411414 - ` key ` : (required)
412415 - ` value ` : (required)
413416 - ` serverId ` : (required)
414417
418+ #### - ` GET /v1/kv/{keys}/:bulk `
419+ - get values of given keys from the scouter server's key-value store. (in the global key space)
420+ - ** Auth** : required
421+ - ** Path params**
422+ - ` keys ` : (required) keys by comma separator. also allowed with bracket. eg) mykey-1,mykey2 or [ mykey-1,mykey2]
423+ - ** Query params**
424+ - ` serverId ` : (optional if single server)
425+
426+ #### - ` PUT /v1/kv/:bulk `
427+ - store key&values to the scouter server's key-value store. (in the global key space)
428+ - ** Auth** : required
429+ - ** Request body (type : application/json)**
430+ - ` kvList ` : (required) array of key & value
431+ - ` key ` : (required)
432+ - ` value ` : (required)
433+ - ` serverId ` : (required)
434+
435+ #### - ` GET /v1/kv/space/{keySpace}/{key} `
436+ - get value of given key from the key space of scouter server's key-value store.
437+ - ** Auth** : required
438+ - ** Path params**
439+ - ` keySpace ` : (required)
440+ - ` key ` : (required)
441+ - ** Query params**
442+ - ` serverId ` : (optional if single server)
443+
444+ #### - ` PUT /v1/kv/space/{keySpace} `
445+ - store it to the key space of scouter server's key-value store
446+ - ** Auth** : required
447+ - ** Path params**
448+ - ` keySpace ` : (required)
449+ - ** Request body (type : application/json)**
450+ - ` key ` : (required)
451+ - ` value ` : (required)
452+ - ` serverId ` : (required)
453+
454+ #### - ` GET /v1/kv/space/{keySpace}/{keys}/:bulk `
455+ - get values of given keys from the key space of scouter server's key-value store
456+ - ** Auth** : required
457+ - ** Path params**
458+ - ` keySpace ` : (required)
459+ - ` keys ` : (required) keys by comma separator. also allowed with bracket. eg) mykey-1,mykey2 or [ mykey-1,mykey2]
460+ - ** Query params**
461+ - ` serverId ` : (optional if single server)
462+
463+ #### - ` PUT /v1/kv/space/{keySpace}/:bulk `
464+ - store key&values to the key space of scouter server's key-value store
465+ - ** Auth** : required
466+ - ** Path params**
467+ - ` keySpace ` : (required)
468+ - ** Request body (type : application/json)**
469+ - ` kvList ` : (required) array of key & value
470+ - ` key ` : (required)
471+ - ` value ` : (required)
472+ - ` serverId ` : (required)
473+
415474#### - ` GET /v1/object/host/realTime/top/ofObject/{objHash} `
416475 - retrieve all OS processes cpu, memory usage of the given object
417476 - ** Auth** : required
@@ -420,6 +479,23 @@ public int log_keep_days = 30;
420479 - ** Query params**
421480 - ` serverId ` : (optional if single server)
422481
482+ #### - ` PUT /v1/user/loginGetToken `
483+ - login with id & password, and get bearer token.
484+ - this token required on Authorization header for authorized request.
485+ - auth header example : ` Authorization: Bearer V1.B3R4FSGEF3POJ.me `
486+ - ** Auth** : none
487+ - ** Request body (type : application/json)**
488+ - ` user ` : (required)
489+ - ` id ` : (required)
490+ - ` password ` : (required)
491+ - ` serverId ` : (required)
423492
424-
425-
493+ #### - ` PUT /v1/user/login `
494+ - login with id & password for traditional web application.
495+ - this api is answered including with SET-COOKIE response header.
496+ - ** Auth** : none
497+ - ** Request body (type : application/json)**
498+ - ` user ` : (required)
499+ - ` id ` : (required)
500+ - ` password ` : (required)
501+ - ` serverId ` : (required)
0 commit comments