get_console_output
¶
get_console_output(
*,
config_overrides: Optional[EC2ClientConfig] = None,
instance_id: Optional[InstanceId] = None,
latest: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
) -> GetConsoleOutputResult
Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.
For more information, see Instance console output in the Amazon EC2 User Guide.
Parameters:
-
instance_id(Optional[InstanceId], default:None) –The ID of the instance.
-
latest(Optional[Boolean], default:None) –When enabled, retrieves the latest console output for the instance.
Default: disabled (
false) -
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To get the console output This example gets the console output for the specified instance.
Source code in docs_src/capo_ec2/_services/ec2.py
43278 43279 43280 43281 43282 43283 43284 43285 43286 43287 43288 43289 43290 43291 43292 43293 43294 43295 43296 43297 43298 43299 43300 43301 43302 43303 43304 43305 43306 43307 43308 43309 43310 43311 43312 43313 43314 43315 43316 43317 43318 43319 43320 43321 43322 43323 43324 43325 43326 43327 43328 43329 43330 43331 43332 43333 43334 | |