2.72. hammer scap-content
SCAP コンテンツを操作します。
Usage: hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: bulk-upload Upload scap contents in bulk create Create SCAP content delete, destroy Deletes an SCAP content download Download an SCAP content as XML info, show Show an SCAP content list, index List SCAP contents update Update an SCAP content Options: -h, --help Print help
Usage:
hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND Subcommand
[ARG] ... Subcommand arguments
Subcommands:
bulk-upload Upload scap contents in bulk
create Create SCAP content
delete, destroy Deletes an SCAP content
download Download an SCAP content as XML
info, show Show an SCAP content
list, index List SCAP contents
update Update an SCAP content
Options:
-h, --help Print help
2.72.1. hammer scap-content bulk-upload リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを一括でアップロードします。
Usage: hammer scap-content bulk-upload [OPTIONS] Options: --directory DIRECTORY Directory to upload when using “directory” upload type --files FILES File paths to upload when using “files” upload type Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --location LOCATION_NAME Name to search by --location-id LOCATION_ID Set the current location context for the request --organization ORGANIZATION_NAME Name to search by --organization-id ORGANIZATION_ID Set the current organization context for the request --type TYPE Type of the upload Possible value(s): 'files', 'directory', 'default' -h, --help Print help
Usage:
hammer scap-content bulk-upload [OPTIONS]
Options:
--directory DIRECTORY Directory to upload when using “directory” upload type
--files FILES File paths to upload when using “files” upload type
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--location LOCATION_NAME Name to search by
--location-id LOCATION_ID Set the current location context for the request
--organization ORGANIZATION_NAME Name to search by
--organization-id ORGANIZATION_ID Set the current organization context for the request
--type TYPE Type of the upload
Possible value(s): 'files', 'directory', 'default'
-h, --help Print help
2.72.2. hammer scap-content create リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを作成します。
Usage: hammer scap-content create [OPTIONS] Options: --location LOCATION_NAME Name to search by --location-id LOCATION_ID Set the current location context for the request --location-ids LOCATION_IDS REPLACE locations with given ids Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --locations LOCATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --organization ORGANIZATION_NAME Name to search by --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids. Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --organizations ORGANIZATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --original-filename ORIGINAL_FILENAME Original file name of the XML file --scap-file SCAP_FILE SCAP content file --title TITLE SCAP content name -h, --help Print help
Usage:
hammer scap-content create [OPTIONS]
Options:
--location LOCATION_NAME Name to search by
--location-id LOCATION_ID Set the current location context for the request
--location-ids LOCATION_IDS REPLACE locations with given ids
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--locations LOCATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--organization ORGANIZATION_NAME Name to search by
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-ids ORGANIZATION_IDS REPLACE organizations with given ids.
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--organizations ORGANIZATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--original-filename ORIGINAL_FILENAME Original file name of the XML file
--scap-file SCAP_FILE SCAP content file
--title TITLE SCAP content name
-h, --help Print help
2.72.3. hammer scap-content delete リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを削除します。
Usage: hammer scap-content <delete|destroy> [OPTIONS] Options: --id ID --location LOCATION_NAME Name to search by --location-id LOCATION_ID Set the current location context for the request --organization ORGANIZATION_NAME Name to search by --organization-id ORGANIZATION_ID Set the current organization context for the request --title TITLE SCAP content title -h, --help Print help
Usage:
hammer scap-content <delete|destroy> [OPTIONS]
Options:
--id ID
--location LOCATION_NAME Name to search by
--location-id LOCATION_ID Set the current location context for the request
--organization ORGANIZATION_NAME Name to search by
--organization-id ORGANIZATION_ID Set the current organization context for the request
--title TITLE SCAP content title
-h, --help Print help
2.72.4. hammer scap-content download リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
XML で SCAP コンテンツをダウンロードします。
Usage: hammer scap-content download [OPTIONS] Options: --id ID --location LOCATION_NAME Name to search by --location-id LOCATION_ID Set the current location context for the request --organization ORGANIZATION_NAME Name to search by --organization-id ORGANIZATION_ID Set the current organization context for the request --path PATH Path to directory where downloaded file will be saved --title TITLE SCAP content title -h, --help Print help
Usage:
hammer scap-content download [OPTIONS]
Options:
--id ID
--location LOCATION_NAME Name to search by
--location-id LOCATION_ID Set the current location context for the request
--organization ORGANIZATION_NAME Name to search by
--organization-id ORGANIZATION_ID Set the current organization context for the request
--path PATH Path to directory where downloaded file will be saved
--title TITLE SCAP content title
-h, --help Print help
2.72.5. hammer scap-content info リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを表示します。
Usage: hammer scap-content <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 --location LOCATION_NAME Name to search by --location-id LOCATION_ID Set the current location context for the request --organization ORGANIZATION_NAME Name to search by --organization-id ORGANIZATION_ID Set the current organization context for the request --title TITLE SCAP content title -h, --help Print help Predefined field sets: ---------------------------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN ---------------------------------|-----|---------|----- 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 | ---------------------------------|-----|---------|-----
Usage:
hammer scap-content <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
--location LOCATION_NAME Name to search by
--location-id LOCATION_ID Set the current location context for the request
--organization ORGANIZATION_NAME Name to search by
--organization-id ORGANIZATION_ID Set the current organization context for the request
--title TITLE SCAP content title
-h, --help Print help
Predefined field sets:
---------------------------------|-----|---------|-----
FIELDS | ALL | DEFAULT | THIN
---------------------------------|-----|---------|-----
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 |
---------------------------------|-----|---------|-----
2.72.6. hammer scap-content list リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツの一覧を表示します。
Usage: hammer scap-content <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 --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --order ORDER Sort field and order, eg. ‘id DESC’ --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request --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 Title | x | x | x Digest | x | x | -------|-----|---------|----- Search / Order fields: created_at datetime filename string location string location_id integer organization string organization_id integer title string
Usage:
hammer scap-content <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
--location LOCATION_NAME Set the current location context for the request
--location-id LOCATION_ID Set the current location context for the request
--location-title LOCATION_TITLE Set the current location context for the request
--order ORDER Sort field and order, eg. ‘id DESC’
--organization ORGANIZATION_NAME Set the current organization context for the request
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-title ORGANIZATION_TITLE Set the current organization context for the request
--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
Title | x | x | x
Digest | x | x |
-------|-----|---------|-----
Search / Order fields:
created_at datetime
filename string
location string
location_id integer
organization string
organization_id integer
title string
2.72.7. hammer scap-content update リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
SCAP コンテンツを更新します。
Usage: hammer scap-content update [OPTIONS] Options: --id ID --location LOCATION_NAME Name to search by --location-id LOCATION_ID Set the current location context for the request --location-ids LOCATION_IDS REPLACE locations with given ids Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --locations LOCATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --new-title NEW_TITLE SCAP content name --organization ORGANIZATION_NAME Name to search by --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids. Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --organizations ORGANIZATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --original-filename ORIGINAL_FILENAME Original file name of the XML file --scap-file SCAP_FILE SCAP content file --title TITLE SCAP content title -h, --help Print help
Usage:
hammer scap-content update [OPTIONS]
Options:
--id ID
--location LOCATION_NAME Name to search by
--location-id LOCATION_ID Set the current location context for the request
--location-ids LOCATION_IDS REPLACE locations with given ids
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--locations LOCATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--new-title NEW_TITLE SCAP content name
--organization ORGANIZATION_NAME Name to search by
--organization-id ORGANIZATION_ID Set the current organization context for the request
--organization-ids ORGANIZATION_IDS REPLACE organizations with given ids.
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--organizations ORGANIZATION_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--original-filename ORIGINAL_FILENAME Original file name of the XML file
--scap-file SCAP_FILE SCAP content file
--title TITLE SCAP content title
-h, --help Print help