Getting Categories

This section explains how to get categories.

Note

You can use the only the CLI or API to complete this task.

Using the CLI

Use the command to list categories.

oci optimizer category get --category-id <category_OCID>

For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

Using the API

Use the operation to get category metadata.