Get
Show a behavior: its surfaces, chain, methods, types and telemetry.
It shows where osapi serves the behavior, its platforms, the programs that it runs with sudo, the behaviors that it uses and that use it, its methods with their routes and permissions, its types, its settings and its telemetry.
Uses lists the behaviors this one is built on. The agent builds their
providers first, and the methods of this behavior call theirs on the same host,
in the same job. If a behavior that it uses cannot run on a platform, this one
reports skipped there too. Used by lists the behaviors built on this one.
A behavior with Internal: yes has no route, no command and no permission. Only
the behaviors under Used by call it. osapi behavior method get shows one
method in full: its fields with their constraints, its output and its examples.
osapi behavior get [flags]
Examples
osapi behavior get --name sysctl
osapi behavior get --name sysctl --json
Flags
| Flag | Description | Default |
|---|---|---|
--name | The behavior, from osapi behavior list (required) |
Global flags
| Flag | Description | Default |
|---|---|---|
-d, --debug | Enable or disable debug mode | |
-j, --json | Enable JSON output | |
-f, --osapi-file | Path to config file | /etc/osapi/osapi.yaml |
Output tells how the result is printed, and what --json gives.