×
Back to Geneos FAQ
Rest-Extractor - Header value with static value and supported variable
Problem Copied
How does the header value work with a static value and a supported variable?
Examples Copied
- Basic static header - This sends a static
Authorizationheader with a bearer token.
Output:
- Header with a supported variable - Here,
$(restVariableOperatingEnv)could be a variable of a supported type, such asplainTextPassword, provided it is properly defined and populated in your configuration.
Output:
Important note Copied
-
The variables can be defined in managed entities, managed entity groups, types, environments, and operating environment: https://docs.itrsgroup.com/docs/geneos/current/processing/gateway-administration/gateway_user_variables_and_environments/index.html#define-variables
-
If you attempt to use something like:
and restValueEnv is a stdAESPassword, it will not work and may result in an unauthorized error. To pass credentials securely, consider using supported variable types.
| Headers | HTTP headers to include. Provide headers in key-value pairs. Note: If you specify an HTTP Content-Type in the key-value pairs, then this content type overrides the content type you might specify in the HTTP method for POST and PUT. |
HTTP headers accept key-value pairs, meaning they must be in plain text or encoded tokens.
Related articles Copied
- https://docs.itrsgroup.com/docs/geneos/current/collection/rest-extractor/index.html#overview
- docs.itrsgroup.com/docs/geneos/current/collection/rest-extractor/index.html#plugin-configuration
- https://docs.itrsgroup.com/docs/geneos/current/processing/gateway-administration/gateway_user_variables_and_environments/index.html
- https://docs.itrsgroup.com/docs/geneos/current/processing/configuration/gateway_operating_environment/index.html#operatingenvironment--var
["Geneos"]
["Geneos > Netprobe"]
["FAQ"]