Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 79. scap-content


Manipulate SCAP contents

Usage

# hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...
Copy to Clipboard Toggle word wrap

Options

  • -h, --help – Print help

79.1. scap-content bulk-upload

Upload scap contents in bulk

Usage

# hammer scap-content bulk-upload [OPTIONS]
Copy to Clipboard Toggle word wrap

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

79.2. scap-content create

Create SCAP content

Usage

# hammer scap-content create [OPTIONS]
Copy to Clipboard Toggle word wrap

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

79.3. scap-content delete

Deletes an SCAP content

Usage

# hammer scap-content <delete|destroy> [OPTIONS]
Copy to Clipboard Toggle word wrap

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

79.4. scap-content download

Download an SCAP content as XML

Usage

# hammer scap-content download [OPTIONS]
Copy to Clipboard Toggle word wrap

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

79.5. scap-content info

Show an SCAP content

Usage

# hammer scap-content <info|show> [OPTIONS]
Copy to Clipboard Toggle word wrap

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

Expand
FIELDSALLDEFAULTTHIN

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

 

79.6. scap-content list

List SCAP contents

Usage

# hammer scap-content <list|index> [OPTIONS]
Copy to Clipboard Toggle word wrap

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

Expand
FIELDSALLDEFAULTTHIN

Id

x

x

x

Title

x

x

x

Digest

x

x

 

Search and order fields

  • created_at – datetime
  • filename – string
  • location – string
  • location_id – integer
  • organization – string
  • organization_id – integer
  • title – string

79.7. scap-content update

Update an SCAP content

Usage

# hammer scap-content update [OPTIONS]
Copy to Clipboard Toggle word wrap

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
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat