Keboola WIKI‎ > ‎Recipes‎ > ‎

curl api call to get attributes of table or a bucket

by tomas.trnka@keboola.com
---
table:
curl --include \
     --header "X-StorageApi-Token: your_token" \
'https://connection.keboola.com/v2/storage/tables/sys.c-restbox.s3/attributes'

bucket:
curl --include \
     --header "X-StorageApi-Token: your_token" \
'https://connection.keboola.com/v2/storage/buckets/sys.c-restbox/attributes/attributes'

You'll get JSON as a result of both API calls. If you need to convert JSON to CSV, try to use http://json-parser.keboola.com/
Comments