Skip to main content

instances_serial_port_output

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

Overview

Nameinstances_serial_port_output
TypeResource
Idgoogle.compute.instances_serial_port_output

Fields

NameDatatypeDescription
contentsstring[Output Only] The contents of the console output.
kindstring[Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.
nextstring[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.
startstringThe 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

NameAccessible byRequired ParamsDescription
get_serial_port_outputSELECTinstance, project, zoneReturns the last 1 MB of serial port output from the specified instance.

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 instance = '{{ instance }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';