Skip to content

/AWS1/CL_EC2=>GETCONSOLESCREENSHOT()

About GetConsoleScreenshot

Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

The returned content is Base64-encoded.

For more information, see Instance console output in the Amazon EC2 User Guide.

Method Signature

IMPORTING

Required arguments:

IV_INSTANCEID TYPE /AWS1/EC2INSTANCEID /AWS1/EC2INSTANCEID

The ID of the instance.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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 is UnauthorizedOperation.

IV_WAKEUP TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

When set to true, acts as keystroke input and wakes up an instance that's in standby or "sleep" mode.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2GETCONSOLESCREEN01 /AWS1/CL_EC2GETCONSOLESCREEN01