2.46. hammer medium

インストールメディアを操作します。

Usage:
    hammer medium [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 add-operatingsystem           Associate an operating system
 create                        Create a medium
 delete, destroy               Delete a medium
 info, show                    Show a medium
 list, index                   List all installation media
 remove-operatingsystem        Disassociate an operating system
 update                        Update a medium

Options:
 -h, --help                    Print help

2.46.1. hammer medium add-operatingsystem

オペレーティングシステムを関連付けます。

Usage:
    hammer medium add-operatingsystem [OPTIONS]

Options:
 --id VALUE
 --name VALUE                  Medium name
 --operatingsystem VALUE       Operating system title
 --operatingsystem-id NUMBER
 -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.46.2. hammer medium create

メディアを作成します。

Usage:
    hammer medium create [OPTIONS]

Options:
 --location VALUE              Set the current location context for the request
 --location-id NUMBER          Set the current location context for the request
 --location-ids LIST           REPLACE locations with given ids
 --location-title VALUE        Set the current location context for the request
 --location-titles LIST
 --locations LIST
 --name VALUE                  Name of media
 --operatingsystem-ids LIST
 --operatingsystems LIST
 --organization VALUE          Set the current organization context for the request
 --organization-id NUMBER      Set the current organization context for the request
 --organization-ids LIST       REPLACE organizations with given ids.
 --organization-title VALUE    Set the current organization context for the request
 --organization-titles LIST
 --organizations LIST
 --os-family VALUE             Operating system family, available values: AIX, Altlinux, Archlinux, Coreos,
                               Debian, Fcos, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Rhcos, Solaris,
                               Suse, VRP, Windows, Xenserver
 --path VALUE                  The path to the medium, can be a URL or a valid NFS server (exclusive of the
                               architecture).

                               For example mirror.centos.org/centos/$version/os/$arch where $arch will be
                               substituted for the host's actual OS architecture and $version, $major and
                               $minor will be substituted for the version of the operating system.

                               Solaris and Debian media may also use $release.
 -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.46.3. hammer medium delete

メディアを削除します。

Usage:
    hammer medium <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                  Medium 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

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.46.4. hammer medium info

メディアを表示します。

Usage:
    hammer medium <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                  Medium 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
  Path               | x   | x       |
  Os family          | x   | x       |
  Operating systems/ | x   | x       |
  Locations/         | x   | x       |
  Organizations/     | x   | x       |
  Created at         | x   | x       |
  Updated at         | 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.46.5. hammer medium list

インストールメディアのリストを表示します。

Usage:
    hammer medium <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          Scope by locations
 --location-title VALUE        Set the current location context for the request
 --operatingsystem VALUE       Operating system title
 --operatingsystem-id NUMBER   ID of operating system
 --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      Scope by organizations
 --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
  Name   | x   | x       | x
  Path   | 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:
  family              string
  location            string
  location_id         integer
  name                string
  organization        string
  organization_id     integer
  path                string

2.46.6. hammer medium remove-operatingsystem

オペレーティングシステムの関連付けを解除します。

Usage:
    hammer medium remove-operatingsystem [OPTIONS]

Options:
 --id VALUE
 --name VALUE                  Medium name
 --operatingsystem VALUE       Operating system title
 --operatingsystem-id NUMBER
 -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.46.7. hammer medium update

メディアを更新します。

Usage:
    hammer medium update [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-ids LIST           REPLACE locations with given ids
 --location-title VALUE        Set the current location context for the request
 --location-titles LIST
 --locations LIST
 --name VALUE                  Name of media
 --new-name VALUE              Name of media
 --operatingsystem-ids LIST
 --operatingsystems LIST
 --organization VALUE          Set the current organization context for the request
 --organization-id NUMBER      Set the current organization context for the request
 --organization-ids LIST       REPLACE organizations with given ids.
 --organization-title VALUE    Set the current organization context for the request
 --organization-titles LIST
 --organizations LIST
 --os-family VALUE             Operating system family, available values: AIX, Altlinux, Archlinux, Coreos,
                               Debian, Fcos, Freebsd, Gentoo, Junos, NXOS, Rancheros, Redhat, Rhcos, Solaris,
                               Suse, VRP, Windows, Xenserver
 --path VALUE                  The path to the medium, can be a URL or a valid NFS server (exclusive of the
                               architecture).

                               For example mirror.centos.org/centos/$version/os/$arch where $arch will be
                               substituted for the host's actual OS architecture and $version, $major and
                               $minor will be substituted for the version of the operating system.

                               Solaris and Debian media may also use $release.
 -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