security securable-types#

Возвращает информацию о типах объектов CedrusData Catalog.

Синтаксис#

catalog security securable-types

Контроль доступа#

Команда не требует авторизации.

Примеры#

Получить список типов объектов:

catalog security securable-types
+-------------------+-----------------------+
| securable-type    | parent-securable-type |
+-------------------+-----------------------+
| metastore         |                       |
| principal         | metastore             |
| file-system       | metastore             |
| catalog           | metastore             |
| namespace         | catalog               |
| table             | namespace             |
| view              | namespace             |
| materialized-view | namespace             |
| object-group      | metastore             |
| compute-engine    | metastore             |
| job               | compute-engine        |
+-------------------+-----------------------+

Получить список типов объектов в формате JSON:

catalog --json security securable-types
{
  "items" : [ {
    "securable-type" : "metastore",
    "parent-securable-type" : null
  }, {
    "securable-type" : "principal",
    "parent-securable-type" : "metastore"
  }, {
    "securable-type" : "file-system",
    "parent-securable-type" : "metastore"
  }, {
    "securable-type" : "catalog",
    "parent-securable-type" : "metastore"
  }, {
    "securable-type" : "namespace",
    "parent-securable-type" : "catalog"
  }, {
    "securable-type" : "table",
    "parent-securable-type" : "namespace"
  }, {
    "securable-type" : "view",
    "parent-securable-type" : "namespace"
  }, {
    "securable-type" : "materialized-view",
    "parent-securable-type" : "namespace"
  }, {
    "securable-type" : "object-group",
    "parent-securable-type" : "metastore"
  }, {
    "securable-type" : "compute-engine",
    "parent-securable-type" : "metastore"
  }, {
    "securable-type" : "job",
    "parent-securable-type" : "compute-engine"
  } ]
}