Class HostsResource
The "hosts" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class HostsResource
Constructors
HostsResource(IClientService)
Constructs a new resource.
Declaration
public HostsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Get(string, string, string, string)
Retrieves information about the specified host.
Declaration
public virtual HostsResource.GetRequest Get(string project, string zone, string association, string host)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | The project ID for this request. |
| string | zone | The name of the zone for this request, formatted as RFC1035. |
| string | 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/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. |
| string | host | The name of the host, formatted as RFC1035 or a resource ID number. |
Returns
| Type | Description |
|---|---|
| HostsResource.GetRequest |
GetVersion(HostsGetVersionRequest, string, string, string, string)
Allows customers to get SBOM versions of a host.
Declaration
public virtual HostsResource.GetVersionRequest GetVersion(HostsGetVersionRequest body, string project, string zone, string association, string host)
Parameters
| Type | Name | Description |
|---|---|---|
| HostsGetVersionRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | Name of the zone for this request. Zone name should conform to RFC1035. |
| string | association | The parent resource association for the Host. This field specifies the hierarchical context (e.g., reservation, block, sub-block) when accessing the host. |
| string | host | The name of the host, formatted as RFC1035 or a resource ID number. |
Returns
| Type | Description |
|---|---|
| HostsResource.GetVersionRequest |
List(string, string, string)
Retrieves a list of hosts.
Declaration
public virtual HostsResource.ListRequest List(string project, string zone, string association)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | The project ID for this request. |
| string | zone | The name of the zone for this request, formatted as RFC1035. |
| string | 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/reservation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. |
Returns
| Type | Description |
|---|---|
| HostsResource.ListRequest |