otdfctl policy attributes list
list - List attribute definitions
Synopsis
otdfctl policy attributes list [flags]Description
By default, the list will only provide active attributes if unspecified, but the filter can be controlled with the --state flag.
For more general information about attributes, see the attributes subcommand.
Search Fields
The --search term is trimmed and matched as a substring against these values:
| Value | Description |
|---|---|
| Attribute FQN | Fully qualified attribute definition name, such as https://example.com/attr/classification |
Sort Options
Use --sort <field> with optional --order <direction>. Either flag may be omitted.
| Direction | Description | Default |
|---|---|---|
asc | Ascending order | No |
desc | Descending order | Yes |
| Field | Description | Default |
|---|---|---|
name | Attribute name | No |
created_at | Creation timestamp | Yes |
updated_at | Last update timestamp | No |
Omit direction and let the server choose the default direction:
otdfctl policy attributes list --sort name
Omit field and let the server choose the default field:
otdfctl policy attributes list --order asc
Example
otdfctl policy attributes list
Search attributes by FQN:
otdfctl policy attributes list --search classification
Sort attributes by name ascending:
otdfctl policy attributes list --sort name --order asc
Options
-s,--state <state>- Filter by state (required:
false) (default:active)
-l,--limit <limit>- Limit retrieved count (required:
false)
-o,--offset <offset>- Offset (page) quantity from start of the list (required:
false)
-
--search <search> - Search term to filter results (required:
false)
-
--sort <sort> - Sort list results by field (required:
false)
-
--order <order> - Sort order direction. Accepted values are asc and desc (required:
false)
Aliases
l