3.18. hammer content-import


从上游存档导入内容。

Usage:
    hammer content-import [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 library                       Imports a content archive to an organization's library lifecycle environment
 list, index                   View content view import histories
 repository                    Imports a repository
 version                       Imports a content archive to a content view version

Options:
 -h, --help                    Print help

3.18.1. hammer content-import 库

将内容存档导入到机构的库生命周期环境

Usage:
    hammer content-import library [OPTIONS]

Options:
 --async                       Do not wait for the task
 --metadata-file VALUE         Location of the metadata.json file. This is not required if the metadata.json
                               file is already in the archive directory.
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization identifier
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --path VALUE                  Directory containing the exported Content View Version
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

3.18.2. hammer content-import 列表

查看内容视图导入历史记录

Usage:
    hammer content-import <list|index> [OPTIONS]

Options:
 --content-view VALUE             Content view name to search by
 --content-view-id NUMBER         Content view identifier
 --content-view-version VALUE     Content view version number
 --content-view-version-id NUMBER Content view version identifier
 --fields LIST                    Show specified fields or predefined field sets only. (See below)
 --full-result BOOLEAN            Whether or not to show all results
 --id NUMBER                      Content view version import history identifier
 --order VALUE                    Sort field and order, eg. 'id DESC'
 --organization VALUE             Organization name to search by
 --organization-id NUMBER         Organization identifier
 --organization-label VALUE       Organization label to search by
 --organization-title VALUE       Organization title
 --page NUMBER                    Page number, starting at 1
 --per-page NUMBER                Number of results per page to return
 --search VALUE                   Search string
 --type ENUM                      Import Types
                                  Possible value(s): 'complete', 'incremental'
 -h, --help                       Print help

Predefined field sets:
  ------------------------|-----|---------|-----
  FIELDS                  | ALL | DEFAULT | THIN
  ------------------------|-----|---------|-----
  Id                      | x   | x       | x
  Path                    | x   | x       |
  Type                    | x   | x       |
  Content view version    | x   | x       |
  Content view version id | x   | x       |
  Created at              | x   | x       |
  Updated at              | x   | x       |
  ------------------------|-----|---------|-----

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

Search / Order fields:
  content_view_id          integer
  content_view_version_id  integer
  id                       integer
  type                     string

3.18.3. hammer content-import 存储库

导入存储库

Usage:
    hammer content-import repository [OPTIONS]

Options:
 --async                       Do not wait for the task
 --metadata-file VALUE         Location of the metadata.json file. This is not required if the metadata.json
                               file is already in the archive directory.
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization identifier
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --path VALUE                  Directory containing the exported Content View Version
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

3.18.4. hammer content-import 版本

将内容存档导入到内容视图版本

Usage:
    hammer content-import version [OPTIONS]

Options:
 --async                       Do not wait for the task
 --metadata-file VALUE         Location of the metadata.json file. This is not required if the metadata.json
                               file is already in the archive directory.
 --organization VALUE          Organization name to search by
 --organization-id NUMBER      Organization identifier
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --path VALUE                  Directory containing the exported Content View Version
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.