Updated on 2025-04-18 GMT+08:00

ccictl api-resources

Scenario

Print the supported API resources on the server.

ccictl api-resources [flags]

Examples

# Print the supported API resources on the server.
ccictl api-resources

# Print the supported API resources with more information.
ccictl api-resources -o wide

# Print the supported API resources sorted by a column.
ccictl api-resources --sort-by=name

# Print the supported namespaced resources.
ccictl api-resources --namespaced=true

# Print the supported non-namespaced resources.
ccictl api-resources --namespaced=false

Print the supported API resources with a specific API group.
ccictl api-resources --api-group=cci

Options

-api-group string

Only the resources in a specified API group are printed.

--cached

If available, the cached resource list will be used.

-h, --help

Help information for api-resources

--namespaced     Default: true

If the value is false, non-namespaced resources will be returned. Otherwise, namespaced resources are returned by default.

--no-headers

When the default or custom column output format is used, do not print the headers (which are printed by default).

-o, --output string

Output format. The value can be wide or name.

--sort-by string

If the value is not empty, the resource list is sorted using the specified field, which can be "name" or "kind".

--verbs strings

Filter the resources that support the specified verb.

The following ccictl options can also be used in subcommands:

Parent command options