3.2.1. Get console output for an instance

 
MethodURIDescription
POST/v2/{tenant_id}/servers/{server_id}/action

Gets console output for a server instance.

Normal response codes: 200

 3.2.1.1. Request

This table shows the URI parameters for the get console output for an instance request:

NameTypeDescription

{tenant_id}

​String

The ID for the tenant or account in a multi-tenancy cloud.

{server_id}

​U​U​ID

The UUID for the server of interest to you.

 

Example 3.34. Get console output: JSON request

{
    "os-getConsoleOutput": {
        "length": 50
    }
}

 

Example 3.35. Get console output: XML request

<?xml version="1.0" encoding="UTF-8"?>
<os-getConsoleOutput length="50" />

This operation does not require a request body.

 3.2.1.2. Response

 

Example 3.36. Get console output: JSON response

{
    "output": "FAKE CONSOLE OUTPUT\nANOTHER\nLAST LINE"
}

 

Example 3.37. Get console output: XML response

<?xml version='1.0' encoding='UTF-8'?>
<output>FAKE CONSOLE OUTPUT
ANOTHER
LAST LINE</output>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...