Skip to main content

instances_serial_port_output

Creates, updates, deletes, gets or lists an instances_serial_port_output resource.

Overview

Nameinstances_serial_port_output
TypeResource
Idgoogle.compute.instances_serial_port_output

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
contentsstring[Output Only] The contents of the console output.
kindstring[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output. (default: compute#serialPortOutput)
nextstring (int64)[Output Only] The position of the next byte of content, regardless of whether the content exists, following the output returned in the contents property. Use this value in the next request as the start parameter.
selfLinkstring[Output Only] Server-defined URL for this resource.
startstring (int64)The starting byte position of the output that was returned. This should match the start parameter sent with the request. If the serial console output exceeds the size of the buffer (1 MB), older output is overwritten by newer content. The output start value will indicate the byte position of the output that was returned, which might be different than the start value that was specified in the request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_serial_port_outputselectproject, zone, instanceport, startReturns the last 1 MB of serial port output from the specified instance.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instancestring
projectstring
zonestring
portinteger (int32)
startstring (int64)

SELECT examples

Returns the last 1 MB of serial port output from the specified instance.

SELECT
contents,
kind,
next,
selfLink,
start
FROM google.compute.instances_serial_port_output
WHERE project = '{{ project }}' -- required
AND zone = '{{ zone }}' -- required
AND instance = '{{ instance }}' -- required
AND port = '{{ port }}'
AND start = '{{ start }}';