instances_serial_port_output
Creates, updates, deletes, gets or lists a instances_serial_port_output
resource.
Overview
Name | instances_serial_port_output |
Type | Resource |
Id | google.compute.instances_serial_port_output |
Fields
Name | Datatype | Description |
---|---|---|
contents | string | [Output Only] The contents of the console output. |
kind | string | [Output Only] Type of the resource. Always compute#serialPortOutput for serial port output. |
next | string | [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. |
selfLink | string | [Output Only] Server-defined URL for this resource. |
start | string | 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_serial_port_output | SELECT | instance, project, zone | Returns 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 }}';