Class HostsResource.GetRequest
Retrieves information about the specified host.
Inheritance
HostsResource.GetRequest
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class HostsResource.GetRequest : ComputeBaseServiceRequest<Host>, IClientServiceRequest<Host>, IClientServiceRequest
Constructors
GetRequest(IClientService, string, string, string, string)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string project, string zone, string association, string host)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | project | |
| string | zone | |
| string | association | |
| string | host |
Properties
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.
Declaration
[RequestParameter("association", RequestParameterType.Path)]
public virtual string Association { get; }
Property Value
| Type | Description |
|---|---|
| string |
Host
The name of the host, formatted as RFC1035 or a resource ID number.
Declaration
[RequestParameter("host", RequestParameterType.Path)]
public virtual string Host { get; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Project
The project ID for this request.
Declaration
[RequestParameter("project", RequestParameterType.Path)]
public virtual string Project { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Zone
The name of the zone for this request, formatted as RFC1035.
Declaration
[RequestParameter("zone", RequestParameterType.Path)]
public virtual string Zone { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()