2.17. hammer content-credentials
操作服务器上的内容凭证
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
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.17.1. hammer content-credentials create 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
创建内容凭证
Usage: hammer content-credentials create [OPTIONS] Options: --content-type CONTENT_TYPE Type of content: “cert”, “gpg_key” --name NAME Name of the Content Credential --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization identifier --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --path KEY_FILE Key file -h, --help Print help
Usage:
hammer content-credentials create [OPTIONS]
Options:
--content-type CONTENT_TYPE Type of content: “cert”, “gpg_key”
--name NAME Name of the Content Credential
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization identifier
--organization-label ORGANIZATION_LABEL Organization label to search by
--organization-title ORGANIZATION_TITLE Organization title
--path KEY_FILE Key file
-h, --help Print help
2.17.2. hammer content-credentials delete 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
销毁内容凭证
Usage: hammer content-credentials <delete|destroy> [OPTIONS] Options: --id ID Content Credential ID --name NAME Name to search by --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title -h, --help Print help
Usage:
hammer content-credentials <delete|destroy> [OPTIONS]
Options:
--id ID Content Credential ID
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--organization-title ORGANIZATION_TITLE Organization title
-h, --help Print help
2.17.3. hammer content-credentials info 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
显示内容凭证
Usage: hammer content-credentials <info|show> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --id ID Content Credential numeric identifier --name NAME Name to search by --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE 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 | --------------------------|-----|---------|-----
Usage:
hammer content-credentials <info|show> [OPTIONS]
Options:
--fields FIELDS Show specified fields or predefined field sets only. (See below)
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--id ID Content Credential numeric identifier
--name NAME Name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--organization-title ORGANIZATION_TITLE 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 |
--------------------------|-----|---------|-----
2.17.4. hammer content-credentials list 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
列出内容凭证
Usage: hammer content-credentials <list|index> [OPTIONS] Options: --content-type CONTENT_TYPE Type of content --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --full-result FULL_RESULT Whether or not to show all results One of true/false, yes/no, 1/0. --name NAME Name of the Content Credential --order ORDER Sort field and order, eg. 'id DESC' --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization identifier --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return --search SEARCH 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 | -------------|-----|---------|-----
Usage:
hammer content-credentials <list|index> [OPTIONS]
Options:
--content-type CONTENT_TYPE Type of content
--fields FIELDS Show specified fields or predefined field sets only. (See below)
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--full-result FULL_RESULT Whether or not to show all results
One of true/false, yes/no, 1/0.
--name NAME Name of the Content Credential
--order ORDER Sort field and order, eg. 'id DESC'
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization identifier
--organization-label ORGANIZATION_LABEL Organization label to search by
--organization-title ORGANIZATION_TITLE Organization title
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to return
--search SEARCH 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 |
-------------|-----|---------|-----
2.17.5. hammer content-credentials 更新 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
更新内容凭证
Usage: hammer content-credentials update [OPTIONS] Options: --content-type CONTENT_TYPE Type of content: “cert”, “gpg_key” --id ID Content Credential ID --name NAME Name to search by --new-name NEW_NAME Name of the Content Credential --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --path KEY_FILE Key file -h, --help Print help
Usage:
hammer content-credentials update [OPTIONS]
Options:
--content-type CONTENT_TYPE Type of content: “cert”, “gpg_key”
--id ID Content Credential ID
--name NAME Name to search by
--new-name NEW_NAME Name of the Content Credential
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--organization-title ORGANIZATION_TITLE Organization title
--path KEY_FILE Key file
-h, --help Print help