Delete permanent token
Deletes a previously created user token
- Parameters
- Advanced call ?
Function DeletePermanentToken(Val URL, Val Token, Val UserID, Val KeyID) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| UserID | --user | String | ✔ | User ID |
| KeyID | --id | String | ✔ | Token ID |
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 = "test-key_uTk4iLOTRU2XN217ku-ATdmUoqQ...";
UserID = "1";
KeyID = "1...";
Result = OPI_ReportPortal.DeletePermanentToken(URL, Token, UserID, KeyID);
- Bash
- CMD/Bat
oint rportal DeletePermanentToken \
--url "tests.openintegrations.dev" \
--token "***" \
--user 1 \
--id 77
oint rportal DeletePermanentToken ^
--url "tests.openintegrations.dev" ^
--token "***" ^
--user 1 ^
--id 77
Result
{
"message": "Api key with ID = '77' was successfully deleted."
}