| Modifier and Type | Class and Description |
|---|---|
class |
Compute.Hosts.Get |
class |
Compute.Hosts.GetVersion |
class |
Compute.Hosts.List |
| Constructor and Description |
|---|
Hosts() |
| Modifier and Type | Method and Description |
|---|---|
Compute.Hosts.Get |
get(String project,
String zone,
String association,
String host)
Retrieves information about the specified host.
|
Compute.Hosts.GetVersion |
getVersion(String project,
String zone,
String association,
String host,
HostsGetVersionRequest content)
Allows customers to get SBOM versions of a host.
|
Compute.Hosts.List |
list(String project,
String zone,
String association)
Retrieves a list of hosts.
|
public Compute.Hosts.Get get(String project, String zone, String association, String host) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - The project ID for this request.zone - The name of the zone for this request, formatted as RFC1035.association - The parent resource association for the Host. This field specifies the
hierarchical context (e.g.,
reservation, block, sub-block) when
accessing the host. For example,
reservations/reservation_name,
reservations/reservation_name/reservationBlocks/reservation_block_name or
reservations/res
ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su
b_block_name.host - The name of the host, formatted as RFC1035 or a resource ID
number.IOExceptionpublic Compute.Hosts.GetVersion getVersion(String project, String zone, String association, String host, HostsGetVersionRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - Name of the zone for this request. Zone name should conform to RFC1035.association - The parent resource association for the Host. This field specifies the
hierarchical context (e.g.,
reservation, block, sub-block) when
accessing the host.host - The name of the host, formatted as RFC1035 or a resource ID
number.content - the HostsGetVersionRequestIOExceptionpublic Compute.Hosts.List list(String project, String zone, String association) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - The project ID for this request.zone - The name of the zone for this request, formatted as RFC1035.association - The parent resource association for the Host. This field specifies the
hierarchical context (e.g.,
reservation, block, sub-block) when
accessing the host. For example,
reservations/reservation_name,
reservations/reservation_name/reservationBlocks/reservation_block_name or
reservations/res
ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su
b_block_name.IOExceptionCopyright © 2011–2026 Google. All rights reserved.