2.16. Hammer 内容凭证

操作服务器上的内容凭证

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

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

Subcommands:
 create                        Create a Content Credential
 delete, destroy               Destroy a Content Credential
 info, show                    Show a Content Credential
 list, index                   List Content Credentials
 update                        Update a Content Credential

Options:
 -h, --help                    Print help

2.16.1. Hammer content-credentials create

创建内容凭证

Usage:
    hammer content-credentials create [OPTIONS]

Options:
 --content-type VALUE          Type of content: “cert”, “gpg_key”
 --name VALUE                  Name of the Content Credential
 --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 FILE                   Key file
 -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

2.16.2. Hammer content-credentials delete

销毁内容凭证

Usage:
    hammer content-credentials <delete|destroy> [OPTIONS]

Options:
 --id NUMBER                   Content Credential ID
 --name VALUE                  Name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -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

2.16.3. Hammer content-credentials info

显示内容凭证

Usage:
    hammer content-credentials <info|show> [OPTIONS]

Options:
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --id NUMBER                   Content Credential numeric identifier
 --name VALUE                  Name to search by
 --organization VALUE          Organization name to search by
 --organization-id NUMBER
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 -h, --help                    Print help

Predefined field sets:
  --------------------------|-----|---------|-----
  FIELDS                    | ALL | DEFAULT | THIN
  --------------------------|-----|---------|-----
  Id                        | x   | x       | x
  Name                      | x   | x       | x
  Organization              | x   | x       |
  Repositories/id           | x   | x       |
  Repositories/name         | x   | x       |
  Repositories/content type | x   | x       |
  Repositories/product      | x   | x       |
  Content                   | 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

2.16.4. Hammer content-credentials list

列出内容凭证

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

Options:
 --content-type VALUE          Type of content
 --fields LIST                 Show specified fields or predefined field sets only. (See below)
 --full-result BOOLEAN         Whether or not to show all results
 --name VALUE                  Name of the Content Credential
 --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
 -h, --help                    Print help

Predefined field sets:
  -------------|-----|---------|-----
  FIELDS       | ALL | DEFAULT | THIN
  -------------|-----|---------|-----
  Id           | x   | x       | x
  Name         | x   | x       | x
  Content type | 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

2.16.5. Hammer 内容凭证更新

更新内容凭证

Usage:
    hammer content-credentials update [OPTIONS]

Options:
 --content-type VALUE          Type of content: “cert”, “gpg_key”
 --id NUMBER                   Content Credential ID
 --name VALUE                  Name of the Content Credential
 --new-name VALUE              Name of the Content Credential
 --organization VALUE          Organization name to search by
 --organization-id NUMBER
 --organization-label VALUE    Organization label to search by
 --organization-title VALUE    Organization title
 --path FILE                   Key file
 -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