You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/policy.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,16 @@ The policy data source.
17
17
18
18
### Required
19
19
20
+
-`parent` (String) The policy parent name for the policy, support projects/{resource id}, environments/{resource id}, instances/{resource id}, or instances/{resource id}/databases/{database name}
20
21
-`type` (String) The policy type.
21
22
22
23
### Optional
23
24
25
+
-`data_source_query_policy` (Block List, Max: 1) Restrict querying admin data sources (see [below for nested schema](#nestedblock--data_source_query_policy))
26
+
-`disable_copy_data_policy` (Block List, Max: 1) Restrict data copying in SQL Editor (Admins/DBAs allowed) (see [below for nested schema](#nestedblock--disable_copy_data_policy))
24
27
-`global_masking_policy` (Block List, Max: 1) (see [below for nested schema](#nestedblock--global_masking_policy))
25
28
-`masking_exception_policy` (Block List, Max: 1) (see [below for nested schema](#nestedblock--masking_exception_policy))
26
-
-`parent` (String) The policy parent name for the policy, support projects/{resource id}, environments/{resource id}, instances/{resource id}, or instances/{resource id}/databases/{database name}
29
+
-`rollout_policy` (Block List, Max: 1) Control issue rollout. Learn more: https://docs.bytebase.com/administration/environment-policy/rollout-policy (see [below for nested schema](#nestedblock--rollout_policy))
27
30
28
31
### Read-Only
29
32
@@ -32,6 +35,24 @@ The policy data source.
32
35
-`inherit_from_parent` (Boolean) Decide if the policy should inherit from the parent.
33
36
-`name` (String) The policy full name
34
37
38
+
<aid="nestedblock--data_source_query_policy"></a>
39
+
### Nested Schema for `data_source_query_policy`
40
+
41
+
Optional:
42
+
43
+
-`disallow_ddl` (Boolean) Disallow running DDL statements in the SQL editor.
44
+
-`disallow_dml` (Boolean) Disallow running DML statements in the SQL editor.
45
+
-`restriction` (String) RESTRICTION_UNSPECIFIED means no restriction; FALLBACK will allows to query admin data sources when there is no read-only data source; DISALLOW will always disallow to query admin data sources.
46
+
47
+
48
+
<aid="nestedblock--disable_copy_data_policy"></a>
49
+
### Nested Schema for `disable_copy_data_policy`
50
+
51
+
Required:
52
+
53
+
-`enable` (Boolean) Restrict data copying
54
+
55
+
35
56
<aid="nestedblock--global_masking_policy"></a>
36
57
### Nested Schema for `global_masking_policy`
37
58
@@ -74,3 +95,13 @@ Optional:
74
95
-`table` (String)
75
96
76
97
98
+
99
+
<aid="nestedblock--rollout_policy"></a>
100
+
### Nested Schema for `rollout_policy`
101
+
102
+
Optional:
103
+
104
+
-`automatic` (Boolean) If all check pass, the change will be rolled out and executed automatically.
105
+
-`roles` (Set of String) If any roles are specified, Bytebase requires users with those roles to manually roll out the change.
Copy file name to clipboardExpand all lines: docs/data-sources/setting.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The setting data source.
22
22
### Optional
23
23
24
24
-`classification` (Block List, Max: 1) Classification for data masking. Require ENTERPRISE subscription. (see [below for nested schema](#nestedblock--classification))
25
-
-`semantic_types` (Block Set) Semantic types for data masking. Require ENTERPRISE subscription. (see [below for nested schema](#nestedblock--semantic_types))
25
+
-`semantic_types` (Block List) Semantic types for data masking. Require ENTERPRISE subscription. (see [below for nested schema](#nestedblock--semantic_types))
26
26
-`workspace_profile` (Block List, Max: 1) (see [below for nested schema](#nestedblock--workspace_profile))
27
27
28
28
### Read-Only
@@ -38,7 +38,7 @@ Required:
38
38
39
39
-`classifications` (Block Set, Min: 1) (see [below for nested schema](#nestedblock--classification--classifications))
40
40
-`id` (String) The classification unique uuid.
41
-
-`levels` (Block Set, Min: 1) (see [below for nested schema](#nestedblock--classification--levels))
41
+
-`levels` (Block List, Min: 1) (see [below for nested schema](#nestedblock--classification--levels))
42
42
-`title` (String) The classification title. Optional.
Copy file name to clipboardExpand all lines: docs/resources/policy.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,37 @@ The policy resource.
22
22
23
23
### Optional
24
24
25
+
-`data_source_query_policy` (Block List, Max: 1) Restrict querying admin data sources (see [below for nested schema](#nestedblock--data_source_query_policy))
26
+
-`disable_copy_data_policy` (Block List, Max: 1) Restrict data copying in SQL Editor (Admins/DBAs allowed) (see [below for nested schema](#nestedblock--disable_copy_data_policy))
25
27
-`enforce` (Boolean) Decide if the policy is enforced.
26
28
-`global_masking_policy` (Block List, Max: 1) (see [below for nested schema](#nestedblock--global_masking_policy))
27
29
-`inherit_from_parent` (Boolean) Decide if the policy should inherit from the parent.
28
30
-`masking_exception_policy` (Block List, Max: 1) (see [below for nested schema](#nestedblock--masking_exception_policy))
31
+
-`rollout_policy` (Block List, Max: 1) Control issue rollout. Learn more: https://docs.bytebase.com/administration/environment-policy/rollout-policy (see [below for nested schema](#nestedblock--rollout_policy))
29
32
30
33
### Read-Only
31
34
32
35
-`id` (String) The ID of this resource.
33
36
-`name` (String) The policy full name
34
37
38
+
<aid="nestedblock--data_source_query_policy"></a>
39
+
### Nested Schema for `data_source_query_policy`
40
+
41
+
Optional:
42
+
43
+
-`disallow_ddl` (Boolean) Disallow running DDL statements in the SQL editor.
44
+
-`disallow_dml` (Boolean) Disallow running DML statements in the SQL editor.
45
+
-`restriction` (String) RESTRICTION_UNSPECIFIED means no restriction; FALLBACK will allows to query admin data sources when there is no read-only data source; DISALLOW will always disallow to query admin data sources.
46
+
47
+
48
+
<aid="nestedblock--disable_copy_data_policy"></a>
49
+
### Nested Schema for `disable_copy_data_policy`
50
+
51
+
Required:
52
+
53
+
-`enable` (Boolean) Restrict data copying
54
+
55
+
35
56
<aid="nestedblock--global_masking_policy"></a>
36
57
### Nested Schema for `global_masking_policy`
37
58
@@ -74,3 +95,13 @@ Optional:
74
95
-`table` (String)
75
96
76
97
98
+
99
+
<aid="nestedblock--rollout_policy"></a>
100
+
### Nested Schema for `rollout_policy`
101
+
102
+
Optional:
103
+
104
+
-`automatic` (Boolean) If all check pass, the change will be rolled out and executed automatically.
105
+
-`roles` (Set of String) If any roles are specified, Bytebase requires users with those roles to manually roll out the change.
Copy file name to clipboardExpand all lines: docs/resources/setting.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The setting resource.
24
24
-`approval_flow` (Block List) Configure risk level and approval flow for different tasks. Require ENTERPRISE subscription. (see [below for nested schema](#nestedblock--approval_flow))
25
25
-`classification` (Block List, Max: 1) Classification for data masking. Require ENTERPRISE subscription. (see [below for nested schema](#nestedblock--classification))
26
26
-`environment_setting` (Block List) The environment (see [below for nested schema](#nestedblock--environment_setting))
27
-
-`semantic_types` (Block Set) Semantic types for data masking. Require ENTERPRISE subscription. (see [below for nested schema](#nestedblock--semantic_types))
27
+
-`semantic_types` (Block List) Semantic types for data masking. Require ENTERPRISE subscription. (see [below for nested schema](#nestedblock--semantic_types))
28
28
-`workspace_profile` (Block List, Max: 1) (see [below for nested schema](#nestedblock--workspace_profile))
29
29
30
30
### Read-Only
@@ -88,7 +88,7 @@ Required:
88
88
89
89
-`classifications` (Block Set, Min: 1) (see [below for nested schema](#nestedblock--classification--classifications))
90
90
-`id` (String) The classification unique uuid.
91
-
-`levels` (Block Set, Min: 1) (see [below for nested schema](#nestedblock--classification--levels))
91
+
-`levels` (Block List, Min: 1) (see [below for nested schema](#nestedblock--classification--levels))
92
92
-`title` (String) The classification title. Optional.
0 commit comments