Skip to main content

List

List the types for values and the services of the client.

osapi sdk list

Examples​

osapi sdk list
osapi sdk list --json

Result​

The command prints:

$ osapi sdk list
SDK (2):
  KIND     NAME         COUNT  DOC
  type     ContentType  2      ContentType is how a deploy treats a file.
  service  Hostname     2      Read and set the hostname of each node.

With --json, the command prints:

{
"items": [
{
"kind": "type",
"name": "ContentType",
"count": 2,
"doc": "ContentType is how a deploy treats a file."
},
{
"kind": "service",
"name": "Hostname",
"count": 2,
"doc": "Read and set the hostname of each node."
}
]
}

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file; without one at the default path, osapi runs on the defaults/etc/osapi/osapi.yaml

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