Skip to main content

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:

ValueDescription
Attribute FQNFully 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.

DirectionDescriptionDefault
ascAscending orderNo
descDescending orderYes
FieldDescriptionDefault
nameAttribute nameNo
created_atCreation timestampYes
updated_atLast update timestampNo

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