forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com> Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
11 KiB
11 KiB
Obtaining ECS Management Console Logs
Function
This API is used to obtain ECS management console logs.
URI
POST /v2.1/{project_id}/servers/{server_id}/action
POST /v2/{project_id}/servers/{server_id}/action
Table 1 describes the parameters in the URI.
Constraints
This API will be discarded since a version later than microversion 2.5. When using this API, set the microversion to 2.5 or earlier.
Request
Table 2 describes the request parameters.
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
os-getConsoleOutput |
Yes |
Object |
Obtains ECS management console logs. For details, see Table 3. |
Response
Table 4 describes the response parameter.
Example Request
Obtain console logs of a specified ECS.
POST https://{endpoint}/v2/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action
POST https://{endpoint}/v2.1/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action
{
"os-getConsoleOutput" : {
"length" : "50"
}
}
Example Response
{
"output": "FAKE CONSOLEOUTPUT\nANOTHER\nLAST LINE"
}
Returned Values
Parent topic: ECS Console Management