Hi Chris,
no idea why that request doesn't return any data. You might want to follow
the howto:
https://your-sentinel-server:8443/Se...en/howtos/inde
x.html#Searching_Events

Norbert

P.S.: The plugin-sdk forum might provide a better audience for REST API
question?


>>> On 18.10.2012 at 16:24, chris54<chris54@no-mx.forums.netiq.com> wrote:


> Norbert Klasen;216304 Wrote:
>> Hi Chris,
>>
>> >>> On 18.10.2012 at 10:44, chris54<chris54@no‑mx.forums.netiq.com>

>> wrote:
>>
>> > I try to use the 'REST API (Beta)'
>> > (http://www.novell.com/developer/plug...f/restapi/7.0/) to

>> get
>> > events and correlated events.
>> >
>> > I can get a authentifiion token and some data, but I have some

>> problems
>> > to get the data I want.

>>
>> You're using the http POST method in your request on /objects/event.
>> That
>> would create a new event in Sentinel (but is not implemented in 7.0,
>> thus
>> the misleading error message).
>>
>> To get events, use GET.
>>
>> You should look at the API doc in your local 7.0.2 system. It has been
>> improved from 7.0.1
>>

>
> Norbert thank for your answer.
>
> Effectively, I look at the wrong API version.
>
> But, I already try to use GET and nothing is return.
> Maybe I don't use the good method to get events or correlated events ?
>
> Here my new test line :
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑‑
>
> curl ‑k ‑XGET ‑H "$SAML_AUTH_HDR" ‑H "Accept: application/json"


> "$PROTOCOL_PARAM://$HOST_NAME_PARAM:$PORT_PARAM/SentinelRESTServices/obje
> cts/event"
>
> or
>
> curl ‑k ‑XGET ‑H "$SAML_AUTH_HDR" ‑H "Accept: application/json"


> "$PROTOCOL_PARAM://$HOST_NAME_PARAM:$PORT_PARAM/SentinelRESTServices/obje
> cts/event?page=2&pagesize=1"
>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑‑