Skip to main content

Get

Show one method of a behavior: its fields, constraints, output and examples.

Each input field is a flag of its command and a field of its request. --json has the JSON Schema of the input and the output, with each constraint that osapi checks before it queues the job.

osapi behavior method get [flags]

Examples​

osapi behavior method get --name sysctl --method update
osapi behavior method get --name sysctl --method update --json

Flags​

FlagDescriptionDefault
--methodThe method, from osapi behavior get (required)
--nameThe behavior, from osapi behavior list (required)

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml

Output tells how the result is printed, and what --json gives.