environ
environ function
Type: Function
Get an environment variable.
| Argument | Type | Description |
|---|---|---|
var |
string (required) | Extract the var from the environment. |
Required permissions: MACHINE_STATE
Platforms: macOS, Linux, Windows
Source: vql/common/env.go
environ plugin
Type: Plugin
The row returned will have all environment variables as columns. If the var parameter is provided, only those variables will be provided.
| Argument | Type | Description |
|---|---|---|
vars |
list of string | Extract these variables from the environment and return them one per row |
Required permissions: MACHINE_STATE
Platforms: macOS, Linux, Windows
Source: vql/common/env.go