forked from rockset/openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspec3.yaml
More file actions
15030 lines (15014 loc) · 449 KB
/
spec3.yaml
File metadata and controls
15030 lines (15014 loc) · 449 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
components:
requestBodies:
ExecuteQueryLambdaRequest:
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteQueryLambdaRequest'
description: JSON object
GetCollectionCommitRequest:
content:
application/json:
schema:
$ref: '#/components/schemas/GetCollectionCommitRequest'
description: JSON object
required: true
QueryRequest:
content:
application/json:
schema:
$ref: '#/components/schemas/QueryRequest'
description: JSON object
required: true
schemas:
AddDocumentsRequest:
properties:
data:
description: Array of documents to be added to the collection.
example: '[{ "field": "value" }]'
items:
type: object
type: array
required:
- data
type: object
AddDocumentsResponse:
properties:
data:
description: Information about the added documents.
items:
$ref: '#/components/schemas/DocumentStatus'
type: array
last_offset:
description: A string representing the collection offset after completing
the write.
example: f1:0:0:0:0
type: string
type: object
Alias:
properties:
collections:
description: List of fully qualified collection names referenced by alias.
example: '["commons.foo", "prod.demo"]'
items:
type: string
type: array
created_at:
description: ISO-8601 date.
example: '2001-08-28T00:23:41Z'
type: string
created_by_apikey_name:
description: Name of the API key that was used to create this object if
one was used.
type: string
creator_email:
description: Email of the creator.
example: xyz@rockset.com
type: string
description:
description: Alias description.
example: alias referencing collection in workspace
type: string
modified_at:
description: ISO-8601 date.
example: '2001-08-28T00:23:42Z'
type: string
name:
description: Name of the alias.
example: demo
type: string
state:
description: State of the alias.
enum:
- CREATED
- DELETED
example: CREATED
type: string
workspace:
description: Name of the workspace.
example: commons
type: string
type: object
ApiKey:
description: API keys are used to authenticate requests to Rockset's API. An
API key is tied to the user who creates it.
properties:
created_at:
description: Date that API key was created (ISO-8601 format).
example: '2001-08-28T00:23:41Z'
type: string
created_by:
description: Email of API key owner.
example: test@rockset.com
type: string
created_by_apikey_name:
description: Name of the API key that was used to create this object if
one was used.
type: string
expiry_time:
description: The expiration date of this API key.
example: '2001-08-28T00:23:41Z'
type: string
key:
description: This field will only be populated with the full key when creating
an API key. Otherwise, it will be an API key identifier of 6 characters.
example: aB35kD
type: string
last_access_time:
description: Date that API key was most recently used (ISO-8601 format).
example: '2001-08-28T00:23:41Z'
type: string
name:
description: Name of the API key.
example: my-key
type: string
role:
description: Role specifying access control. If not specified, API key will
have access to all of the associated user's roles.
example: read-only
type: string
state:
description: Current state of this key.
enum:
- ACTIVE
- SUSPENDED
example: ACTIVE
type: string
required:
- key
- name
type: object
AsyncQueryOptions:
properties:
client_timeout_ms:
description: 'If the query completes before the client timeout, the results
are returned. Otherwise if the client timeout is exceeded, the query id
will be returned, and the query will continue to run in the background
for up to 30 minutes. (The 30 minute timeout can be configured lower with
timeout_ms.) `async_options.client_timeout_ms` only applies when `async`
is true. The default value of `client_timeout_ms` is 0, so async query
requests will immediately return with a query id by default. '
format: int64
type: integer
max_initial_results:
description: '[DEPRECATED] Use the query request `max_initial_results` instead.
The maximum number of results you will receive as a client. If the query
exceeds this limit, the remaining results can be requested using a returned
pagination cursor. In addition, there is a maximum response size of 100MiB
so fewer than `max_results` may be returned.'
format: int64
type: integer
timeout_ms:
description: '[DEPRECATED] Use the query request `timeout_ms` instead. The
maximum amount of time that the system will attempt to complete query
execution before aborting the query and returning an error. This must
be set to a value that is greater than or equal to the client timeout,
and the maximum value of this timeout is 30 minutes.'
format: int64
type: integer
type: object
AutoScalingPolicy:
properties:
enabled:
description: Whether auto scaling policy is enabled.
example: true
type: boolean
max_size:
description: Maximum size Rockset can auto scale the Virtual Instance to.
This value should be one of the dedicated sizes greater than or same as
the min_size and lower than or same as the current size.
enum:
- FREE
- NANO
- SHARED
- MILLI
- XSMALL
- SMALL
- MEDIUM
- LARGE
- XLARGE
- XLARGE2
- XLARGE4
- XLARGE8
- XLARGE16
example: XLARGE2
type: string
min_size:
description: Minimum size Rockset can auto scale the Virtual Instance to.
This value should be one of the dedicated sizes lower than or same as
the max_size and greater than or same as the current size.
enum:
- FREE
- NANO
- SHARED
- MILLI
- XSMALL
- SMALL
- MEDIUM
- LARGE
- XLARGE
- XLARGE2
- XLARGE4
- XLARGE8
- XLARGE16
example: LARGE
type: string
type: object
AvroParams:
type: object
AwsAccessKey:
properties:
aws_access_key_id:
description: AWS access key ID.
example: AKIAIOSFODNN7EXAMPLE
type: string
aws_secret_access_key:
description: AWS secret access key.
example: wJal....
type: string
required:
- aws_access_key_id
- aws_secret_access_key
type: object
AwsRole:
properties:
aws_external_id:
description: External id used for integration.
example: external id of aws
type: string
aws_role_arn:
description: ARN of rockset-role created in your account.
example: arn:aws:iam::2378964092:role/rockset-role
type: string
required:
- aws_role_arn
type: object
AzureBlobStorageIntegration:
properties:
connection_string:
description: Credentials for the Azure Blob Service.
example: 'BlobEndpoint=https://<NamespaceName>.blob.core.windows.net;
SharedAccessSignature=<KeyValue>'
type: string
required:
- connection_string
type: object
AzureEventHubsIntegration:
properties:
connection_string:
description: Credentials for the Azure Event Hubs.
example: Endpoint=sb://<NamespaceName>.servicebus.windows.net/;SharedAccessKeyName=<KeyName>;SharedAccessKey=<KeyValue>
type: string
type: object
AzureServiceBusIntegration:
properties:
connection_string:
description: Credentials for the Azure Service Bus.
example: Endpoint=sb://<NamespaceName>.servicebus.windows.net/;SharedAccessKeyName=<KeyName>;SharedAccessKey=<KeyValue>
type: string
required:
- connection_string
type: object
BulkStats:
properties:
data_downloaded_bytes:
description: Size in bytes of documents downloaded from source during an
ongoing or completed bulk ingest. This includes documents that are dropped
and reingested.
example: 10000000
format: int64
type: integer
data_indexed_bytes:
description: Size in bytes of documents indexed. This is the total size
of documents after transformations and dropping before indexes are built.
example: 8000000
format: int64
type: integer
data_indexed_throughput_bytes:
description: Throughput of documents indexed in the last minute measured
in bytes/s. This is based off the data_indexed_bytes size. Throughput
during the download stage is shown on a per-source granularity in the
sources field of the Collection response.
example: 800000.5
format: double
type: number
documents_downloaded:
description: Number of documents downloaded from source during an ongoing
or completed bulk ingest. This includes documents that are dropped and
reingested.
example: 10000
format: int64
type: integer
download_compute_ms:
description: Bulk ingest compute units in milliseconds used for downloading
documents.
example: 50000
format: int64
type: integer
downloading_stage_done_at:
description: ISO-8601 date of when the downloading stage was completed.
example: '2001-08-28T00:23:41Z'
type: string
finalizing_stage_done_at:
description: ISO-8601 date of when the finalizing stage was completed.
example: '2001-08-28T00:23:41Z'
type: string
index_compute_ms:
description: Bulk ingest compute units in milliseconds used for indexing
documents.
example: 100000
format: int64
type: integer
indexing_stage_done_at:
description: ISO-8601 date of when the indexing stage was completed.
example: '2001-08-28T00:23:41Z'
type: string
initializing_stage_done_at:
description: ISO-8601 date of when the initializing stage was completed.
example: '2001-08-28T00:23:41Z'
type: string
pre_index_size_bytes:
description: Size in bytes of documents before being indexed. This is the
total size of documents after decompression, transformations, and dropping.
This is equal to data_indexed_bytes after the indexing stage is done unless
there are retries during indexing the data.
example: 8000000
format: int64
type: integer
provisioning_stage_done_at:
description: ISO-8601 date of when the provisioning stage was completed.
example: '2001-08-28T00:23:41Z'
type: string
started_at:
description: ISO-8601 date of when the bulk ingest was started.
example: '2001-08-28T00:23:41Z'
type: string
total_index_size_bytes:
description: Total size of indexes after the completed bulk ingest. This
is the same as collection size.
example: 10000000
format: int64
type: integer
transformation_compute_ms:
description: Bulk ingest compute units in milliseconds used for ingest transformation.
example: 50000
format: int64
type: integer
type: object
CancelQueryResponse:
properties:
data:
$ref: '#/components/schemas/QueryInfo'
type: object
Cluster:
properties:
apiserver_url:
description: Api server url for cluster.
example: api.rockset.us-west-2.rockset.com
type: string
aws_region:
description: Aws region.
example: us-west-2
type: string
cluster_type:
description: Cluster type.
enum:
- PUBLIC
example: PRIVATE
type: string
domain:
description: Domain of org using cluster.
example: rockset
type: string
id:
description: Unique identifier for the cluster.
example: asdf98-as9df8adf-adsf9asfd
type: string
top_level_domain:
description: Top level domain of org using cluster.
example: .com
type: string
type: object
Collection:
properties:
aliases:
description: List of aliases for a collection.
items:
$ref: '#/components/schemas/Alias'
type: array
bulk_stats:
items:
$ref: '#/components/schemas/BulkStats'
type: array
clustering_key:
description: List of clustering fields for a collection.
items:
$ref: '#/components/schemas/FieldPartition'
type: array
created_at:
description: ISO-8601 date.
example: '2001-08-28T00:23:41Z'
type: string
created_by:
description: Email of user who created the collection.
example: hello@rockset.com
type: string
created_by_apikey_name:
description: Name of the API key that was used to create this collection
if one was used.
type: string
description:
description: Text describing the collection.
example: transactions from stores worldwide
type: string
field_mapping_query:
$ref: '#/components/schemas/FieldMappingQuery'
description: Field mapping for a collection.
field_mappings:
description: List of mappings applied on all documents in a collection.
items:
$ref: '#/components/schemas/FieldMappingV2'
type: array
insert_only:
description: Whether the collection is insert only or not.
type: boolean
name:
description: Unique identifer for collection, can contain alphanumeric or
dash characters.
example: global-transactions
pattern: ^[A-Za-z0-9_\-.]+$
type: string
read_only:
description: Whether the collection is read-only or not.
type: boolean
retention_secs:
description: Number of seconds after which data is purged based on event
time.
example: 2592000
format: int64
type: integer
rrn:
description: Collection RRN.
example: rrn:col:use1a1:123e4567-e89b-12d3-a456-556642440000
type: string
sources:
description: List of sources from which collection ingests.
items:
$ref: '#/components/schemas/Source'
type: array
stats:
$ref: '#/components/schemas/CollectionStats'
description: Metrics about the collection.
status:
description: Current status of collection.
enum:
- INITIALIZED
- CREATED
- READY
- PAUSED
- DELETED
- PAUSING
- RESUMING
- PREPARING_BULK
- BULK_INGEST_MODE
- EXITING_BULK_INGEST_MODE
- ENCRYPTION_KEY_ERROR
- UNKNOWN
example: READY
type: string
storage_compression_type:
description: RocksDB storage compression type.
enum:
- LZ4
- ZSTD
- UNKNOWN
type: string
workspace:
description: Name of the workspace that the collection is in.
example: commons
type: string
type: object
CollectionMount:
properties:
collection_path:
description: Collection path.
example: commons.foo
type: string
created_at:
description: ISO-8601 date.
example: '2001-08-28T00:23:41Z'
type: string
id:
description: Mount ID.
example: 5ac23....
type: string
last_refresh_time_millis:
description: Unix timestamp of most recent refresh. Not applicable for live
mounts.
example: 123123764
format: int64
type: integer
rrn:
description: Mount RRN.
example: rrn:mnt:use1a1:123e4567-e89b-12d3-a456-556642440000
type: string
snapshot_expiration_time_millis:
description: Time in millis at which the snapshot expires.
example: 864000000
format: int64
type: integer
state:
description: Mount type.
enum:
- CREATING
- ACTIVE
- REFRESHING
- EXPIRED
- DELETING
- SWITCHING_REFRESH_TYPE
- SUSPENDED
- SUSPENDING
example: ACTIVE
type: string
stats:
$ref: '#/components/schemas/CollectionMountStats'
description: Stats about this Collection Mount
virtual_instance_id:
description: Virtual instance ID.
example: 5ac23....
type: string
virtual_instance_rrn:
description: Virtual Instance RRN.
example: rrn:vi:use1a1:123e4567-e89b-12d3-a456-556642440000
type: string
type: object
CollectionMountResponse:
properties:
data:
$ref: '#/components/schemas/CollectionMount'
description: Resource mount object.
type: object
CollectionMountStats:
properties:
last_queried_ms:
description: Milliseconds since Unix epoch Jan 1, 1970.
example: 1535101119334
format: int64
type: integer
type: object
CollectionStats:
properties:
bulk_bytes_inserted:
description: Total number of bytes inserted into the collection during bulk.
format: int64
type: integer
bulk_bytes_overwritten:
description: Total number of bytes overwritten in writing into the collection
during bulk.
format: int64
type: integer
bytes_inserted:
description: Total number of bytes inserted into the collection.
example: 123456
format: int64
type: integer
bytes_overwritten:
description: Total number of bytes overwritten in writing into the collection.
example: 123456
format: int64
type: integer
column_index_size:
description: Total collection column index size in bytes.
example: 123456
format: int64
type: integer
doc_count:
description: Number of documents in the collection.
example: 2145
format: int64
type: integer
fill_progress:
description: Number between 0 and 1 that indicates progress of collection
creation.
example: 0.6
format: double
type: number
inverted_index_size:
description: Total collection inverted index size in bytes.
example: 123456
format: int64
type: integer
last_queried_ms:
description: Milliseconds since Unix epoch Jan 1, 1970.
example: 1535101119334
format: int64
type: integer
last_updated_ms:
description: Milliseconds since Unix epoch Jan 1, 1970.
example: 1535101094433
format: int64
type: integer
purged_doc_count:
description: Number of documents purged from the collection.
example: 2145
format: int64
type: integer
purged_doc_size:
description: Total size of bytes purged in bytes.
example: 123456
format: int64
type: integer
range_index_size:
description: Total collection range index size in bytes.
example: 123456
format: int64
type: integer
row_index_size:
description: Total collection row index size in bytes.
example: 123456
format: int64
type: integer
total_index_size:
description: Total collection index size in bytes.
example: 123456
format: int64
type: integer
total_size:
description: Total collection size in bytes.
example: 123456
format: int64
type: integer
type: object
CreateAliasRequest:
properties:
collections:
description: List of fully qualified collection names referenced by alias.
example: '["commons.foo", "prod.demo"]'
items:
type: string
type: array
description:
description: Optional description.
example: version alias
type: string
name:
description: Alias name.
example: aliasName
type: string
required:
- collections
- name
type: object
CreateAliasResponse:
properties:
data:
$ref: '#/components/schemas/Alias'
description: Alias that was created.
type: object
CreateApiKeyRequest:
properties:
created_by:
type: string
expiry_time:
description: If provided, the API key will automatically expire at this
time (ISO-8601 format). Requires premium.
example: '2001-08-28T00:23:41Z'
type: string
name:
description: Name for this API key.
example: my-app
type: string
role:
type: string
required:
- name
type: object
CreateApiKeyResponse:
properties:
data:
$ref: '#/components/schemas/ApiKey'
description: The API key that was created.
type: object
CreateCollectionMountRequest:
properties:
collection_paths:
description: Collections to mount.
example: '["commons.foo", "commons.bar"]'
items:
type: string
type: array
type: object
CreateCollectionMountsResponse:
properties:
data:
description: Mounts created.
items:
$ref: '#/components/schemas/CollectionMount'
type: array
type: object
CreateCollectionRequest:
properties:
clustering_key:
description: Deprecated. List of clustering fields. Use CLUSTER BY clause
in `field_mapping_query` instead.
items:
$ref: '#/components/schemas/FieldPartition'
type: array
description:
description: Text describing the collection.
example: transactions from stores worldwide
type: string
event_time_info:
$ref: '#/components/schemas/EventTimeInfo'
description: Deprecated. Configuration for event data. Use an _event_time
mapping in `field_mapping_query` instead.
field_mapping_query:
$ref: '#/components/schemas/FieldMappingQuery'
description: Ingest transformation query.
name:
description: Unique identifier for collection, can contain alphanumeric
or dash characters.
example: global-transactions
type: string
retention_secs:
description: Number of seconds after which data is purged, based on event
time. Minimum allowable value is 3600s/1 hour. The maximum value is strictly
less than 10 years.
example: 1000000
format: int64
maximum: 315359999
minimum: 3600
type: integer
source_download_soft_limit_bytes:
description: Soft ingest limit for this collection.
format: int64
type: integer
sources:
description: List of sources from which to ingest data.
items:
$ref: '#/components/schemas/Source'
type: array
storage_compression_type:
description: RocksDB storage compression type.
enum:
- LZ4
- ZSTD
example: LZ4
type: string
type: object
CreateCollectionResponse:
properties:
data:
$ref: '#/components/schemas/Collection'
description: Collection that was created.
type: object
CreateIntegrationRequest:
properties:
azure_blob_storage:
$ref: '#/components/schemas/AzureBlobStorageIntegration'
description: Azure Blob Storage details.
azure_event_hubs:
$ref: '#/components/schemas/AzureEventHubsIntegration'
description: Azure Event Hubs details.
azure_service_bus:
$ref: '#/components/schemas/AzureServiceBusIntegration'
description: Azure Service Bus details.
description:
description: Longer explanation for the integration.
example: AWS account with event data for the data science team.
type: string
dynamodb:
$ref: '#/components/schemas/DynamodbIntegration'
description: Amazon DynamoDB details, must have one of aws_access_key or
aws_role.
gcs:
$ref: '#/components/schemas/GcsIntegration'
description: GCS details.
is_write_enabled:
description: is write access enabled for this integration.
type: boolean
kafka:
$ref: '#/components/schemas/KafkaIntegration'
kinesis:
$ref: '#/components/schemas/KinesisIntegration'
description: Amazon Kinesis details, must have one of aws_access_key or
aws_role.
mongodb:
$ref: '#/components/schemas/MongoDbIntegration'
description: MongoDb details.
name:
description: Descriptive label.
example: event-logs
type: string
s3:
$ref: '#/components/schemas/S3Integration'
description: Amazon S3 details, must have one of aws_access_key or aws_role.
snowflake:
$ref: '#/components/schemas/SnowflakeIntegration'
description: Snowflake details.
required:
- name
type: object
CreateIntegrationResponse:
properties:
data:
$ref: '#/components/schemas/Integration'
description: Integration object that was created.
type: object
CreateQueryLambdaRequest:
properties:
description:
description: Optional description.
example: production version foo
type: string
is_public:
type: boolean
name:
description: Query Lambda name.
example: myQueryLambda
type: string
sql:
$ref: '#/components/schemas/QueryLambdaSql'
description: Query Lambda SQL query.
required:
- name
- sql
type: object
CreateQueryLambdaTagRequest:
properties:
tag_name:
description: Name of Query Lambda tag.
example: production
type: string
version:
description: Hash identifying a Query Lambda tag.
example: 123ABC
type: string
required:
- tag_name
- version
type: object
CreateRoleRequest:
properties:
description:
description: Description for the role.
example: Role with read and write privileges to all collections.
type: string
privileges:
description: List of privileges that will be associated with the role.
items:
$ref: '#/components/schemas/Privilege'
type: array
role_name:
description: Unique identifier for the role.
example: read_write
type: string
type: object
CreateScheduledLambdaRequest:
properties:
apikey:
description: The apikey to use when triggering execution of the associated
query lambda.
example: qoiwkjndksd
type: string
cron_string:
description: The UNIX-formatted cron string for this scheduled query lambda.
example: '* * * * *'
type: string
ql_name:
description: The name of the QL to use for scheduled execution.
example: ql_name
type: string
tag:
description: The QL tag to use for scheduled execution. One of either the
QL tag or version must be specified
example: production
type: string
total_times_to_execute:
description: The number of times to execute this scheduled query lambda.
Once this scheduled query lambda has been executed this many times, it
will no longer be executed.
example: 1
format: int64
type: integer
version:
description: The version of the QL to use for scheduled execution. One of
either the QL version or tag must be specified.
example: abcdef1234
type: string
webhook_auth_header:
description: The value to use as the authorization header when hitting the
webhook.
example: bearer qiowjkjkdskdskldio
type: string
webhook_payload:
description: The payload that should be sent to the webhook. JSON format.
type: string
webhook_url:
description: The URL of the webhook that should be triggered after this
scheduled query lambda completes.
example: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
type: string
required:
- apikey
- cron_string
- ql_name
type: object
CreateUserRequest:
properties:
email:
description: User email, must be unique.
example: hello@rockset.com
type: string
first_name:
description: User first name.
example: John
type: string
last_name:
description: User last name.
example: Doe
type: string
roles:
description: List of roles for a given user.
example: '["admin", "member", "read-only"]'
items:
type: string
type: array
required:
- email
- roles
type: object
CreateUserResponse:
properties:
data:
$ref: '#/components/schemas/User'
description: User that was created.
type: object
CreateViewRequest:
properties:
description:
description: Optional description.
example: view of awesome collection
type: string
name:
description: View name.
example: myAwesomeView
type: string
query:
description: SQL for this view.
example: SELECT * FROM foo
type: string
required:
- name
- query
type: object
CreateViewResponse:
properties:
data:
$ref: '#/components/schemas/View'
description: View that was updated.
type: object
CreateVirtualInstanceRequest:
properties:
auto_suspend_seconds:
description: Number of seconds without queries after which the VI is suspended
example: 3600
format: int32
type: integer
description:
description: Description of requested virtual instance.
example: VI serving prod traffic
type: string
enable_remount_on_resume:
description: When a Virtual Instance is resumed, it will remount all collections
that were mounted when the Virtual Instance was suspended.
example: true
type: boolean
instance_class:
description: Virtual Instance Class. Use `MO_IL` for Memory Optimized and
`GP_IL` for General Purpose instance class.
enum:
- MO_IL
- GP_IL
example: MO_IL
type: string
mount_refresh_interval_seconds:
description: DEPRECATED. Use `mount_type` instead. Number of seconds between
data refreshes for mounts on this Virtual Instance. The only valid values
are 0 and null. 0 means the data will be refreshed continuously and null
means the data will never refresh.