instances_serial_port_output
Creates, updates, deletes, gets or lists an instances_serial_port_output
resource.
Overview
Name | instances_serial_port_output |
Type | Resource |
Id | google.compute.instances_serial_port_output |
Fields
The following fields are returned by SELECT
queries:
- get_serial_port_output
Successful response
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. (default: compute#serialPortOutput) |
next | string (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. |
selfLink | string | [Output Only] Server-defined URL for this resource. |
start | string (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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_serial_port_output | select | project , zone , instance | port , start | Returns 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.
Name | Datatype | Description |
---|---|---|
instance | string | |
project | string | |
zone | string | |
port | integer (int32) | |
start | string (int64) |
SELECT
examples
- get_serial_port_output
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 }}';