Build elastic cube via Rest API
Hi, I am looking for REST API to build Elastic Cube. I found the below api in v0.9 but when I tried it's not working.
API - /elasticubes/{server}/{elasticube}/startBuild
Paramters - Server Address, Cube ID and Build Type.
Our server is hosted on AWS EC2 instance, so do we need to provide EC2 address? Also what's the value we need to provide for BuildType?
Also I don't find this api in v1 version. Is it removed? I am trying with v0.9 but getting 400 error
-
Hi Srinidhi,
The API you mentioned from v0.9 should do the trick, here is an example of a valid invocation of it:
http://localhost:8081/api/elasticubes/localhost/nullz/startBuild?type=full
- http://localhost:8081 is where Sisense is installed and the API is accessible from
- /localhost/nullz refers to an Elasticube titled "nullz" located on the same machine where the API is run
- type=full means a standard build with accumulation. Use type=restart to rebuild the cube from scratch.
If your Elasticubes are hosted in a different server than the Sisense web server, you'll need to provide the right address in the path. You can see it in the admin page:
If the API request is successful, you should get an empty body response and the Elasticube will be in "building" status (can be seen in the same admin page above)
Please sign in to leave a comment.
Comments
1 comment