Get log
Gets information about a log by UUID
- Parameters
- Advanced call ?
Function GetLog(Val URL, Val Token, Val Project, Val LogUUID) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| Project | --proj | String | ✔ | Project ID |
| LogUUID | --uuid | String | ✔ | Log UUID |
Returns
Map Of KeyAndValue - serialized JSON response from ReportPortal
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";
LogUUID = "";
Project = "Test";
Result = OPI_ReportPortal.GetLog(URL, Token, Project, LogUUID);
- Bash
- CMD/Bat
oint rportal GetLog \
--url "tests.openintegrations.dev" \
--token "***" \
--proj "Test" \
--uuid "8cedee5d-58a4-4768-a12b-9fa4fb48ee2c"
oint rportal GetLog ^
--url "tests.openintegrations.dev" ^
--token "***" ^
--proj "Test" ^
--uuid "8cedee5d-58a4-4768-a12b-9fa4fb48ee2c"
Result
{
"id": 463469,
"uuid": "f401824e-09b5-48e2-b1d0-6b72a54ff5b6",
"time": "1970-01-21T10:54:18.01Z",
"message": "Some log 1",
"level": "INFO",
"itemId": 471739
}