This topic might be out-of-date and is replaced by the following: |
On this Page
The following SnapLogic APIs enable you to manage Snaplex versions programmatically.
Requests all current package versions.
https://elastic.snaplogic.com/api/1/rest/public/snaplex/version
The response contains all versions of Snaplex packages.
{ "response map":{ "entries" [ { "comment":"xxx", "status":"active", "version":"main-xxx" }, ...] "http_status_code": 200} } |
Requests the latest active Snaplex package version.
https://elastic.snaplogic.com/api/1/rest/public/snaplex/version/latest
The response contains the latest available version.
{ "response map":{ "entries" [ { "version":"main-xxx", "comment":"xxx", "status":"active" }, ...] "http_status_code": 200} } |
Updates the target Snaplex to the target version.
You must be an Org admin to use this API.
https://elastic.snaplogic.com/api/1/rest/public/snaplex/version/<snaplex_path>
url: asset path to the Snaplex <snaplex_path>
{ "version": "main-4403" } |
{ "response map":{ "entries" [ { "label":"xxx", "org":"xxx", "environment":"xxx", "snode_id":"xxx", "version":"xxx" }, ...] "http_status_code": 200} } |
Updates the target Snaplex to the latest version available.
You must be an Org admin to use this API.
https://elastic.snaplogic.com/api/1/rest/public/snaplex/version/latest/<snaplex_path>
url: <snaplex_path>
See the previous Sample Response for an example.