このコンテンツは選択した言語では利用できません。
Chapter 55. model
Manipulate hardware models
Usage
hammer model [OPTIONS] SUBCOMMAND [ARG] ...
# hammer model [OPTIONS] SUBCOMMAND [ARG] ...
Options
-
-h,--help– Print help
55.1. model create リンクのコピーリンクがクリップボードにコピーされました!
Create a hardware model
Usage
hammer model create [OPTIONS]
# hammer model create [OPTIONS]
Options
-
--hardware-model VALUE -
--info VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--name VALUE -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--vendor-class VALUE -
-h,--help– Print help
55.2. model delete リンクのコピーリンクがクリップボードにコピーされました!
Delete a hardware model
Usage
hammer model <delete|destroy> [OPTIONS]
# hammer model <delete|destroy> [OPTIONS]
Options
-
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--name VALUE– Model name -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
-h,--help– Print help
55.3. model info リンクのコピーリンクがクリップボードにコピーされました!
Show a hardware model
Usage
hammer model <info|show> [OPTIONS]
# hammer model <info|show> [OPTIONS]
Options
-
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--name VALUE– Model name -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
-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 |
55.4. model list リンクのコピーリンクがクリップボードにコピーされました!
List all hardware models
Usage
hammer model <list|index> [OPTIONS]
# hammer model <list|index> [OPTIONS]
Options
-
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--order VALUE– Sort and order by a searchable field, e.g.<field> DESC -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--page NUMBER– Page number, starting at 1 -
--per-page VALUE– Number of results per page to return,allto return all results -
--search VALUE– 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 and order fields
-
hardware_model– string -
id– integer -
info– text -
name– string -
vendor_class– string
55.5. model update リンクのコピーリンクがクリップボードにコピーされました!
Update a hardware model
Usage
hammer model update [OPTIONS]
# hammer model update [OPTIONS]
Options
-
--hardware-model VALUE -
--id VALUE -
--info VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--name VALUE -
--new-name VALUE -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--vendor-class VALUE -
-h,--help– Print help