-
Notifications
You must be signed in to change notification settings - Fork 12
/
openapi.yaml
4039 lines (3829 loc) · 160 KB
/
openapi.yaml
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
openapi: "3.0.2"
info:
title: "Ondat API"
version: "2.8.0"
contact:
name: Ondat
url: https://www.ondat.io/
externalDocs:
url: https://docs.ondat.io/
description: "The latest Ondat user documentation"
servers:
- url: /v2
components:
securitySchemes:
# The Ondat API uses JWT (JSON web token) based authentication.
jwt:
type: http
scheme: bearer
bearerFormat: "JWT"
description: Ondat uses JSON web tokens for authentication.
schemas:
OpenAPISpec:
type: string
readOnly: true
description: >
Serves this openapi specification file.
# This is the standard HTTP error format used for all API errors.
Error:
type: object
required:
- error
properties:
error:
type: string
example:
error: A short description of the error
# ------------------------------------------------------------------------------
# generic types used across multiple endpoints
# ------------------------------------------------------------------------------
Version:
type: string
maxLength: 30
description: >
An opaque representation of an entity version at the time it was
obtained from the API.
All operations that mutate the entity must include this version
field in the request unchanged.
The format of this type is undefined and may change but the
defined properties will not change.
example: NDI0MjQyNDI0MjQyNDI0MjQy
IgnoreVersion:
type: boolean
default: false
description: >
Ignoring the entity version constraints.
If set to true this value indicates that the user wants to
ignore entity version constraints, thereby "forcing" the
operation.
example: true
ExpiresAt:
type: string
format: date-time
readOnly: true
description: >
The time after which a licence will no longer be valid
This timestamp is set when the licence is created.
String format is RFC3339.
example: "2019-03-10T13:42:42Z"
CreatedAt:
type: string
format: date-time
readOnly: true
description: >
The time the entity was created.
This timestamp is set by the node that created the entity, and
may not be correct if the node's local clock was skewed.
This value is for the user's informative purposes only, and
correctness is not required.
String format is RFC3339.
example: "2019-03-10T13:42:42Z"
UpdatedAt:
type: string
format: date-time
readOnly: true
description: >
The time the entity was last updated.
This timestamp is set by the node that last updated the entity,
and may not be correct if the node's local clock was skewed.
This value is for the user's informative purposes only, and
correctness is not required.
String format is RFC3339.
example: "2019-03-29T23:13:13Z"
FsType:
type: string
enum:
- "ext2"
- "ext3"
- "ext4"
- "xfs"
- "btrfs"
- "block"
description: >
The file system type of a volume. "block" is a raw block device (no filesystem).
example: "ext4"
AttachType:
type: string
readOnly: true
enum:
- "unknown"
- "detached"
- "nfs"
- "host"
description: >
The attachment type of a volume. "host" indicates that the
volume is consumed by the node it is attached to.
example: "host"
FailureModeIntent:
type: string
enum:
- "hard"
- "soft"
- "alwayson"
description: >
The intent-based failure mode behaviour of a volume. The default
behaviour for a volume is "hard", in the absence of a directly
configured intent or numerical failure threshold.
example: "hard"
NodeHealth:
type: string
readOnly: true
enum:
- "online"
- "offline"
- "unknown"
description: >
The operational health of a node entity
example: "online"
MasterHealth:
type: string
readOnly: true
enum:
- "online"
- "offline"
- "unknown"
description: >
The operational health of a volume master deployment
example:
"online"
ReplicaHealth:
type: string
readOnly: true
enum:
- "recovering"
- "provisioning"
- "provisioned"
- "syncing"
- "ready"
- "deleted"
- "failed"
- "unknown"
description: >
The operational health of a volume replica deployment
example: "ready"
SyncProgress:
type: object
readOnly: true
properties:
bytesRemaining:
type: uint64
description: >
Number of bytes left remaining to complete the sync.
example: 500000
throughputBytes:
type: uint64
description: >
The average throughput of the sync given as bytes per
second.
example: 100000
estimatedSecondsRemaining:
type: uint64
description: >
The estimated time left for the sync to complete, given
in seconds. When this field has a value of 0 either the
sync is complete or no duration estimate could be made.
The values reported for bytesRemaining and
throughputBytes provide the client with the information
needed to choose what to display.
example: 5
description: >
The progress report for an ongoing sync.
CapacityStats:
type: object
properties:
total:
type: uint64
default: 0
description: >
Total bytes in the filesystem
example: 42
free:
type: uint64
default: 0
description: >
Free bytes in the filesystem available to root user
example: 42
available:
type: uint64
default: 0
description: >
Byte value available to an unprivileged user
example: 42
NfsAcl:
type: object
properties:
identity:
type: object
properties:
identityType:
type: string
enum:
- "cidr"
- "hostname"
- "netgroup"
description: >
The identity type used to identify the nfs client.
example: "hostname"
matcher:
type: string
description: >
NFS identity matcher.
For "cidr", this should be a valid CIDR block string
such as "10.0.0.0/8".
For "hostname", this must be the hostname sent by the
client, with ? and * wildcard characters.
For netgroup, this must be in the form of
"@netgroup" with ? and * wildcard characters.
example: "*.prod.ondat.com"
squashConfig:
type: object
properties:
uid:
type: int64
gid:
type: int64
squash:
type: string
enum:
- "none"
- "root"
- "rootuid"
- "all"
description: >
SquashConfig defines the root squashing behaviour.
When a client creates a file, it sends the user UID
from the client. If the client is running as root,
this sends uid=0. Root squashing allows the NFS
administrator to prevent the client from writing as
"root" to the NFS share, instead mapping the client
to a new UID/GID (usually nfsnobody, -2).
"none" performs no UID/GID alterations, using the
values sent by the client.
"root" maps UID & GID 0 to the values specified.
"rootuid" maps UID 0 and a GID of any value to the
value specified.
"all" maps changes all UID and GID values to those
specified.
example: "root"
accessLevel:
type: string
enum:
- "ro"
- "rw"
description: >
The access level this ACL grants - read-only, or read-write.
example: "rw"
NfsExportConfig:
type: object
properties:
exportID:
type: uint64
default: 0
description: >
ID for this export
example: 42
path:
type: string
default: ""
description: >
The path relative to the volume root to serve as the export root
example: "/very/important/files/"
pseudoPath:
type: string
default: ""
description: >
The configured pseudo path in the NFS virtual filesystem.
This is the path clients will see when traversing to this
export on the NFS share.
example: "/very/important/files/somewhere/else"
acls:
type: array
items:
$ref: "#/components/schemas/NfsAcl"
NfsConfig:
type: object
properties:
exports:
nullable: true
type: array
items:
$ref: "#/components/schemas/NfsExportConfig"
serviceEndpoint:
type: string
readOnly: true
nullable: true
default: ""
description: >
The address to which the NFS server is bound.
Labels:
type: object
description: >
A set of arbitrary key value labels to apply to the entity.
externalDocs:
url: https://docs.ondat.io/docs/reference/labels
additionalProperties:
type: string
example:
env: prod
rack: db-1
TopologyLabels:
type: object
description: >
List of requisite and preferred topology zones where the volume should be accessible from.
properties:
requisiteZones:
type: array
items:
type: string
preferredZones:
type: array
items:
type: string
LogLevel:
type: string
enum:
- "debug"
- "info"
- "warn"
- "error"
default: "info"
description: >
This setting determines the log level for nodes across
the cluster to use when recording entries in the log.
All entries below the specified log level are discarded,
where "error" is the highest log level and "debug" is
the lowest.
This setting is only checked by nodes on startup.
Changing this setting will not affect the behaviour of
nodes that are already operational.
example: "debug"
LogFormat:
type: string
enum:
- "default"
- "json"
default: "default"
description: >
This setting determines the format nodes in the cluster
will use for log entries.
This setting is only checked by nodes on startup.
Changing this setting will not affect the behaviour of
nodes that are already operational.
example: "json"
Strategy:
type: object
properties:
strategy:
type: string
enum:
- random
- recommended
- topology-aware
- fixed-topology
default: recommended
options:
type: object
properties:
topologyKey:
type: string
default: topology.kubernetes.io/zone
example: my.custom.zone.label
description: >
Indicates the node label used to decribe the topology
used for data placement decisions. If two nodes are
labelled with this key and have identical values
for that label, the scheduler treats both nodes
as being in the same topology domain.
When topology-aware provisioning is enabled,
the scheduler uses this label for that purpose.
nullable: true
description: >
Used together with topology-aware strategy to further
specify how the placement should be done.
description: >
The logic to use when placing the volume replicas across the
available nodes. Possible options for this field include an
availability zone aware rule and recommended rule in which
multiple factors like available disk space, recent number of
errors on the nodes, etc, are taken into consideration.
Defaults to using a recommended placement strategy.
# ------------------------------------------------------------------------------
# UUIDs
# ------------------------------------------------------------------------------
ClusterID:
readOnly: true
type: string
description: >
A unique identifier for a cluster.
The format of this type is undefined and may change but the
defined properties will not change.
example: c5666b58-b805-4215-ab4a-cb094948ccc6
NodeID:
readOnly: true
type: string
description: >
A unique identifier for a node.
The format of this type is undefined and may change but the
defined properties will not change.
example: c5666b58-b805-4215-ab4a-cb094948ccc6
VolumeID:
type: string
description: >
A unique identifier for a volume.
The format of this type is undefined and may change but the
defined properties will not change.
example: c5666b58-b805-4215-ab4a-cb094948ccc6
SnapshotID:
type: integer
description: >
A unique identifier for a snapshot.
minimum: 0
maximum: 18446744073709551615
DeploymentID:
type: string
description: >
A unique identifier for a volume deployment.
The format of this type is undefined and may change but the
defined properties will not change.
example: c5666b58-b805-4215-ab4a-cb094948ccc6
NamespaceID:
type: string
description: >
A unique identifier for a namespace.
The format of this type is undefined and may change but the
defined properties will not change..
example: c5666b58-b805-4215-ab4a-cb094948ccc6
UserID:
type: string
description: >
A unique identifier for a user.
The format of this type is undefined and may change but the
defined properties will not change..
example: c5666b58-b805-4215-ab4a-cb094948ccc6
PolicyGroupID:
type: string
description: >
A unique identifier for a policy group.
The format of this type is undefined and may change but the
defined properties will not change..
example: c5666b58-b805-4215-ab4a-cb094948ccc6
PoolID:
type: string
description: >
A unique identifier for a pool.
The format of this type is undefined and may change but the
defined properties will not change..
example: c5666b58-b805-4215-ab4a-cb094948ccc6
# ------------------------------------------------------------------------------
# entity objects (e.g user)
#
# Mutating an entity will have a slightly different data model and are
# defined inline for each endpoint.
# ------------------------------------------------------------------------------
Cluster:
type: object
properties:
id:
$ref: "#/components/schemas/ClusterID"
disableTelemetry:
type: boolean
default: false
description: Disables collection of telemetry data across the cluster.
example: false
disableCrashReporting:
type: boolean
default: false
description: >
Disables collection of reports for any fatal crashes across the
cluster.
example: false
disableVersionCheck:
type: boolean
default: false
description: >
Disables the mechanism responsible for checking if there is an
updated version of Ondat available for installation.
example: false
logLevel:
$ref: "#/components/schemas/LogLevel"
logFormat:
$ref: "#/components/schemas/LogFormat"
createdAt:
$ref: "#/components/schemas/CreatedAt"
updatedAt:
$ref: "#/components/schemas/UpdatedAt"
version:
$ref: "#/components/schemas/Version"
User:
type: object
properties:
id:
$ref: "#/components/schemas/UserID"
username:
type: string
example: admin
isAdmin:
type: boolean
default: false
description: >
If true, this user is an administrator of the cluster.
Administrators bypass the usual authentication checks
and are granted access to all resources. Some actions
(such as adding a new user) can only be performed by an
administrator.
example: true
groups:
type: array
items:
$ref: "#/components/schemas/PolicyGroupID"
default: []
nullable: true
description: >
Defines a set of policy group IDs this user is a member
of.
Policy groups can be used to logically group users and
apply authorisation policies to all members.
example:
- "24d5db6f-9738-4f17-a257-b9dd41a35309"
- "4223b453-4d47-49d5-960f-23fc7a8153ba"
createdAt:
$ref: "#/components/schemas/CreatedAt"
updatedAt:
$ref: "#/components/schemas/UpdatedAt"
version:
$ref: "#/components/schemas/Version"
UserSession:
allOf:
- $ref: "#/components/schemas/User"
- type: object
properties:
session:
type: object
properties:
expiresInSeconds:
type: uint64
description: >
The maximum duration which the auth session
will remain valid for in seconds.
minimum: 0
example: 60
token:
type: string
description: >
The JWT token for the auth session.
Volume:
type: object
properties:
id:
$ref: "#/components/schemas/VolumeID"
name:
type: string
example: "app-data"
description:
type: string
example: "This volume contains the data for my app"
attachedOn:
readOnly: true
allOf:
- $ref: "#/components/schemas/NodeID"
attachedOnHost:
readOnly: true
type: string
description: The hostname of the node the volume is attached on
example: worker-1
nfs:
readOnly: true
nullable: true
$ref: "#/components/schemas/NfsConfig"
namespaceID:
readOnly: true
allOf:
- $ref: "#/components/schemas/NamespaceID"
labels:
$ref: "#/components/schemas/Labels"
topologyLabels:
$ref: "#/components/schemas/TopologyLabels"
fsType:
$ref: "#/components/schemas/FsType"
attachmentType:
readOnly: true
$ref: "#/components/schemas/AttachType"
master:
readOnly: true
allOf:
- $ref: "#/components/schemas/MasterDeploymentInfo"
replicas:
type: array
nullable: true
readOnly: true
default: []
items:
$ref: "#/components/schemas/ReplicaDeploymentInfo"
sizeBytes:
type: uint64
description: >
A volume's size in bytes
minimum: 1073742000
example: 5368709000
snapshotConfig:
$ref: "#/components/schemas/SnapshotConfig"
snapshotVolumes:
$ref: "#/components/schemas/SnapshotVolumes"
parentInfo:
$ref: "#/components/schemas/ParentInfo"
createdAt:
$ref: "#/components/schemas/CreatedAt"
updatedAt:
$ref: "#/components/schemas/UpdatedAt"
version:
$ref: "#/components/schemas/Version"
SnapshotVolume:
type: object
properties:
id:
$ref: "#/components/schemas/VolumeID"
name:
type: string
example: "app-data"
description:
type: string
example: "This volume contains the data for my app"
attachedOn:
readOnly: true
allOf:
- $ref: "#/components/schemas/NodeID"
attachedOnHost:
readOnly: true
type: string
description: The hostname of the node the volume is attached on
example: worker-1
nfs:
readOnly: true
nullable: true
$ref: "#/components/schemas/NfsConfig"
namespaceID:
readOnly: true
allOf:
- $ref: "#/components/schemas/NamespaceID"
labels:
$ref: "#/components/schemas/Labels"
fsType:
$ref: "#/components/schemas/FsType"
attachmentType:
readOnly: true
$ref: "#/components/schemas/AttachType"
master:
readOnly: true
allOf:
- $ref: "#/components/schemas/MasterDeploymentInfo"
replicas:
type: array
nullable: true
readOnly: true
default: []
items:
$ref: "#/components/schemas/ReplicaDeploymentInfo"
sizeBytes:
type: uint64
description: >
A volume's size in bytes
minimum: 1073742000
example: 5368709000
parentInfo:
$ref: "#/components/schemas/ParentInfo"
createdAt:
$ref: "#/components/schemas/CreatedAt"
updatedAt:
$ref: "#/components/schemas/UpdatedAt"
version:
$ref: "#/components/schemas/Version"
DeploymentInfo:
type: object
properties:
id:
$ref: "#/components/schemas/DeploymentID"
nodeID:
$ref: "#/components/schemas/NodeID"
hostname:
type: string
description: >
The hostname of the node that is hosting the deployment
promotable:
type: boolean
description: >
Indicates if the volume deployment is eligible for promotion
MasterDeploymentInfo:
allOf:
- $ref: '#/components/schemas/DeploymentInfo'
- type: object
properties:
health:
$ref: "#/components/schemas/MasterHealth"
ReplicaDeploymentInfo:
allOf:
- $ref: '#/components/schemas/DeploymentInfo'
- type: object
properties:
health:
$ref: "#/components/schemas/ReplicaHealth"
syncProgress:
$ref: "#/components/schemas/SyncProgress"
Node:
type: object
properties:
id:
$ref: "#/components/schemas/NodeID"
name:
type: string
readOnly: true
description: >
The hostname of the node.
This value is set by the node each time it joins the
Ondat cluster.
example: db1.lcy.ondat.network
health:
$ref: "#/components/schemas/NodeHealth"
capacity:
$ref: "#/components/schemas/CapacityStats"
ioEndpoint:
type: string
readOnly: true
description: >
Endpoint at which we operate our dataplane's dfs
service. (used for IO operations)
This value is set on startup by the corresponding
environment variable (IO_ADVERTISE_ADDRESS)
example:
- "192.0.2.1:5703"
supervisorEndpoint:
type: string
readOnly: true
description: >
Endpoint at which we operate our dataplane's supervisor
service (used for sync).
This value is set on startup by the corresponding
environment variable (SUPERVISOR_ADVERTISE_ADDRESS)
example:
- "192.0.2.1:5704"
gossipEndpoint:
type: string
readOnly: true
description: >
Endpoint at which we operate our health checking service.
This value is set on startup by the corresponding
environment variable (GOSSIP_ADVERTISE_ADDRESS)
example:
- "192.0.2.1:5711"
clusteringEndpoint:
type: string
readOnly: true
description: >
Endpoint at which we operate our clustering gRPC API.
This value is set on startup by the corresponding
environment variable (INTERNAL_API_ADVERTISE_ADDRESS)
example:
- "192.0.2.1:5710"
cordoned:
type: boolean
readOnly: true
default: false
description: >
Cordoned describes the cordoned state of the node.
A cordoned node will not have new volume deployments scheduled on it
cordonedAt:
type: string
format: date-time
readOnly: true
description: |
The time the node has been cordoned. This field's purpose is informative only.
String format is RFC3339.
example: "2019-03-29T23:13:13Z"
labels:
$ref: "#/components/schemas/Labels"
createdAt:
$ref: "#/components/schemas/CreatedAt"
updatedAt:
$ref: "#/components/schemas/UpdatedAt"
version:
$ref: "#/components/schemas/Version"
SnapshotConfig:
type: object
additionalProperties:
$ref: "#/components/schemas/Snapshot"
Snapshot:
type: object
properties:
name:
type: string
id:
$ref: "#/components/schemas/SnapshotID"
location:
type: string
createdAt:
type: string
format: date-time
sizeBytes:
type: number
SnapshotVolumes:
type: object
additionalProperties:
$ref: "#/components/schemas/SnapshotVolume"
ParentInfo:
type: object
properties:
id:
type: string
namespaceID:
type: string
snapshotID:
$ref: "#/components/schemas/SnapshotID"
Namespace:
type: object
properties:
id:
$ref: "#/components/schemas/NamespaceID"
name:
type: string
readOnly: true
example: "dev"
labels:
$ref: "#/components/schemas/Labels"
createdAt:
$ref: "#/components/schemas/CreatedAt"
updatedAt:
$ref: "#/components/schemas/UpdatedAt"
version:
$ref: "#/components/schemas/Version"
PolicyGroup:
type: object
properties:
id:
$ref: "#/components/schemas/PolicyGroupID"
name:
type: string
example: "dev-users"
users:
type: array
readOnly: true
items:
type: object
properties:
id:
$ref: "#/components/schemas/UserID"
username:
type: string
example: "admin"
description: The list of user IDs which this policy group governs.
example:
- id: "82f297ae-8381-4c09-b9a1-8401c83c418d"
username: "user_a"
- id: "f4bb11d6-594a-4f21-9d1c-d49711a0453e"
username: "user_b"
- id: "30d3a4dc-971b-4f3e-9b89-5da6fea383ce"
username: "user_c"
specs:
type: array
items:
type: object
properties:
namespaceID:
$ref: "#/components/schemas/NamespaceID"
resourceType:
type: string
enum:
- "*"
- "volume"
- "policy"
description: >
The resource type this policy grants access to.
example: "volume"
readOnly:
type: boolean
default: false
description: >
If true, disallows requests that attempt to mutate the
resource.
example: false
description: A set of authorisation policies to apply to the policy group.
default: []
nullable: true
example:
- namespaceID: "251f065a-d89b-4426-a752-5fdd144d00e8"
resourceType: "*"
readOnly: false
- namespaceID: "5f009d1f-6618-43c2-9ae4-e699461dda8e"
resourceType: "volume"
readOnly: true
createdAt:
$ref: "#/components/schemas/CreatedAt"