Skip to main content

List data types

get
/api/pvlt/1.0/ctl/types

Lists the Vault data types.

See Data types for more information.

The role that performs this operation must have the CapTypesReader capability. See Access control for more information about how capabilities are used to control access to operations.

Request

Query parameters

  • custom_audit - string

    Custom audit information to be included in the audit log.

  • bundle - string

    If provided, return only types that depend on the bundle with the specified name.

  • options - array of strings

    Options for the operation. Options include:

    • show_builtins – show built-in properties.
    Each string:

Possible responses

The request is successful.

array of objects required*
Each object:

The data type and its function. default_transformer is the default transformer for the data type and should be taken from the transformers list.

  • name - string required*

    The name of a data type.

  • is_builtin - boolean

    Whether this data type is built-in or user defined.

  • base_type_name - string required*

    The name of the base data type.

  • description - string

    The description of a model.

  • validator - string

    The bundle and function name formatted as <bundle-name>.<function-name>.

  • normalizer - string

    The bundle and function name formatted as <bundle-name>.<function-name>.

  • transformers - array of strings

    The names of transformers that are supported for the data type.

    Each string:

    The bundle and function name formatted as <bundle-name>.<function-name>.

  • default_transformer - string

    The bundle and function name formatted as <bundle-name>.<function-name>.

  • creation_time - string

    The time when the data type was created.

Example
[
{
"name": "STRING",
"base_type_name": "STRING",
"description": "string",
"validator": "bundle1.function1",
"normalizer": "bundle1.function1",
"transformers": [
"bundle1.function1"
],
"default_transformer": "bundle1.function1"
}
]

Try the API

Authorization

Query parameters

Navigate to the docs of your local Vault installation to try the API directly from there.

Code examples

Example