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/org_access_token.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
@@ -66,7 +66,7 @@ data "docker_org_access_token" "by_label" {
66
66
67
67
### Optional
68
68
69
-
-`filter` (Attributes List) One or more name/value filter blocks. Exactly one of `id` or `filter` must be set. Filters are applied with OR semantics within `values` and AND semantics across blocks. Only `label` is supported in v1. (see [below for nested schema](#nestedatt--filter))
69
+
-`filter` (Block List) One or more name/value filter blocks. Exactly one of `id` or `filter` must be set. Filters are applied with OR semantics within `values` and AND semantics across blocks. Only `label` is supported in v1. (see [below for nested schema](#nestedblock--filter))
70
70
-`id` (String) The ID of the organization access token. Set this for a direct lookup, or omit it when using `filter`.
71
71
72
72
### Read-Only
@@ -80,7 +80,7 @@ data "docker_org_access_token" "by_label" {
80
80
-`last_used_at` (String) The last time the access token was used, if available.
81
81
-`resources` (Attributes List) Resources this token has access to. (see [below for nested schema](#nestedatt--resources))
Copy file name to clipboardExpand all lines: internal/provider/data_source_org_access_token.go
+21-20Lines changed: 21 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -112,26 +112,6 @@ data "docker_org_access_token" "by_label" {
112
112
Optional: true,
113
113
Computed: true,
114
114
},
115
-
"filter": schema.ListNestedAttribute{
116
-
MarkdownDescription: "One or more name/value filter blocks. Exactly one of `id` or `filter` must be set. Filters are applied with OR semantics within `values` and AND semantics across blocks. Only `label` is supported in v1.",
117
-
Optional: true,
118
-
NestedObject: schema.NestedAttributeObject{
119
-
Attributes: map[string]schema.Attribute{
120
-
"name": schema.StringAttribute{
121
-
MarkdownDescription: "Name of the field to filter by. Only `label` is supported.",
MarkdownDescription: "Accepted values for the given filter name.",
129
-
Required: true,
130
-
ElementType: types.StringType,
131
-
},
132
-
},
133
-
},
134
-
},
135
115
"label": schema.StringAttribute{
136
116
MarkdownDescription: "The label of the access token.",
137
117
Computed: true,
@@ -182,6 +162,27 @@ data "docker_org_access_token" "by_label" {
182
162
},
183
163
},
184
164
},
165
+
Blocks: map[string]schema.Block{
166
+
"filter": schema.ListNestedBlock{
167
+
MarkdownDescription: "One or more name/value filter blocks. Exactly one of `id` or `filter` must be set. Filters are applied with OR semantics within `values` and AND semantics across blocks. Only `label` is supported in v1.",
168
+
NestedObject: schema.NestedBlockObject{
169
+
Attributes: map[string]schema.Attribute{
170
+
"name": schema.StringAttribute{
171
+
MarkdownDescription: "Name of the field to filter by. Only `label` is supported.",
0 commit comments