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: PROVIDERS.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,7 @@ Google Cloud Platform supports **two discovery approaches** and **two authentica
153
153
- `source_credentials` (string, optional): Path to source credentials file (uses ADC if not provided)
154
154
- `token_lifetime` (string, optional): Token lifetime in seconds (e.g., "3600s") or Go duration format (e.g., "1h"). Range: 1s to 3600s (1 hour). Default: "3600s"
155
155
- `project_ids` (list, optional): Comma-separated/list of project IDs to enumerate. When provided, Cloudlist skips discovery in every other accessible project, both for individual APIs and the organization-level Asset API.
156
+
- `exclude_project_ids` (list, optional): Comma-separated/list of project IDs to exclude from organization-wide discovery. Requires `organization_id`. Mutually exclusive with `project_ids`. When provided, Cloudlist discovers all projects in the organization and skips the excluded ones, using per-project Asset API calls for the remaining projects.
156
157
157
158
---
158
159
@@ -199,6 +200,20 @@ Google Cloud Platform supports **two discovery approaches** and **two authentica
199
200
200
201
Add `project_ids` to either configuration style to limit enumeration strictly to the listed projects (Cloud Asset API requests are filtered too), which is helpful for large organizations or delegated-access service accounts.
201
202
203
+
**Excluding Projects:**
204
+
205
+
```yaml
206
+
- provider: gcp
207
+
organization_id: "123456789012"
208
+
gcp_service_account_key: '$GCP_SA_KEY'
209
+
exclude_project_ids:
210
+
- sandbox-project
211
+
- legacy-app
212
+
- test-environment
213
+
```
214
+
215
+
Use `exclude_project_ids` to scan all projects in an organization except the listed ones. This is useful when only a few projects need to be excluded from a large organization.
216
+
202
217
**Required Organization-Level Roles:**
203
218
1. `roles/cloudasset.viewer` - Core Asset API access
204
219
2. `roles/resourcemanager.viewer` - List projects in organization
0 commit comments