@@ -126,6 +126,7 @@ fields available for each view type are detailed below:
126
126
| `resources_drifted` | `number` | The count of resources that drift was detected for. |
127
127
| `resources_undrifted` | `number` | The count of resources that drift was not detected for. |
128
128
| `state_version_terraform_version` | `string` | The Terraform version used to create the current run's state file. |
129
+ | `tags` | `string` | A comma separated list of tags (keys and key :value pairs) applied to this workspace. |
129
130
| `vcs_repo_identifier` | `string` | The name of the repository configured for this workspace, if available. |
130
131
| `workspace_created_at` | `datetime` | The time this workspace was created. |
131
132
| `workspace_name` | `string` | The name of this workspace. |
@@ -265,7 +266,15 @@ _Show data for all workspaces with `test` in their name_
265
266
``` shell
266
267
curl \
267
268
--header " Authorization: Bearer $TOKEN " \
268
- ' https://app.terraform.io/api/v2/organizations/$ORG_NAME/explorer?type=workspaces&&filter%5B0%5D%5Bworkspace_name%5D%5Bcontains%5D%5B0%5D=test'
269
+ ' https://app.terraform.io/api/v2/organizations/$ORG_NAME/explorer?type=workspaces&filter%5B0%5D%5Bworkspace_name%5D%5Bcontains%5D%5B0%5D=test'
270
+ ```
271
+
272
+ _ Show data for all workspaces with the tag key ` billing ` having value ` tier2 ` _
273
+
274
+ ``` shell
275
+ curl \
276
+ --header " Authorization: Bearer $TOKEN " \
277
+ ' https://app.terraform.io/api/v2/organizations/$ORG_NAME/explorer?type=workspaces&filter%5B0%5D%5Btags%5D%5Bcontains%5D%5B0%5D=billing:tier2'
269
278
```
270
279
271
280
** View Type: ` modules ` **
@@ -352,6 +361,7 @@ _Show data for all workspaces_
352
361
"resources-drifted" : 0 ,
353
362
"resources-undrifted" : 0 ,
354
363
"state-version-terraform-version" : " 1.5.7" ,
364
+ "tags" : " " ,
355
365
"vcs-repo-identifier" : null ,
356
366
"workspace-created-at" : " 2023-10-17T21:56:45.570+00:00" ,
357
367
"workspace-name" : " payments-service" ,
@@ -384,6 +394,7 @@ _Show data for all workspaces_
384
394
"resources-drifted" : 3 ,
385
395
"resources-undrifted" : 3 ,
386
396
"state-version-terraform-version" : " 1.4.5" ,
397
+ "tags" : " billing:tier1, project_customer" ,
387
398
"vcs-repo-identifier" : " acmecorp/api" ,
388
399
"workspace-created-at" : " 2023-04-25T17:09:14.960+00:00" ,
389
400
"workspace-name" : " api-service" ,
0 commit comments