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

  1. Basic static header - This sends a static Authorization header with a bearer token.

Geneos - Rest-Extractor - Header value with static value and supported variable

Output:

Geneos - Rest-Extractor - Header value with static value and supported variable

  1. Header with a supported variable - Here, $(restVariableOperatingEnv) could be a variable of a supported type, such as plainTextPassword, provided it is properly defined and populated in your configuration.

Geneos - Rest-Extractor - Header value with static value and supported variable

Geneos - Rest-Extractor - Header value with static value and supported variable

Output:

Geneos - Rest-Extractor - Header value with static value and supported variable

Important note Copied

  1. 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

  2. If you attempt to use something like:

Geneos - Rest-Extractor - Header value with static value and supported variable

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.

["Geneos"] ["Geneos > Netprobe"] ["FAQ"]

Was this topic helpful?