Search code examples
amazon-web-serviceshttp-postorange-api

Orange API: How to post on AWS with HTTP from Live Objects?


How to send data from Orange Live Objects to AWS using HTTP POST, knowing that AWS needs authentication (CA, cert and private key) ?

Currently I got a 403 forbidden error as I don't send anything relative to secure connection.

I tried successfully with curl in adding --cacert --cert and --key but I don't know how to do that with the Orange REST API.

  • Where can I add these pieces of information?

  • Within the HTTP header?

  • Is there a specific value to enter?


Solution

  • If you see that AWS replies with a 403 status code to the push, it means that the TLS handshake is OK.

    If you need to set HTTP headers for authentication, you can specify these headers when you provision your action policy (see httpPush -> headers).

    You can test the HTTP service with this endpoint : /api/v0/event2action/test/http-push available on the swagger : https://liveobjects.orange-business.com/swagger-ui/index.html#/Triggers_and_Actions_-_Test

    Aurelien