Este conteúdo não está disponível no idioma selecionado.
Chapter 9. Hosts
The hosts collection provides information about the hosts in a Red Hat Storage environment. An API user accesses this information through the rel="hosts" link obtained from the entry point URI (see Chapter 5, Entry Point).
The following table shows specific elements contained in a hosts resource representation.
Expand
Table 9.1. Host elements
Element
Type
Description
Properties
link rel="nics"
relationship
A link to the nics sub-collection for host network interfaces.
A link to the statistics sub-collection for host statistics.
address
string
The IP address or hostname of the host.
status
See below
The host status.
cluster id=
GUID
A reference to the cluster that includes this host.
port
integer
The listen port of the VDSM daemon running on this host.
iscsi
complex
The SCSI initiator for the host.
cpu
complex
Statistics for the host CPU. Includes sub-elements for the CPU's name, topology cores=, topology sockets= and speed. The topology cores= aggregates the total cores while the topology sockets= aggregates the total physical CPUs.
version major= minor=
complex
The compatibility level of the host.
root_password
string
The root password of this host, by convention only included in the client-provided host representation on creation.
The status contains one of the following enumerative values: down, error, initializing, installing, install_failed, maintenance, non_operational, non_responsive, pending_approval, preparing_for_maintenance, connecting, reboot, unassigned and up. These states are listed in host_states under capabilities.
Copy to ClipboardCopied!Toggle word wrapToggle overflow
New host creation applies only to the addition of Red Hat Enterprise Linux hosts.
The root_password element is only included in the client-provided initial representation and is not exposed in the representations returned from subsequent requests.
Copiar o linkLink copiado para a área de transferência!
The nics sub-collection represents a host's physical network interfaces. Each host_nic element in the representation acts as a network interface and contains the following elements:
Copy to ClipboardCopied!Toggle word wrapToggle overflow
An API user creates only bonded interfaces (see Section 9.1.1, “Bonded Interfaces”). All other network interfaces contain updatable network, ip and boot_protocol elements using a PUT request.
When adding a new network interface, the name and network elements are required. Identify the network element with the id attribute or name element.
An API user modifies a network interface with a PUT request.
[a]
Only required when adding bonded interfaces. Other interfaces are read-only and cannot be added.
[b]
Only required when adding bonded interfaces. Other interfaces are read-only and cannot be added.
An API user creates a new bond when POSTing to a host_nic with bonding options and slave interfaces. The name, network and bonded elements are required when creating a new bonded interface. Either the id or name elements identify the network and slave host_nics.
Copiar o linkLink copiado para a área de transferência!
Each host's network interface exposes a statistics sub-collection for a host's network interface statistics. Each statistic contains the following elements:
Expand
Table 9.4. Elements for a host's network interface statistics
Element
Type
Description
name
string
The unique identifier for the statistic entry.
description
string
A plain text description of the statistic.
unit
string
The unit or rate to measure the statistical values.
type
One of GAUGE or COUNTER
The type of statistic measures.
values type=
One of INTEGER or DECIMAL
The data type for the statistical values that follow.
value
complex
A data set that contains datum.
datum
see values type
An individual piece of data from a value.
host_nic id=
relationship
A relationship to the containing host_nic resource.
The following table lists the statistic types for network interfaces on hosts.
Expand
Table 9.5. Host NIC statistic types
Name
Description
data.current.rx
The rate in bytes per second of data received.
data.current.tx
The rate in bytes per second of data transmitted.
errors.total.rx
Total errors from receiving data.
errors.total.tx
Total errors from transmitting data.
Example 9.7. An XML representation of a host's network interface statistics sub-collection
Copiar o linkLink copiado para a área de transferência!
A host network interface is attached to a network, indicating the given network is accessible over the interface. Either the id or name elements identify the network.
Example 9.8. Action to attach a host network interface to a network
Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.
Tornando o open source mais inclusivo
A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.
Sobre a Red Hat
Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.