创建集合
在指定数据库中创建集合。
认证
需要 Api-Key 和 Api-Secret;当数据库 owner 被允许时,也可以使用 Glue owner token。
HTTP 请求
1POST /v1/databases/a1b2c3d4-e5f6-7890-abcd-ef1234567890/collections HTTP/1.1
2Host: api.hola.cloud
3Api-Key: 1abbe476-6ad6-4b97-9cca-6deb6ab2901d
4Api-Secret: 4bda6d52-762b-4e5d-bed7-85614c13b8bf
5Content-Type: application/json
6
7{
8 "name": "my-collection"
9}
响应
1{
2 "name": "my-collection",
3 "total": 0,
4 "indexes": 0,
5 "defaults": {
6 "id": "uuid()"
7 }
8}
评论