Class InstancesResource.GetSerialPortOutputRequest
Returns the last 1 MB of serial port output from the specified instance.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class InstancesResource.GetSerialPortOutputRequest : ComputeBaseServiceRequest<SerialPortOutput>, IClientServiceRequest<SerialPortOutput>, IClientServiceRequest
Constructors
GetSerialPortOutputRequest(IClientService, string, string, string)
Constructs a new GetSerialPortOutput request.
Declaration
public GetSerialPortOutputRequest(IClientService service, string project, string zone, string instance)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | project | |
string | zone | |
string | instance |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Instance
Name of the instance for this request.
Declaration
[RequestParameter("instance", RequestParameterType.Path)]
public virtual string Instance { get; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Port
Specifies which COM or serial port to retrieve data from.
Declaration
[RequestParameter("port", RequestParameterType.Query)]
public virtual int? Port { get; set; }
Property Value
Type | Description |
---|---|
int? |
Project
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
Start
Specifies the starting byte position of the output to return. To start with the first byte of output to
the specified port, omit this field or set it to 0
. If the output for that byte position is available,
this field matches the start
parameter sent with the request. If the amount of serial console output
exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the
requested start position refers to discarded output, the start position is adjusted to the oldest output
still available, and the adjusted start position is returned as the start
property value. You can also
provide a negative start position, which translates to the most recent number of bytes written to the
serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.
Declaration
[RequestParameter("start", RequestParameterType.Query)]
public virtual long? Start { get; set; }
Property Value
Type | Description |
---|---|
long? |
Zone
The name of the zone for this request.
Declaration
[RequestParameter("zone", RequestParameterType.Path)]
public virtual string Zone { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes GetSerialPortOutput parameter list.
Declaration
protected override void InitParameters()