3.68. scap-content
SCAP コンテンツを操作します。
使用方法
hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...
# hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...
オプション
-
-h
、--help
– ヘルプを表示します。
3.68.1. scap-content bulk-upload リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを一括でアップロードします。
使用方法
hammer scap-content bulk-upload [OPTIONS]
# hammer scap-content bulk-upload [OPTIONS]
オプション
-
--directory VALUE
– “directory” アップロードタイプを使用する場合にアップロードするディレクトリー -
--files LIST
– “files” アップロードタイプを使用するときにアップロードするファイルパス -
--location VALUE
– 検索する名前 -
--location-id NUMBER
– リクエストの現在のロケーションコンテキストを設定します。 -
--organization VALUE
– 検索する名前 -
--organization-id NUMBER
– リクエストの現在の組織コンテキストを設定します。 -
--type ENUM
- アップロードのタイプ。使用できる値は、files
、directory
、default
です。 -
-h
、--help
– ヘルプを表示します。
3.68.2. scap-content create リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを作成します。
使用方法
hammer scap-content create [OPTIONS]
# hammer scap-content create [OPTIONS]
オプション
-
--location VALUE
– 検索する名前 -
--location-id NUMBER
– リクエストの現在のロケーションコンテキストを設定します。 -
--location-ids LIST
– 指定された ID でロケーションを置換します。 -
--locations LIST
-
--organization VALUE
– 検索する名前 -
--organization-id NUMBER
– リクエストの現在の組織コンテキストを設定します。 -
--organization-ids LIST
– 指定された ID で組織を置き換えます。 -
--organizations LIST
-
--original-filename VALUE
– XML ファイルの元のファイル名 -
--scap-file FILE
– SCAP コンテンツファイル -
--title VALUE
– SCAP コンテンツ名 -
-h
、--help
– ヘルプを表示します。
3.68.3. scap-content delete リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを削除します。
使用方法
hammer scap-content <delete|destroy> [OPTIONS]
# hammer scap-content <delete|destroy> [OPTIONS]
3.68.4. scap-content download リンクのコピーリンクがクリップボードにコピーされました!
XML で SCAP コンテンツをダウンロードします。
使用方法
hammer scap-content download [OPTIONS]
# hammer scap-content download [OPTIONS]
3.68.5. scap-content info リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを表示します。
使用方法
hammer scap-content <info|show> [OPTIONS]
# hammer scap-content <info|show> [OPTIONS]
オプション
フィールド | すべて | デフォルト | シン |
---|---|---|---|
Id | x | x | x |
Title | x | x | x |
Digest | x | x | |
Created at | x | x | |
Original filename | x | x | |
Scap content profiles/id | x | x | |
Scap content profiles/profile id | x | x | |
Scap content profiles/title | x | x | |
Locations/ | x | x | |
Organizations/ | x | x |
3.68.6. scap-content list リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツをリスト表示します。
使用方法
hammer scap-content <list|index> [OPTIONS]
# hammer scap-content <list|index> [OPTIONS]
オプション
-
--fields LIST
– 指定されたフィールドまたは定義済みフィールドセットのみを表示します。以下を参照してください。 -
--location VALUE
– リクエストの現在のロケーションコンテキストを設定します。 -
--location-id NUMBER
– リクエストの現在のロケーションコンテキストを設定します。 -
--location-title VALUE
– リクエストの現在のロケーションコンテキストを設定します。 -
--order VALUE
– 検索可能なフィールドで並べ替え、順序付けします。たとえば<field> DESC
です。 -
--organization VALUE
– リクエストの現在の組織コンテキストを設定します。 -
--organization-id NUMBER
– リクエストの現在の組織コンテキストを設定します。 -
--organization-title VALUE
– リクエストの現在の組織コンテキストを設定します。 -
--page NUMBER
– (1 から始まる) ページ番号 -
--per-page VALUE
– 1 ページあたりの、返される結果の数。all
を指定すると、すべての結果が返されます。 -
--search VALUE
– 結果をフィルタリングします。 -
-h
、--help
– ヘルプを表示します。
フィールド | すべて | デフォルト | シン |
---|---|---|---|
Id | x | x | x |
Title | x | x | x |
Digest | x | x |
検索/順序フィールド
-
created_at
– 日時 -
filename
– 文字列 -
location
– 文字列 -
location_id
– 整数 -
organization
– 文字列 -
organization_id
– 整数 -
title
– 文字列
3.68.7. scap-content update リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを更新します。
使用方法
hammer scap-content update [OPTIONS]
# hammer scap-content update [OPTIONS]
オプション
-
--id VALUE
-
--location VALUE
– 検索する名前 -
--location-id NUMBER
– リクエストの現在のロケーションコンテキストを設定します。 -
--location-ids LIST
– 指定された ID でロケーションを置換します。 -
--locations LIST
-
--new-title VALUE
– SCAP コンテンツ名 -
--organization VALUE
– 検索する名前 -
--organization-id NUMBER
– リクエストの現在の組織コンテキストを設定します。 -
--organization-ids LIST
– 指定された ID で組織を置き換えます。 -
--organizations LIST
-
--original-filename VALUE
– XML ファイルの元のファイル名 -
--scap-file FILE
– SCAP コンテンツファイル -
--title VALUE
– SCAP コンテンツ名 -
-h
、--help
– ヘルプを表示します。