2.67. 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.67.1. hammer scap-content bulk-upload 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
批量上传 scap 内容
Usage: hammer scap-content bulk-upload [OPTIONS] Options: --directory VALUE Directory to upload when using “directory” upload type --files LIST File paths to upload when using “files” upload type --location VALUE Name to search by --location-id NUMBER Set the current location context for the request --organization VALUE Name to search by --organization-id NUMBER Set the current organization context for the request --type ENUM Type of the upload Possible value(s): 'files', 'directory', 'default' -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
Usage:
hammer scap-content bulk-upload [OPTIONS]
Options:
--directory VALUE Directory to upload when using “directory” upload type
--files LIST File paths to upload when using “files” upload type
--location VALUE Name to search by
--location-id NUMBER Set the current location context for the request
--organization VALUE Name to search by
--organization-id NUMBER Set the current organization context for the request
--type ENUM Type of the upload
Possible value(s): 'files', 'directory', 'default'
-h, --help Print help
Option details:
Here you can find option types and the value an option can accept:
BOOLEAN One of true/false, yes/no, 1/0
DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
ENUM Possible values are described in the option's description
FILE Path to a file
KEY_VALUE_LIST Comma-separated list of key=value.
JSON is acceptable and preferred way for such parameters
LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for such parameters
MULTIENUM Any combination of possible values described in the option's description
NUMBER Numeric value. Integer
SCHEMA Comma separated list of values defined by a schema.
JSON is acceptable and preferred way for such parameters
VALUE Value described in the option's description. Mostly simple string
2.67.2. hammer scap-content create 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
创建 SCAP 内容
Usage: hammer scap-content create [OPTIONS] Options: --location VALUE Name to search by --location-id NUMBER Set the current location context for the request --location-ids LIST REPLACE locations with given ids --locations LIST --organization VALUE Name to search by --organization-id NUMBER Set the current organization context for the request --organization-ids LIST REPLACE organizations with given ids. --organizations LIST --original-filename VALUE Original file name of the XML file --scap-file FILE SCAP content file --title VALUE SCAP content name -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
Usage:
hammer scap-content create [OPTIONS]
Options:
--location VALUE Name to search by
--location-id NUMBER Set the current location context for the request
--location-ids LIST REPLACE locations with given ids
--locations LIST
--organization VALUE Name to search by
--organization-id NUMBER Set the current organization context for the request
--organization-ids LIST REPLACE organizations with given ids.
--organizations LIST
--original-filename VALUE Original file name of the XML file
--scap-file FILE SCAP content file
--title VALUE SCAP content name
-h, --help Print help
Option details:
Here you can find option types and the value an option can accept:
BOOLEAN One of true/false, yes/no, 1/0
DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
ENUM Possible values are described in the option's description
FILE Path to a file
KEY_VALUE_LIST Comma-separated list of key=value.
JSON is acceptable and preferred way for such parameters
LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for such parameters
MULTIENUM Any combination of possible values described in the option's description
NUMBER Numeric value. Integer
SCHEMA Comma separated list of values defined by a schema.
JSON is acceptable and preferred way for such parameters
VALUE Value described in the option's description. Mostly simple string
2.67.3. hammer scap-content delete 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
删除 SCAP 内容
Usage: hammer scap-content <delete|destroy> [OPTIONS] Options: --id VALUE --location VALUE Name to search by --location-id NUMBER Set the current location context for the request --organization VALUE Name to search by --organization-id NUMBER Set the current organization context for the request --title VALUE SCAP content title -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
Usage:
hammer scap-content <delete|destroy> [OPTIONS]
Options:
--id VALUE
--location VALUE Name to search by
--location-id NUMBER Set the current location context for the request
--organization VALUE Name to search by
--organization-id NUMBER Set the current organization context for the request
--title VALUE SCAP content title
-h, --help Print help
Option details:
Here you can find option types and the value an option can accept:
BOOLEAN One of true/false, yes/no, 1/0
DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
ENUM Possible values are described in the option's description
FILE Path to a file
KEY_VALUE_LIST Comma-separated list of key=value.
JSON is acceptable and preferred way for such parameters
LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for such parameters
MULTIENUM Any combination of possible values described in the option's description
NUMBER Numeric value. Integer
SCHEMA Comma separated list of values defined by a schema.
JSON is acceptable and preferred way for such parameters
VALUE Value described in the option's description. Mostly simple string
2.67.4. hammer scap-content download 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
下载 SCAP 内容作为 XML
Usage: hammer scap-content download [OPTIONS] Options: --id VALUE --location VALUE Name to search by --location-id NUMBER Set the current location context for the request --organization VALUE Name to search by --organization-id NUMBER Set the current organization context for the request --path VALUE Path to directory where downloaded file will be saved --title VALUE SCAP content title -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
Usage:
hammer scap-content download [OPTIONS]
Options:
--id VALUE
--location VALUE Name to search by
--location-id NUMBER Set the current location context for the request
--organization VALUE Name to search by
--organization-id NUMBER Set the current organization context for the request
--path VALUE Path to directory where downloaded file will be saved
--title VALUE SCAP content title
-h, --help Print help
Option details:
Here you can find option types and the value an option can accept:
BOOLEAN One of true/false, yes/no, 1/0
DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
ENUM Possible values are described in the option's description
FILE Path to a file
KEY_VALUE_LIST Comma-separated list of key=value.
JSON is acceptable and preferred way for such parameters
LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for such parameters
MULTIENUM Any combination of possible values described in the option's description
NUMBER Numeric value. Integer
SCHEMA Comma separated list of values defined by a schema.
JSON is acceptable and preferred way for such parameters
VALUE Value described in the option's description. Mostly simple string
2.67.5. hammer scap-content info 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
显示 SCAP 内容
Usage: hammer scap-content <info|show> [OPTIONS] Options: --fields LIST Show specified fields or predefined field sets only. (See below) --id VALUE --location VALUE Name to search by --location-id NUMBER Set the current location context for the request --organization VALUE Name to search by --organization-id NUMBER Set the current organization context for the request --title VALUE 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 | ---------------------------------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
Usage:
hammer scap-content <info|show> [OPTIONS]
Options:
--fields LIST Show specified fields or predefined field sets only. (See below)
--id VALUE
--location VALUE Name to search by
--location-id NUMBER Set the current location context for the request
--organization VALUE Name to search by
--organization-id NUMBER Set the current organization context for the request
--title VALUE 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 |
---------------------------------|-----|---------|-----
Option details:
Here you can find option types and the value an option can accept:
BOOLEAN One of true/false, yes/no, 1/0
DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
ENUM Possible values are described in the option's description
FILE Path to a file
KEY_VALUE_LIST Comma-separated list of key=value.
JSON is acceptable and preferred way for such parameters
LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for such parameters
MULTIENUM Any combination of possible values described in the option's description
NUMBER Numeric value. Integer
SCHEMA Comma separated list of values defined by a schema.
JSON is acceptable and preferred way for such parameters
VALUE Value described in the option's description. Mostly simple string
2.67.6. hammer scap-content list 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
列出 SCAP 内容
Usage: hammer scap-content <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, 'all' to return all results --search VALUE Filter results -h, --help Print help Predefined field sets: -------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -------|-----|---------|----- Id | x | x | x Title | x | x | x Digest | x | x | -------|-----|---------|----- Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string 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 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, 'all' to return all results
--search VALUE Filter results
-h, --help Print help
Predefined field sets:
-------|-----|---------|-----
FIELDS | ALL | DEFAULT | THIN
-------|-----|---------|-----
Id | x | x | x
Title | x | x | x
Digest | x | x |
-------|-----|---------|-----
Option details:
Here you can find option types and the value an option can accept:
BOOLEAN One of true/false, yes/no, 1/0
DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
ENUM Possible values are described in the option's description
FILE Path to a file
KEY_VALUE_LIST Comma-separated list of key=value.
JSON is acceptable and preferred way for such parameters
LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for such parameters
MULTIENUM Any combination of possible values described in the option's description
NUMBER Numeric value. Integer
SCHEMA Comma separated list of values defined by a schema.
JSON is acceptable and preferred way for such parameters
VALUE Value described in the option's description. Mostly simple string
Search / Order fields:
created_at datetime
filename string
location string
location_id integer
organization string
organization_id integer
title string
2.67.7. hammer scap-content update 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
更新 SCAP 内容
Usage: hammer scap-content update [OPTIONS] Options: --id VALUE --location VALUE Name to search by --location-id NUMBER Set the current location context for the request --location-ids LIST REPLACE locations with given ids --locations LIST --new-title VALUE SCAP content name --organization VALUE Name to search by --organization-id NUMBER Set the current organization context for the request --organization-ids LIST REPLACE organizations with given ids. --organizations LIST --original-filename VALUE Original file name of the XML file --scap-file FILE SCAP content file --title VALUE SCAP content name -h, --help Print help Option details: Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0 DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format ENUM Possible values are described in the option's description FILE Path to a file KEY_VALUE_LIST Comma-separated list of key=value. JSON is acceptable and preferred way for such parameters LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for such parameters MULTIENUM Any combination of possible values described in the option's description NUMBER Numeric value. Integer SCHEMA Comma separated list of values defined by a schema. JSON is acceptable and preferred way for such parameters VALUE Value described in the option's description. Mostly simple string
Usage:
hammer scap-content update [OPTIONS]
Options:
--id VALUE
--location VALUE Name to search by
--location-id NUMBER Set the current location context for the request
--location-ids LIST REPLACE locations with given ids
--locations LIST
--new-title VALUE SCAP content name
--organization VALUE Name to search by
--organization-id NUMBER Set the current organization context for the request
--organization-ids LIST REPLACE organizations with given ids.
--organizations LIST
--original-filename VALUE Original file name of the XML file
--scap-file FILE SCAP content file
--title VALUE SCAP content name
-h, --help Print help
Option details:
Here you can find option types and the value an option can accept:
BOOLEAN One of true/false, yes/no, 1/0
DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
ENUM Possible values are described in the option's description
FILE Path to a file
KEY_VALUE_LIST Comma-separated list of key=value.
JSON is acceptable and preferred way for such parameters
LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for such parameters
MULTIENUM Any combination of possible values described in the option's description
NUMBER Numeric value. Integer
SCHEMA Comma separated list of values defined by a schema.
JSON is acceptable and preferred way for such parameters
VALUE Value described in the option's description. Mostly simple string