2.48. hammer 模型
操作硬件模型
Usage: hammer model [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: create Create a hardware model delete, destroy Delete a hardware model info, show Show a hardware model list, index List all hardware models update Update a hardware model Options: -h, --help Print help
Usage:
hammer model [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND Subcommand
[ARG] ... Subcommand arguments
Subcommands:
create Create a hardware model
delete, destroy Delete a hardware model
info, show Show a hardware model
list, index List all hardware models
update Update a hardware model
Options:
-h, --help Print help
2.48.1. hammer 模型创建 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
创建硬件模型
Usage: hammer model create [OPTIONS] Options: --hardware-model HARDWARE_MODEL --info INFO --name NAME --vendor-class VENDOR_CLASS -h, --help Print help
Usage:
hammer model create [OPTIONS]
Options:
--hardware-model HARDWARE_MODEL
--info INFO
--name NAME
--vendor-class VENDOR_CLASS
-h, --help Print help
2.48.2. hammer 模型删除 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
删除硬件模型
Usage: hammer model <delete|destroy> [OPTIONS] Options: --id ID --name NAME Model name -h, --help Print help
Usage:
hammer model <delete|destroy> [OPTIONS]
Options:
--id ID
--name NAME Model name
-h, --help Print help
2.48.3. hammer 模型信息 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
显示硬件模型
Usage: hammer model <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 --name NAME Model name -h, --help Print help Predefined field sets: -------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -------------|-----|---------|----- Id | x | x | x Name | x | x | x Vendor class | x | x | Hw model | x | x | Info | x | x | Created at | x | x | Updated at | x | x | -------------|-----|---------|-----
Usage:
hammer model <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
--name NAME Model name
-h, --help Print help
Predefined field sets:
-------------|-----|---------|-----
FIELDS | ALL | DEFAULT | THIN
-------------|-----|---------|-----
Id | x | x | x
Name | x | x | x
Vendor class | x | x |
Hw model | x | x |
Info | x | x |
Created at | x | x |
Updated at | x | x |
-------------|-----|---------|-----
2.48.4. hammer 模型列表 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
列出所有硬件模型
Usage: hammer model <list|index> [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 --order ORDER Sort field and order, eg. ‘id DESC’ --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return, 'all' to return all results --search SEARCH Filter results -h, --help Print help Predefined field sets: -------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -------------|-----|---------|----- Id | x | x | x Name | x | x | x Vendor class | x | x | Hw model | x | x | -------------|-----|---------|----- Search / Order fields: hardware_model string info text name string vendor_class string
Usage:
hammer model <list|index> [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
--order ORDER Sort field and order, eg. ‘id DESC’
--page PAGE Page number, starting at 1
--per-page PER_PAGE Number of results per page to return, 'all' to return all results
--search SEARCH Filter results
-h, --help Print help
Predefined field sets:
-------------|-----|---------|-----
FIELDS | ALL | DEFAULT | THIN
-------------|-----|---------|-----
Id | x | x | x
Name | x | x | x
Vendor class | x | x |
Hw model | x | x |
-------------|-----|---------|-----
Search / Order fields:
hardware_model string
info text
name string
vendor_class string
2.48.5. hammer 模型更新 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
更新硬件模型
Usage: hammer model update [OPTIONS] Options: --hardware-model HARDWARE_MODEL --id ID --info INFO --name NAME Model name --new-name NEW_NAME --vendor-class VENDOR_CLASS -h, --help Print help
Usage:
hammer model update [OPTIONS]
Options:
--hardware-model HARDWARE_MODEL
--id ID
--info INFO
--name NAME Model name
--new-name NEW_NAME
--vendor-class VENDOR_CLASS
-h, --help Print help