I am attempting to utilize the IBM's API to collect log source logs for daily health checks. However I continue to run into issues getting the API commands to run properly. IBM Support essentially told me that they can not help me and that I should post here for assistance. I initially attempt to connect to the api via Powershell using invoke-restmethod however IBM support said I should be utilizing curl instead.
Microsoft Windows [Version 10.0.19045.2486]
(c) Microsoft Corporation. All rights reserved.
C:\Users\b157419>curl https://*******.qradar.ibmcloud.com/api/config/event_sources/log_source_management/log_sources -k -S -X GET -u user@name
Enter host password for user user@name:
<html>
<head>
<title>System Exception</title>
<style type="text/css">
body {
font-family: "IBM Helvetica Neue", "Helvetica Neue", Helvetica, Arial, Roboto, sans-serif;
margin: 0;
height: 100%;
width: 100%;
display: table;
text-align: center;
font-size: 1rem;
line-height: 1.5;
}
div {
vertical-align: middle;
display: table-cell;
}
p {
word-break: break-word;
}
.warningIcon{
font-size: 6rem;
color: #dc0000;
}
.sy-h1 {
font-size: 2rem;
margin-top: -2rem;
margin-bottom: 1.875rem;
line-height: 1.11111;
letter-spacing: .5px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 600;
}
</style>
</head>
<body>
<div>
<span class="warningIcon">⚠</span>
<h1 class="sy-h1">Application error</h1>
<p> An error has occurred. Return and attempt the action again.</br><b>If the problem persists, please contact customer support for assistance.</b></p>
</div>
</body>
</html>
C:\Users\b157419>
Any assistance would be greatly appreciated.
Windows Version 10.0.19045 Build 19045
curl 7.83.1 (Windows) libcurl/7.83.1 Schannel
------------------------------
Alex Mnich
------------------------------